From 12822aeadae80c35ea12be697de18d65b7e1191f Mon Sep 17 00:00:00 2001 From: Horilla Date: Wed, 15 May 2024 22:19:42 +0530 Subject: [PATCH] [UPDT] BASE: Form design and style updates --- .../base/action_type/action_type_form.html | 2 +- base/templates/base/company/company_form.html | 16 ++--- base/templates/base/company/date.html | 68 ++++++++++--------- .../base/department/department_form.html | 16 +---- .../base/employee_tag/employee_tag_form.html | 2 +- .../employee_type/employee_type_form.html | 24 +++---- .../base/job_position/job_position_form.html | 17 +++-- .../base/job_role/job_role_form.html | 13 ++-- .../htmx/rotating_shift_form.html | 6 +- .../htmx/rotating_work_type_form.html | 6 +- base/templates/base/shift/schedule_form.html | 35 ++-------- base/templates/base/shift/shift_form.html | 40 +++-------- .../base/work_type/work_type_form.html | 26 +++---- 13 files changed, 108 insertions(+), 163 deletions(-) diff --git a/base/templates/base/action_type/action_type_form.html b/base/templates/base/action_type/action_type_form.html index a8b43c245..eb1033466 100644 --- a/base/templates/base/action_type/action_type_form.html +++ b/base/templates/base/action_type/action_type_form.html @@ -2,7 +2,7 @@

{% if act_id %} - {% trans "Action Type Update" %} + {% trans "Update Action Type" %} {% else %} {% trans "Create Action Type" %} {% endif %} diff --git a/base/templates/base/company/company_form.html b/base/templates/base/company/company_form.html index b1561333d..d2ba45e9b 100644 --- a/base/templates/base/company/company_form.html +++ b/base/templates/base/company/company_form.html @@ -12,21 +12,21 @@ {% csrf_token %}
- + {{form.company}} {{form.company.errors}}
- + {{form.hq}}
- + {{form.address}} {{form.address.errors}}
- +
- + {{form.city}} {{form.city.errors}}
- + {{form.zip}} {{form.zip.errors}}
- + {{form.icon}} {{form.icon.errors}}
diff --git a/base/templates/base/company/date.html b/base/templates/base/company/date.html index f8fe96a90..38dd9a189 100644 --- a/base/templates/base/company/date.html +++ b/base/templates/base/company/date.html @@ -8,34 +8,38 @@

{% if perms.base.change_company %} - - - - - + +
+ +
+ +
+
{% endif %} -
+
{% trans "Current Date Format"%}   :  
+
+
@@ -45,16 +49,18 @@ {% if perms.base.change_company %} - - - - +
+ +
+ +
+
{% endif %}
diff --git a/base/templates/base/department/department_form.html b/base/templates/base/department/department_form.html index d21c24acc..1061c1826 100644 --- a/base/templates/base/department/department_form.html +++ b/base/templates/base/department/department_form.html @@ -21,21 +21,7 @@ class="oh-profile-section" > {% csrf_token %} {{form.non_field_errors}} -
- -
- {{form.department.errors}} {{form.department}} -
-
- -
- -
- {{form.company_id.errors}} {{form.company_id}} -
-
+ {{form.as_p}}