From 8ea156d0ac8d72080de87760fc7f546a2dc0f364 Mon Sep 17 00:00:00 2001 From: Horilla Date: Tue, 14 May 2024 11:21:50 +0530 Subject: [PATCH] [UPDT] BASE: Updated forms in settings page by adding extra style class --- .../base/audit_tag/audit_tag_form.html | 82 ++++++++---- base/templates/base/company/company_form.html | 15 ++- .../base/department/department_form.html | 45 +++---- .../base/job_position/job_position_form.html | 46 +++---- .../base/job_role/job_role_form.html | 47 ++++--- .../htmx/rotating_work_type_form.html | 37 ++++-- .../rotating_work_type.html | 25 +--- .../rotating_work_type_view.html | 4 +- base/templates/base/tags/tags.html | 122 +++++++++--------- .../base/work_type/work_type_form.html | 47 ++++--- .../department_managers_form.html | 17 +-- 11 files changed, 244 insertions(+), 243 deletions(-) diff --git a/base/templates/base/audit_tag/audit_tag_form.html b/base/templates/base/audit_tag/audit_tag_form.html index 885329cf7..3145c2392 100644 --- a/base/templates/base/audit_tag/audit_tag_form.html +++ b/base/templates/base/audit_tag/audit_tag_form.html @@ -1,31 +1,57 @@ {% load i18n %} -{% if form.errors %} - -
-
- {% for error in form.non_field_errors %} -
- {{ error }} -
- {% endfor %} +
+

+ {% if tag_id %} + {% trans "Audit Tag Update" %} + {% else %} + {% trans "Create Audit Tag" %} + {% endif %} +

+ +
+
+ {% if form.errors %} + +
+
+ {% for error in form.non_field_errors %} +
+ {{ error }} +
+ {% endfor %} +
+
+ {% endif %} +
+ {% csrf_token %} +
+ + {{form.title}} + {{form.title.errors}} +
+
+ +
+ {{form.highlight}} + {{form.highlight.errors}}
-{% endif %} - - {% csrf_token %} - {{form.as_p}} - -
+ + +
diff --git a/base/templates/base/company/company_form.html b/base/templates/base/company/company_form.html index 15d388099..b1561333d 100644 --- a/base/templates/base/company/company_form.html +++ b/base/templates/base/company/company_form.html @@ -6,8 +6,8 @@ hx-post="{% url 'company-create' %}" {% endif %} hx-target="#companyForm" - method="post" hx-encoding="multipart/form-data" + class="oh-profile-section" > {% csrf_token %}
@@ -16,8 +16,10 @@ {{form.company}} {{form.company.errors}}
- - {{form.hq}} +
+ + {{form.hq}} +
@@ -54,12 +56,11 @@ {{form.icon}} {{form.icon.errors}}
-
-
-