dashboard fixed
This commit is contained in:
commit
73f29cde9a
@ -127,17 +127,17 @@ class StaffForm(forms.ModelForm):
|
|||||||
queryset=Service.objects.all(),
|
queryset=Service.objects.all(),
|
||||||
required=False,
|
required=False,
|
||||||
)
|
)
|
||||||
phone_number = SaudiPhoneNumberField(
|
# phone_number = SaudiPhoneNumberField(
|
||||||
required=False,
|
# required=False,
|
||||||
widget=forms.TextInput(
|
# widget=forms.TextInput(
|
||||||
attrs={
|
# attrs={
|
||||||
"class": "form-control",
|
# "class": "form-control",
|
||||||
"placeholder": _("Phone Number"),
|
# "placeholder": _("Phone Number"),
|
||||||
"id": "phone",
|
# "id": "phone",
|
||||||
}
|
# }
|
||||||
),
|
# ),
|
||||||
label=_("Phone Number"),
|
# label=_("Phone Number"),
|
||||||
)
|
# )
|
||||||
group = forms.ModelMultipleChoiceField(
|
group = forms.ModelMultipleChoiceField(
|
||||||
label=_("Group"),
|
label=_("Group"),
|
||||||
widget=forms.CheckboxSelectMultiple(attrs={"class": "form-check-input"}),
|
widget=forms.CheckboxSelectMultiple(attrs={"class": "form-check-input"}),
|
||||||
|
|||||||
@ -1467,7 +1467,7 @@ class Staff(models.Model):
|
|||||||
first_name = models.CharField(max_length=255, verbose_name=_("First Name"))
|
first_name = models.CharField(max_length=255, verbose_name=_("First Name"))
|
||||||
last_name = models.CharField(max_length=255, verbose_name=_("Last Name"))
|
last_name = models.CharField(max_length=255, verbose_name=_("Last Name"))
|
||||||
|
|
||||||
arabic_name = models.CharField(max_length=255, verbose_name=_("Arabic Name"))
|
arabic_name = models.CharField(max_length=255, verbose_name=_("Arabic Name"),null=True,blank=True)
|
||||||
phone_number = models.CharField(
|
phone_number = models.CharField(
|
||||||
max_length=255,
|
max_length=255,
|
||||||
verbose_name=_("Phone Number"),
|
verbose_name=_("Phone Number"),
|
||||||
|
|||||||
@ -130,7 +130,7 @@ urlpatterns = [
|
|||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"<slug:dealer_slug>/crm/leads/<slug:slug>/update/",
|
"<slug:dealer_slug>/crm/leads/<slug:slug>/update/",
|
||||||
views.LeadUpdateView.as_view(),
|
views.lead_update,
|
||||||
name="lead_update",
|
name="lead_update",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 429 KiB |
@ -26,7 +26,16 @@
|
|||||||
<form class="needs-validation" method="post" novalidate>
|
<form class="needs-validation" method="post" novalidate>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ redirect_field }}
|
{{ redirect_field }}
|
||||||
{{ form|crispy }}
|
|
||||||
|
{{ form.first_name|as_crispy_field }}
|
||||||
|
{{ form.last_name|as_crispy_field }}
|
||||||
|
{{ form.arabic_name|as_crispy_field }}
|
||||||
|
{{ form.email|as_crispy_field }}
|
||||||
|
{{ form.phone_number|as_crispy_field }}
|
||||||
|
{{ form.address|as_crispy_field }}
|
||||||
|
{{ form.logo|as_crispy_field }}
|
||||||
|
{{ form.group|as_crispy_field }}
|
||||||
|
|
||||||
{% if form.errors %}
|
{% if form.errors %}
|
||||||
<div class="alert alert-danger mt-4" role="alert">
|
<div class="alert alert-danger mt-4" role="alert">
|
||||||
<h4 class="alert-heading small">{% trans "Please correct the following errors:" %}</h4>
|
<h4 class="alert-heading small">{% trans "Please correct the following errors:" %}</h4>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user