From 51907143cbf456f9587d8e4503c75c9e9b281cfc Mon Sep 17 00:00:00 2001 From: Horilla Date: Mon, 4 Aug 2025 14:11:30 +0530 Subject: [PATCH] [UPDT] BASE: Updated horilla html files by exclude the select2 scripts for dipatch event for change --- base/cbv/company.py | 4 +- base/templates/base/company/company.html | 2 +- .../cbv/dashboard/job_position_field.html | 10 +- .../cbv/dashboard/job_role_field.html | 8 - .../cbv/multiple_approval_condition/form.html | 39 +-- .../form_edit.html | 5 +- .../cbv/settings/company_bulk_update.html | 7 - .../cbv/settings/company_inherit.html | 16 - .../condition_edit_form.html | 7 - .../htmx/shift_reallocate_employees.html | 8 - .../templates/dynamic_fields/common/form.html | 8 - .../allocations/employee/form_structure.html | 98 +++--- .../templates/cbv/document/notify_field.html | 7 - .../cbv/documents/document_filter.html | 94 ----- .../cbv/employees_view/bulk_update_page.html | 4 - .../cbv/employees_view/filter_employee.html | 213 ++++++------ horilla_views/templates/generic/form.html | 158 ++++----- .../cbv/pipeline/onboarding/filters.html | 189 +++++----- .../templates/cbv/candidates/filter.html | 327 +++++++++--------- .../cbv/interview/forms/form_hx.html | 7 - .../cbv/pipeline/pipeline_filter.html | 266 ++++++-------- 21 files changed, 601 insertions(+), 876 deletions(-) delete mode 100644 base/templates/cbv/settings/company_bulk_update.html delete mode 100644 base/templates/cbv/settings/company_inherit.html delete mode 100644 employee/templates/cbv/documents/document_filter.html diff --git a/base/cbv/company.py b/base/cbv/company.py index dbd5357f7..af9056b4c 100644 --- a/base/cbv/company.py +++ b/base/cbv/company.py @@ -66,8 +66,7 @@ class CompanyListView(HorillaListView): model = Company filter_class = CompanyFilter - - bulk_template = "cbv/settings/company_bulk_update.html" + selected_instances_key_id = "selectedInstance" bulk_update_fields = ["country", "state", "city", "zip"] def get_bulk_form(self): @@ -161,7 +160,6 @@ class CompanyCreateForm(HorillaFormView): model = Company form_class = CompanyForm - template_name = "cbv/settings/company_inherit.html" new_display_title = _("Create Company") def get_form(self, form_class=None): diff --git a/base/templates/base/company/company.html b/base/templates/base/company/company.html index f5770d0f9..818003b04 100644 --- a/base/templates/base/company/company.html +++ b/base/templates/base/company/company.html @@ -1,7 +1,7 @@ {% extends 'settings.html' %} {% load i18n %} {% block settings %}{% load static %} {% include "generic/components.html" %} - +
diff --git a/base/templates/cbv/dashboard/job_position_field.html b/base/templates/cbv/dashboard/job_position_field.html index 4e54e8375..deacc53fd 100644 --- a/base/templates/cbv/dashboard/job_position_field.html +++ b/base/templates/cbv/dashboard/job_position_field.html @@ -3,16 +3,8 @@ class="oh-label" for="id_{{ form.job_position_id.title }}" title="{{ form.job_position_id.help_text|safe }}" - >{% trans form.job_position_id.label %}{% trans form.job_position_id.label %} New
{{form.job_position_id}}
- diff --git a/base/templates/cbv/dashboard/job_role_field.html b/base/templates/cbv/dashboard/job_role_field.html index c5ed4dc90..1847af648 100644 --- a/base/templates/cbv/dashboard/job_role_field.html +++ b/base/templates/cbv/dashboard/job_role_field.html @@ -8,11 +8,3 @@
{{form.job_role_id}}
- diff --git a/base/templates/cbv/multiple_approval_condition/form.html b/base/templates/cbv/multiple_approval_condition/form.html index 7febbf6e1..e13f0a43b 100644 --- a/base/templates/cbv/multiple_approval_condition/form.html +++ b/base/templates/cbv/multiple_approval_condition/form.html @@ -3,25 +3,17 @@ {% include "generic/components.html" %}
{% include "generic/horilla_form.html" %} - - +
- - - -{% comment %} {% endcomment %} diff --git a/base/templates/cbv/multiple_approval_condition/form_edit.html b/base/templates/cbv/multiple_approval_condition/form_edit.html index 9a256d785..14bedcac2 100644 --- a/base/templates/cbv/multiple_approval_condition/form_edit.html +++ b/base/templates/cbv/multiple_approval_condition/form_edit.html @@ -12,7 +12,7 @@ role="button" id = "addmangerButton" style="color: green" - >{% trans "Add more managers.." %} + >{% trans "Add more managers.. 321" %}
diff --git a/base/templates/cbv/settings/company_inherit.html b/base/templates/cbv/settings/company_inherit.html deleted file mode 100644 index ff3bd4a69..000000000 --- a/base/templates/cbv/settings/company_inherit.html +++ /dev/null @@ -1,16 +0,0 @@ -
- {% include "generic/horilla_form.html" %} -
- diff --git a/base/templates/multi_approval_condition/condition_edit_form.html b/base/templates/multi_approval_condition/condition_edit_form.html index 20e88e3f6..a473b1fe8 100644 --- a/base/templates/multi_approval_condition/condition_edit_form.html +++ b/base/templates/multi_approval_condition/condition_edit_form.html @@ -175,10 +175,3 @@ - diff --git a/base/templates/shift_request/htmx/shift_reallocate_employees.html b/base/templates/shift_request/htmx/shift_reallocate_employees.html index 6175fd896..f2e6a8a79 100644 --- a/base/templates/shift_request/htmx/shift_reallocate_employees.html +++ b/base/templates/shift_request/htmx/shift_reallocate_employees.html @@ -8,11 +8,3 @@
{{form.reallocate_to}}
- diff --git a/dynamic_fields/templates/dynamic_fields/common/form.html b/dynamic_fields/templates/dynamic_fields/common/form.html index 1ff4984f2..dd12dd593 100644 --- a/dynamic_fields/templates/dynamic_fields/common/form.html +++ b/dynamic_fields/templates/dynamic_fields/common/form.html @@ -83,11 +83,3 @@ - diff --git a/employee/templates/cbv/allocations/employee/form_structure.html b/employee/templates/cbv/allocations/employee/form_structure.html index d97880e0e..51e4d9e4f 100644 --- a/employee/templates/cbv/allocations/employee/form_structure.html +++ b/employee/templates/cbv/allocations/employee/form_structure.html @@ -1,57 +1,53 @@ -
- - + + + -{% load widget_tweaks %} {% load i18n %} -{% load generic_template_filters %} - - + {% load widget_tweaks %} {% load i18n %} + {% load generic_template_filters %} + + -
-
-
-
{{ form.non_field_errors }}
- {% for field in form.visible_fields %} -
-
- - {% if field.help_text != '' %} - - {% 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' }} - {{ field.errors }} -
- {% endif %} + {% if field.field.widget.input_type == 'checkbox' %} +
+ {{ field|add_class:'oh-switch__checkbox' }} +
+ {% elif field.name == "country" or field.name == "state" %} +
+ + {{ field.errors }} +
+ {% else %} +
+ {{ field|add_class:'form-control' }} + {{ field.errors }} +
+ {% endif %} +
+ {% endfor %} +
+ {% for field in form.hidden_fields %} {{ field }} {% endfor %}
- {% endfor %} -
- - {% for field in form.hidden_fields %} {{ field }} {% endfor %}
-
- diff --git a/employee/templates/cbv/document/notify_field.html b/employee/templates/cbv/document/notify_field.html index ece6fd3c9..5992cee42 100644 --- a/employee/templates/cbv/document/notify_field.html +++ b/employee/templates/cbv/document/notify_field.html @@ -6,10 +6,3 @@ >{% trans form.notify_before.label %} {{form.notify_before}} -{% comment %} {% endcomment %} diff --git a/employee/templates/cbv/documents/document_filter.html b/employee/templates/cbv/documents/document_filter.html deleted file mode 100644 index 8484d45a0..000000000 --- a/employee/templates/cbv/documents/document_filter.html +++ /dev/null @@ -1,94 +0,0 @@ -{% load i18n %} -
-
-
{% trans "Work Info" %}
-
-
-
-
- - {{form.employee_id}} -
-
- - {{form.employee_id__employee_work_info__job_position_id}} - -
-
- - {{form.employee_id__employee_work_info__shift_id}} -
-
- - {{form.employee_id__employee_work_info__company_id}} -
-
- - {{form.employee_id__is_active}} -
-
-
-
- - {{form.employee_id__employee_work_info__department_id}} -
-
- - {{form.employee_id__employee_work_info__job_role_id}} -
-
- - {{form.employee_id__employee_work_info__work_type_id}} -
-
- - {{form.employee_id__employee_work_info__reporting_manager_id}} -
-
- - {{form.employee_id__gender}} -
-
-
-
-
-
-
- {% trans "Document Request" %} -
-
-
-
- {% comment %}
- - {{form.title}} -
{% endcomment %} -
- - {{form.status}} -
-
- -
- {% comment %}
- - {{form.employee_id}} -
{% endcomment %} -
- - {{form.document_request_id}} -
-
- -
-
-
-
diff --git a/employee/templates/cbv/employees_view/bulk_update_page.html b/employee/templates/cbv/employees_view/bulk_update_page.html index b824f36f9..78683fba5 100644 --- a/employee/templates/cbv/employees_view/bulk_update_page.html +++ b/employee/templates/cbv/employees_view/bulk_update_page.html @@ -122,7 +122,3 @@ }); }); - - diff --git a/employee/templates/cbv/employees_view/filter_employee.html b/employee/templates/cbv/employees_view/filter_employee.html index 09a25b1ec..71a4ab8a9 100644 --- a/employee/templates/cbv/employees_view/filter_employee.html +++ b/employee/templates/cbv/employees_view/filter_employee.html @@ -2,116 +2,117 @@ {% load static %} {% load horillafilters %} -
+
-
{% trans "Employee" %}
-
-
-
-
- - {{form.employee_first_name}} -
-
- - {{form.email}} -
-
- - -
-
-
-
- - {{form.employee_last_name}} -
-
- - {{form.phone}} -
-
- - {{form.gender}} -
-
-
-
-
-
-
{% trans "Work Info" %}
-
-
-
-
- - {{form.employee_work_info__company_id}} -
-
- - {{form.employee_work_info__department_id}} -
-
- - {{form.employee_work_info__shift_id}} -
-
- - {{form.employee_work_info__tags}} -
+
{% trans "Employee" %}
+
+
+
+
+ + {{form.employee_first_name}} +
+
+ + {{form.email}} +
+
+ + +
+
-
-
-
- - {{form.employee_work_info__reporting_manager_id}} -
-
- - {{form.employee_work_info__job_position_id}} -
-
- - {{form.employee_work_info__work_type_id}} -
- {% if "attendance"|app_installed %} -
- - {{form.working_today}} -
- {% endif %} -
-
-
-
-
-
{% trans "Advanced" %}
-
-
-
-
-
- - {{form.employee_user_id__groups}} +
+
+ + {{form.employee_last_name}} +
+
+ + {{form.phone}} +
+
+ + {{form.gender}} +
+
+
+
+
+ +
+
{% trans "Work Info" %}
+
+
+
+
+ + {{form.employee_work_info__company_id}} +
+
+ + {{form.employee_work_info__department_id}} +
+
+ + {{form.employee_work_info__shift_id}} +
+
+ + {{form.employee_work_info__tags}} +
+
+ +
+
+ + {{form.employee_work_info__reporting_manager_id}} +
+
+ + {{form.employee_work_info__job_position_id}} +
+
+ + {{form.employee_work_info__work_type_id}} +
+ {% if "attendance"|app_installed %} +
+ + {{form.working_today}} +
+ {% endif %} +
+
+
+
+ +
+
{% trans "Advanced" %}
+
+
+
+
+
+ + {{form.employee_user_id__groups}} +
+
+ + {{form.is_active}} +
+
+
+ +
+
+ + {{form.employee_user_id__user_permissions}} +
+
-
- - {{form.is_active}} -
-
-
-
- - {{form.employee_user_id__user_permissions}} -
-
-
-
- diff --git a/horilla_views/templates/generic/form.html b/horilla_views/templates/generic/form.html index b6efea7d2..bb3947304 100644 --- a/horilla_views/templates/generic/form.html +++ b/horilla_views/templates/generic/form.html @@ -1,93 +1,81 @@ {% load widget_tweaks %} {% load i18n %} {% load generic_template_filters %} + {% if form.verbose_name %} -
-

