From 5f23d9be49c6e367cb44f4f2b4f08c0901620022 Mon Sep 17 00:00:00 2001 From: Horilla Date: Wed, 7 Aug 2024 12:03:34 +0530 Subject: [PATCH] [UPDT] BASE: Change common_form.html directory from payroll to base --- base/templates/common_form.html | 76 +++++++++++++++--------------- payroll/templates/common_form.html | 49 ------------------- 2 files changed, 39 insertions(+), 86 deletions(-) delete mode 100644 payroll/templates/common_form.html diff --git a/base/templates/common_form.html b/base/templates/common_form.html index d01a7db98..bf4c5faf4 100644 --- a/base/templates/common_form.html +++ b/base/templates/common_form.html @@ -1,49 +1,51 @@ {% load widget_tweaks %} {% load i18n %}
- {% if form.verbose_name %} -
-
-
{{ form.verbose_name }}
-
-
- {% endif %} -
-
-
{{ form.non_field_errors }}
- {% for field in form.visible_fields %} -
-
- - {% if field.help_text != '' %} - - {% endif %} -
- - {% if field.field.widget.input_type == 'checkbox' %} -
{{ field|add_class:'oh-switch__checkbox' }}
- {% else %} - {{ field|add_class:'form-control' }} - {% endif %} - {{ field.errors }} + {% if form.verbose_name %} +
+
+
{{ form.verbose_name }}
+
- {% endfor %} -
+ {% endif %} +
+
+
{{ form.non_field_errors }}
+ {% for field in form.visible_fields %} +
+
+ + {% if field.help_text != '' %} + + {% endif %} +
- {% for field in form.hidden_fields %} - {{ field }} - {% endfor %} + {% if field.field.widget.input_type == 'checkbox' %} +
{{ field|add_class:'oh-switch__checkbox' }}
+ {% else %} + {{ field|add_class:'form-control' }} + {% endif %} + {{ field.errors }} +
+ {% endfor %} +
-
- + {% for field in form.hidden_fields %} + {{ field }} + {% endfor %} + +
+ +
-
diff --git a/payroll/templates/common_form.html b/payroll/templates/common_form.html deleted file mode 100644 index d01a7db98..000000000 --- a/payroll/templates/common_form.html +++ /dev/null @@ -1,49 +0,0 @@ -{% load widget_tweaks %} -{% load i18n %} - -
- {% if form.verbose_name %} -
-
-
{{ form.verbose_name }}
-
-
- {% endif %} -
-
-
{{ form.non_field_errors }}
- {% for field in form.visible_fields %} -
-
- - {% if field.help_text != '' %} - - {% endif %} -
- - {% if field.field.widget.input_type == 'checkbox' %} -
{{ field|add_class:'oh-switch__checkbox' }}
- {% else %} - {{ field|add_class:'form-control' }} - {% endif %} - {{ field.errors }} -
- {% endfor %} -
- - {% for field in form.hidden_fields %} - {{ field }} - {% endfor %} - -
- -
-
-
-