[UPDT] LEAVE: Added No limit for leave types in my leave request and leave tab in profile

This commit is contained in:
Horilla
2024-08-28 10:06:34 +05:30
parent 9fe3e53db0
commit 1b09ec4406
2 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@
hx-get="{% url 'type-filter' %}"
hx-target="#leaveTypes"
></span>
{% endif %}
{% endif %}
{% if leave_type and request.GET.instances_ids and not compensatory %}
<div class="oh-modal__dialog oh-modal__dialog--navigation m-0 p-0">
<button
@@ -88,7 +88,7 @@
>{% trans "Total Days" %}</span
>
<span class="oh-timeoff-modal__stat-count"
>{{leave_type.count}}</span
>{% if leave_type.limit_leave %}{{leave_type.count}}{% else %}{% trans "No Limit" %}{% endif %}</span
>
</div>
<div class="oh-timeoff-modal__stat">

View File

@@ -68,7 +68,7 @@
>{% trans "Total Days" %}</span
>
<span class="oh-timeoff-modal__stat-title"
>{{leave_type.count}}</span
>{% if leave_type.limit_leave %}{{leave_type.count}}{% else %}{% trans "No Limit" %}{% endif %}</span
>
</div>
</div>
@@ -133,7 +133,7 @@
</div>
<div class="oh-pagination">
<span class="oh-pagination__page">
{% trans "Page" %} {{ leave_types.number }}
{% trans "Page" %} {{ leave_types.number }}
{% trans "of" %} {{ leave_types.paginator.num_pages }}.
</span>
<nav class="oh-pagination__nav">