From 7d296410ba4e4f38dd883b24b9d25482601b0a27 Mon Sep 17 00:00:00 2001 From: Horilla Date: Thu, 25 Sep 2025 13:05:43 +0530 Subject: [PATCH] [FIX] BASE: Fix typo in shift_detail_actions file name --- base/models.py | 2 +- .../shift_request/shift_detail_actions.html | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 base/templates/cbv/shift_request/shift_detail_actions.html diff --git a/base/models.py b/base/models.py index 17bd4232e..ddeb5ed1b 100644 --- a/base/models.py +++ b/base/models.py @@ -1656,7 +1656,7 @@ class ShiftRequest(HorillaModel): """ return render_template( - path="cbv/shift_request/shift_deatil_actions.html", + path="cbv/shift_request/shift_detail_actions.html", context={"instance": self}, ) diff --git a/base/templates/cbv/shift_request/shift_detail_actions.html b/base/templates/cbv/shift_request/shift_detail_actions.html new file mode 100644 index 000000000..ade2ec6d0 --- /dev/null +++ b/base/templates/cbv/shift_request/shift_detail_actions.html @@ -0,0 +1,44 @@ +{% load basefilters i18n %} + +{% if instance.approved or instance.canceled %} + +{% else %} + + + {% trans "Edit" %} + +{% endif %} + +{% if instance.approved or instance.canceled %} + +{% else %} + + + {% trans "Delete" %} + +{% endif %} + +{% if request.GET.deleted %} + +{% endif %}