[UPDT]updation on approve button in shift and worktype requests

This commit is contained in:
Horilla
2023-09-06 16:28:05 +05:30
parent d5c4236b79
commit b3ac8f2a0a
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@
{% elif request.user.employee_get == shift_request.employee_id and not perms.base.change_shiftrequest %}
<button class='oh-btn oh-btn--info w-100' disabled>{% trans "Approve" %}</button></td>
{% else %}
<a href="/shift-request-approve/{{shift_request.id}}/" class='oh-btn oh-btn--info'>{% trans "Approve" %}</a></td>
<a href="/shift-request-approve/{{shift_request.id}}/" onclick="return confirm('{% trans "Do you want to approve this request?" %}')" class='oh-btn oh-btn--info'>{% trans "Approve" %}</a></td>
{% endif %}
{% endif %}
{% elif shift_request.approved == True %}

View File

@@ -77,7 +77,7 @@
{% elif request.user.employee_get == work_type_request.employee_id and not perms.base.change_worktyperequest %}
<button class='oh-btn oh-btn--info w-100' disabled>{% trans "Approve" %}</button></td>
{% else %}
<a href="/work-type-request-approve/{{work_type_request.id}}/" class='oh-btn oh-btn--info'>{% trans "Approve" %}</a></td>
<a href="/work-type-request-approve/{{work_type_request.id}}/" onclick="return confirm('{% trans "Do you want to approve this request?" %}')" class='oh-btn oh-btn--info'>{% trans "Approve" %}</a></td>
{% endif %}
{% endif %}