").dxTextBox(options);
+ itemElement.append(phoneEditor);
+ Attendees.datagridUpdate.phone2 = phoneEditor.dxTextBox('instance');
+ },
validationRules: [
{
type: 'pattern',
@@ -1115,7 +1177,7 @@ Attendees.datagridUpdate = {
{
dataField: 'contactValue',
editorOptions: {
- placeholder: 'for example: WeiXin',
+ placeholder: 'for example: JohnSmith1225',
},
helpText: 'Contact such as name@email.com/+15101234567 etc',
label: {
@@ -2133,6 +2195,107 @@ Attendees.datagridUpdate = {
}),
+ /////////////////////// Potential duplicate Attendees Datagrid under new Attendee DxForm ///////////////////////
+
+ initDuplicatesForNewAttendeeDatagrid: (data, itemElement) => {
+ const $myDatagrid = $("
- {% if show_create_nonfamily_attendee %}
-
- +Add Attendee
-
+ {% if show_create_attendee %}
+
+
+
+
{% endif %}
{% if targeting_attendee_id != 'new' %}
data-assemblies-endpoint="{{assemblies_endpoint}}"
data-attendee-endpoint="{{attendee_endpoint}}"
data-family-attendees-endpoint="{{family_attendees_endpoint}}"
+ data-divisions="{{divisions}}"
+ data-attendee-search="{{attendee_search}}"
data-attendee-urn="{{attendee_urn}}"
>
diff --git a/attendees/users/models/user.py b/attendees/users/models/user.py
index d2093a5f..423e83c2 100644
--- a/attendees/users/models/user.py
+++ b/attendees/users/models/user.py
@@ -99,4 +99,4 @@ def allowed_url_names(self, menu_category='API'):
return self.groups.filter(
menuauthgroup__menu__organization=self.organization,
menuauthgroup__menu__category=menu_category,
- ).values_list('menuauthgroup__menu__url_name', flat=True)
+ ).values_list('menuauthgroup__menu__url_name', flat=True).distinct()
diff --git a/fixtures/db_seed.json b/fixtures/db_seed.json
index ff5d1b82..1d9b0a63 100644
--- a/fixtures/db_seed.json
+++ b/fixtures/db_seed.json
@@ -3549,6 +3549,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3570,6 +3572,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3591,6 +3595,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3612,6 +3618,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3633,6 +3641,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3654,6 +3664,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3675,6 +3687,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3696,6 +3710,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3717,6 +3733,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3738,6 +3756,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3759,6 +3779,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3780,6 +3802,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3801,6 +3825,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3822,6 +3848,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3843,6 +3871,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3864,6 +3894,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3885,6 +3917,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3906,6 +3940,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3927,6 +3963,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3948,6 +3986,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3969,6 +4009,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -3990,6 +4032,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -4011,6 +4055,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -4032,6 +4078,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -4053,6 +4101,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -4074,6 +4124,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -4095,6 +4147,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -4116,6 +4170,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -4137,6 +4193,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -4158,6 +4216,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -4179,6 +4239,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -4200,6 +4262,8 @@
"finish": null,
"infos": {
"comment": null,
+ "updated_by": {},
+ "body": null,
"show_secret": {}
}
}
@@ -9992,8 +10056,8 @@
"contacts": {
"email1": "5greata@email.com",
"email2": "5greatb@email.com",
- "phone1": "+1(555)555-5555",
- "phone2": "+44(191)203-7010"
+ "phone1": "+15555555555",
+ "phone2": "+441912037010"
}
}
}
@@ -10031,8 +10095,9 @@
"contacts": {
"email1": "6coola@email.com",
"email2": "6coolb@email.com",
- "phone1": "+1(666)666-6666",
- "phone2": "+86(66)66-66666"
+ "phone1": "+1886222222222",
+ "phone2": "+86666666666",
+ "phone3": "+188666666666"
}
}
}
@@ -10164,8 +10229,8 @@
"contacts": {
"email1": "7coola@email.com",
"email2": "7coolb@email.com",
- "phone1": "+1(777)777-7777",
- "phone2": "+27(77)777-7777"
+ "phone1": "+60123456789",
+ "phone2": "+85212345678"
}
}
}
@@ -10232,8 +10297,8 @@
"contacts": {
"email1": "8coola@email.com",
"email2": "8coolb@email.com",
- "phone1": "+1(888)888-8888",
- "phone2": "+2(888)888-8888"
+ "phone1": "+18888888888",
+ "phone2": "+28888888888"
}
}
}