[UPDT] EMPLOYEE: Updated shift request and work type request duplicate method

This commit is contained in:
Horilla
2024-02-26 20:07:46 +05:30
parent 39f8bb3df8
commit 55b8adfeea
2 changed files with 22 additions and 0 deletions

View File

@@ -115,6 +115,17 @@
{% else %}
<button class="oh-btn oh-btn--light-bkg w-50" disabled><ion-icon name="create-outline" ></ion-icon></button></td>
{% endif %}
<a
class="oh-btn oh-btn--light-bkg w-100"
data-toggle="oh-modal-toggle"
data-target="#shiftRequestModal"
hx-get="{% url 'shift-request-duplicate' shift_request.id %}?{{pg}}"
title="{% trans 'Duplicate' %}"
hx-target="#shiftRequestTargetModal"
style= "cursor: pointer;"
>
<ion-icon name="copy-outline"></ion-icon>
</a>
{% if shift_request.approved == False and shift_request.canceled == False %}
<form action="{% url 'shift-request-delete' shift_request.id %}" onsubmit="return confirm('{% trans "Are you sure you want to delete this shift request?" %}');" method='post' class="w-50">
{% csrf_token %}

View File

@@ -134,6 +134,17 @@ style="cursor: pointer; display: none;"
{% else %}
<button class="oh-btn oh-btn--light-bkg w-50" disabled><ion-icon name="create-outline" ></ion-icon></button></td>
{% endif %}
<a
class="oh-btn oh-btn--light-bkg w-100"
data-toggle="oh-modal-toggle"
data-target="#workTypeRequestModal"
hx-get="{% url 'work-type-request-duplicate' work_type_request.id %}?{{pg}}"
title="{% trans 'Duplicate' %}"
hx-target="#formBody"
style= "cursor: pointer;"
>
<ion-icon name="copy-outline"></ion-icon>
</a>
{% if work_type_request.approved == False and work_type_request.canceled == False %}
<form action="{% url 'work-type-request-delete' work_type_request.id %}" onsubmit="return confirm('{% trans "Are you sure you want to delete this work type request?" %}');" method='post' style="width: 87.01px; height: 40.78px;">
{% csrf_token %}