fix customer view and edit
This commit is contained in:
1 parent
81335b1439
commit
d5c22a39dc
13 files changed
+329
-81
No files matched your search
@@ -74,7 +74,7 @@ class StaffCreateTicketForm(forms.Form):
|
||||
first_name=forms.CharField(label="نام مشتری",required=False,max_length=100); last_name=forms.CharField(label="نام خانوادگی مشتری",required=False,max_length=100)
|
||||
organization_name=forms.CharField(label="نام شرکت / سازمان",required=False,max_length=180)
|
||||
stakeholder_type=forms.ChoiceField(label="نوع مخاطب",choices=CustomerProfile.StakeholderType.choices,initial=CustomerProfile.StakeholderType.CUSTOMER,required=False)
|
||||
groups=forms.ModelMultipleChoiceField(label="گروههای مخاطب",queryset=ContactGroup.objects.none(),required=False,help_text="برای حفظ مخاطب در دفترچه واحد، حداقل یک گروه مناسب انتخاب کنید.")
|
||||
groups=forms.ModelMultipleChoiceField(label="گروههای مخاطب",queryset=ContactGroup.objects.none(),required=False,help_text="گروهبندی اختیاری است و بر نمایش مخاطب در دفترچه تأثیری ندارد.")
|
||||
category=forms.ModelChoiceField(label="دستهبندی",queryset=TicketCategory.objects.none()); subject=forms.CharField(label="موضوع",min_length=5,max_length=200)
|
||||
province=forms.CharField(label="استان",required=False,max_length=100,widget=forms.TextInput(attrs={"list":"ticket-province-options","autocomplete":"off","data-province-input":""})); city=forms.CharField(label="شهر",required=False,max_length=100,widget=forms.TextInput(attrs={"list":"ticket-city-options","autocomplete":"off","data-city-input":""}))
|
||||
body=forms.CharField(label="شرح پیام کارشناس",widget=forms.Textarea); files=MultipleFileField(label="پیوستها",required=False,widget=MultipleFileInput)
|
||||
@@ -184,8 +184,8 @@ class StaffContactForm(forms.Form):
|
||||
groups = forms.ModelMultipleChoiceField(
|
||||
label="عضویت در گروهها",
|
||||
queryset=ContactGroup.objects.none(),
|
||||
required=True,
|
||||
help_text="گروههای موردنظر را روشن یا خاموش کنید؛ حداقل یک گروه باید باقی بماند.",
|
||||
required=False,
|
||||
help_text="عضویت در گروه اختیاری است. فقط گروههای واحدهای قابل مدیریت شما تغییر میکنند.",
|
||||
widget=forms.CheckboxSelectMultiple(attrs={"data-contact-group-option": ""}),
|
||||
)
|
||||
province = forms.ChoiceField(label="استان", required=False)
|
||||
|
||||
Reference in new issue
Block a user