- {{form.verbose_name}} -

- -
-{% endif %} -
- {% if form.instance_ids %} -
- - - -
- {% 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' }} - {{ field.errors }} -
- {% endif %} -
- {% endfor %} -
- - {% for field in form.hidden_fields %} {{ field }} {% endfor %} - -
- -
-
+{% endif %} + +
+ {% if form.instance_ids %} +
+ + + +
+ {% 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' }} +
+ {% elif field.name == "country" or field.name == "state" %} +
+ + {{ field.errors }} +
+ {% else %} +
+ {{ field|add_class:'form-control' }} + {{ field.errors }} +
+ {% endif %} +
+ {% endfor %} +
+ + {% for field in form.hidden_fields %} {{ field }} {% endfor %} + +
+ +
+
+
- diff --git a/onboarding/templates/cbv/pipeline/onboarding/filters.html b/onboarding/templates/cbv/pipeline/onboarding/filters.html index 7829fffbd..b96517b62 100644 --- a/onboarding/templates/cbv/pipeline/onboarding/filters.html +++ b/onboarding/templates/cbv/pipeline/onboarding/filters.html @@ -1,108 +1,99 @@ {% load i18n %} {% load static %}
-
-
- {% trans 'Recruitment' %} -
-
-
-
-
- - {{ filter_instance_context_name.form.recruitment_managers }} -
-
- - {{ filter_instance_context_name.form.start_date }} -
-
- - {{ filter_instance_context_name.form.is_published }} -
+
+
+ {% trans 'Recruitment' %}
+
+
+
+
+ + {{ filter_instance_context_name.form.recruitment_managers }} +
+
+ + {{ filter_instance_context_name.form.start_date }} +
+
+ + {{ filter_instance_context_name.form.is_published }} +
+
-
-
- - {{ filter_instance_context_name.form.company_id }} -
-
- - {{ filter_instance_context_name.form.end_date }} -
-
- - {{ filter_instance_context_name.form.closed }} -
-
-
-
- - {{ filter_instance_context_name.form.start_from }} -
-
-
-
- - {{ filter_instance_context_name.form.end_till }} -
-
-
-
-
- -
-
- {% trans 'Candidate' %} -
-
-
-
-
- - -
-
-
-
- - -
-
-
-
- - {{ candidate_filter_obj.form.tasks }} -
-
-
-
-
-
-
- {% trans 'Stage' %} -
-
-
-
-
-
- +
+
+ + {{ filter_instance_context_name.form.company_id }} +
+
+ + {{ filter_instance_context_name.form.end_date }} +
+
+ + {{ filter_instance_context_name.form.closed }} +
+
+
+
+ + {{ filter_instance_context_name.form.start_from }} +
+
+
+
+ + {{ filter_instance_context_name.form.end_till }} +
+
+
+
+
+ +
+
+ {% trans 'Candidate' %} +
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + {{ candidate_filter_obj.form.tasks }} +
+
+
+
+
+
+
+ {% trans 'Stage' %} +
+
+
+
+
+
+ +
+ {{ stage_filter_obj.form.employee_id }} +
+
- {{ stage_filter_obj.form.employee_id }} -
-
-
- -{% comment %} {% endcomment %} diff --git a/recruitment/templates/cbv/candidates/filter.html b/recruitment/templates/cbv/candidates/filter.html index f06152ccb..7724b6283 100644 --- a/recruitment/templates/cbv/candidates/filter.html +++ b/recruitment/templates/cbv/candidates/filter.html @@ -2,183 +2,180 @@ {% load static %}
-
-
- {% trans 'Candidates' %} -
-
-
-
-
- - {{ form.mobile }} -
-
- - {{ form.hired_date }} -
-
- - -
-
- - {{ form.hired }} -
-
-
- - {{form.rejected_candidate__reject_reason_id}} +
+
+ {% trans 'Candidates' %} +
+
+
+
+
+ + {{ form.mobile }} +
+
+ + {{ form.hired_date }} +
+
+ + +
+
+ + {{ form.hired }} +
+
+
+ + {{form.rejected_candidate__reject_reason_id}} +
+
+
+
+
+ + {{ form.email }} +
+ +
+ + {{ form.gender }} +
+ +
+ + +
+ +
+ + {{ form.canceled }} +
+
+
+ + {{form.offer_letter_status}} +
+
+
-
-
-
- - {{ form.email }} -
+
+
+
+ {% trans 'Recruitment' %} +
+
+
+
+
+ + {{ form.recruitment_id }} +
-
- - {{ form.gender }} -
+
+ + {{ form.job_position_id }} +
-
- - -
+
+ + {{ form.start_date }} +
+
+ + {{ form.recruitment_id__closed }} +
-
- - {{ form.canceled }} -
-
-
- - {{form.offer_letter_status}} +
+ + {{ form.stage_id__stage_type }} +
+
+ + {{ form.stage_id__stage_managers }} +
+
+
+
+ + {{ form.stage_id }} +
+
+ + {{ form.job_position_id__department_id }} +
+ +
+ + {{ form.recruitment_id__company_id }} +
+ +
+ + {{ form.recruitment_id__recruitment_managers }} +
+
+ + {{ form.end_date }} +
+
+ + {{ form.skillzonecandidate_set__skill_zone_id }} +
+
-
-
-
-
-
- {% trans 'Recruitment' %} -
-
-
-
-
- - {{ form.recruitment_id }} -
- -
- - {{ form.job_position_id }} -
- -
- - {{ form.start_date }} -
-
- - {{ form.recruitment_id__closed }} -
- -
- - {{ form.stage_id__stage_type }} -
-
- - {{ form.stage_id__stage_managers }} -
+
+
+ {% trans 'Survey' %}
-
-
- - {{ form.stage_id }} -
-
- - {{ form.job_position_id__department_id }} -
+
+
+
+
+ + {{ form.survey_answer_by }} +
+
+ {% comment %}
+
+ + {{ form.survey_response }} +
+
{% endcomment %} +
+
+
-
- - {{ form.recruitment_id__company_id }} -
- -
- - {{ form.recruitment_id__recruitment_managers }} -
-
- - {{ form.end_date }} -
-
- - {{ form.skillzonecandidate_set__skill_zone_id }} -
+
+
+ {% trans 'Advanced' %}
-
-
-
-
-
- {% trans 'Survey' %} -
-
-
-
-
- - {{ form.survey_answer_by }} -
+
+
+
+
+ + {{ form.scheduled_from }} +
+
+ + {{ form.is_active }} +
+
+
+
+ + {{ form.scheduled_till }} +
+
+
- {% comment %}
-
- - {{ form.survey_response }} -
-
{% endcomment %} -
-
- -
-
- {% trans 'Advanced' %} -
-
-
-
-
- - {{ form.scheduled_from }} -
-
- - {{ form.is_active }} -
-
-
-
- - {{ form.scheduled_till }} -
-
-
-
-
- diff --git a/recruitment/templates/cbv/interview/forms/form_hx.html b/recruitment/templates/cbv/interview/forms/form_hx.html index fdfabc238..30de53f6e 100644 --- a/recruitment/templates/cbv/interview/forms/form_hx.html +++ b/recruitment/templates/cbv/interview/forms/form_hx.html @@ -1,8 +1 @@ {{form.employee_id}} - diff --git a/recruitment/templates/cbv/pipeline/pipeline_filter.html b/recruitment/templates/cbv/pipeline/pipeline_filter.html index b40876371..46614d5a8 100644 --- a/recruitment/templates/cbv/pipeline/pipeline_filter.html +++ b/recruitment/templates/cbv/pipeline/pipeline_filter.html @@ -1,170 +1,128 @@ {% load i18n %} {% load static %}
-
-
{% trans 'Recruitment' %}
-
-
-
-
- - {{ form.recruitment_managers }} -
-
- - {{ form.start_date }} -
-
- - {{ form.start_from }} -
-
- - {{ form.closed }} -
-
+
+
{% trans 'Recruitment' %}
+
+
+
+
+ + {{ form.recruitment_managers }} +
+
+ + {{ form.start_date }} +
+
+ + {{ form.start_from }} +
+
+ + {{ form.closed }} +
+
-
-
- - {{ form.company_id }} -
-
- - {{ form.end_date }} -
-
- - {{ form.end_till }} -
-
- - {{ form.is_published }} -
+
+
+ + {{ form.company_id }} +
+
+ + {{ form.end_date }} +
+
+ + {{ form.end_till }} +
+
+ + {{ form.is_published }} +
+
+
-
-
-
-
{% trans 'Stage' %}
-
-
-
-
- - {{ stage_filter_obj.form.recruitment_id }} -
-
- - {{ stage_filter_obj.form.stage_type }} -
-
+
+
{% trans 'Stage' %}
+
+
+
+
+ + {{ stage_filter_obj.form.recruitment_id }} +
+
+ + {{ stage_filter_obj.form.stage_type }} +
+
-
-
- - {{ stage_filter_obj.form.stage_managers }} -
+
+
+ + {{ stage_filter_obj.form.stage_managers }} +
+
+
-
-
-
-
{% trans 'Candidates' %}
-
-
-
-
- - -
-
-
- - {{ candidate_filter_obj.form.rejected_candidate__reject_reason_id }} +
+
{% trans 'Candidates' %}
+
+
+
+
+ + +
+
+
+ + {{ candidate_filter_obj.form.rejected_candidate__reject_reason_id }} +
+
+ + {{ candidate_filter_obj.form.hired }} +
+
+ + {{ candidate_filter_obj.form.gender }} +
+
+ + {{ candidate_filter_obj.form.job_position_id }} +
+
+
+
+
+ + +
+
+ + {{ candidate_filter_obj.form.offer_letter_status }} +
+
+ + {{ candidate_filter_obj.form.canceled }} +
+
+ + {{ candidate_filter_obj.form.candidate_rating__rating }} +
+
+ + {{ candidate_filter_obj.form.job_position_id__department_id }} +
+
-
- - {{ candidate_filter_obj.form.hired }} -
-
- - {{ candidate_filter_obj.form.gender }} -
-
- - {{ candidate_filter_obj.form.job_position_id }} -
-
-
-
- - -
-
- - {{ candidate_filter_obj.form.offer_letter_status }} -
-
- - {{ candidate_filter_obj.form.canceled }} -
-
- - {{ candidate_filter_obj.form.candidate_rating__rating }} -
-
- - {{ candidate_filter_obj.form.job_position_id__department_id }} -
-
-
-