diff --git a/leave/templates/leave/compensatory_leave/compensatory_leave_comment.html b/leave/templates/leave/compensatory_leave/compensatory_leave_comment.html index 69ae6ac21..4a9db3404 100644 --- a/leave/templates/leave/compensatory_leave/compensatory_leave_comment.html +++ b/leave/templates/leave/compensatory_leave/compensatory_leave_comment.html @@ -102,6 +102,7 @@ name="files" class="d-none" multiple="true" + accept=".jpg, .jpeg, .png, .pdf" id="addFile_{{comment.id}}" onchange="submitForm(this)" /> diff --git a/leave/templates/leave/leave_allocation_request/leave_allocation_comment.html b/leave/templates/leave/leave_allocation_request/leave_allocation_comment.html index f71f17af7..656f8ff20 100644 --- a/leave/templates/leave/leave_allocation_request/leave_allocation_comment.html +++ b/leave/templates/leave/leave_allocation_request/leave_allocation_comment.html @@ -102,6 +102,7 @@ name="files" class="d-none" multiple="true" + accept=".jpg, .jpeg, .png, .pdf" id="addFile_{{comment.id}}" onchange="submitForm(this)" /> diff --git a/leave/templates/leave/leave_request/leave_comment.html b/leave/templates/leave/leave_request/leave_comment.html index 20edc0c98..7d930f62b 100644 --- a/leave/templates/leave/leave_request/leave_comment.html +++ b/leave/templates/leave/leave_request/leave_comment.html @@ -85,7 +85,6 @@ class="add-files-form" hx-encoding="multipart/form-data" data-target="#leaveactivitySidebar" hx-swap="innerHTML" hx-target="#commentContainer" - > {% csrf_token %}