[UPDT] Filter form adjustment for Horilla widget

This commit is contained in:
Horilla
2023-09-20 12:34:22 +05:30
parent ecc06ed8f6
commit db98a32d24
2 changed files with 6 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
{% load i18n %}
{% load static %}
<form hx-get='{% url "employee-filter-view" %}' id="filterForm" hx-target='#view-container'>
<div class="oh-dropdown__filter-body">
<div class="oh-accordion">
<div class="oh-accordion-header">{% trans "Employee" %}</div>
@@ -100,9 +99,5 @@
</div>
</div>
</div>
<div class="oh-dropdown__filter-footer">
<button class="oh-btn oh-btn--secondary oh-btn--small w-100 filterButton" id='#employeeFilter' onclick="employeeFilter(this)">{% trans "Filter" %}</button>
</div>
</form>
<script src='{% static "/base/filter.js" %}'></script>

View File

@@ -176,7 +176,13 @@
style="display: none;"
>
<form hx-get='{% url "employee-filter-view" %}' id="filterForm" hx-target='#view-container'>
{% include 'employee_filters.html' %}
<div class="oh-dropdown__filter-footer">
<button class="oh-btn oh-btn--secondary oh-btn--small w-100 filterButton" id='#employeeFilter' onclick="employeeFilter(this)">{% trans "Filter" %}</button>
</div>
</form>
</div>
</div>
<div class="oh-btn-group ml-2">