diff --git a/helpdesk/methods.py b/helpdesk/methods.py index e2ac89c9e..438c3d154 100644 --- a/helpdesk/methods.py +++ b/helpdesk/methods.py @@ -1,9 +1,7 @@ - - from helpdesk.models import DepartmentManager -def is_department_manager(request,ticket): +def is_department_manager(request, ticket): """ Method used to find the user is a department manger of given ticket """ @@ -16,6 +14,5 @@ def is_department_manager(request,ticket): else: return False return DepartmentManager.objects.filter( - manager = user_emp, - department = department + manager=user_emp, department=department ).exists() diff --git a/helpdesk/templates/helpdesk/ticket/ticket_claim_requests.html b/helpdesk/templates/helpdesk/ticket/ticket_claim_requests.html index 6a8044352..53a678f2a 100644 --- a/helpdesk/templates/helpdesk/ticket/ticket_claim_requests.html +++ b/helpdesk/templates/helpdesk/ticket/ticket_claim_requests.html @@ -33,7 +33,7 @@ > {% trans "Action" %} - +
@@ -81,26 +81,26 @@ {% endif %} {% if not req.is_rejected %} - {% else %} - {% endif %} - +
@@ -132,4 +132,4 @@ {% endif %} - \ No newline at end of file + diff --git a/helpdesk/templates/helpdesk/ticket/ticket_detail.html b/helpdesk/templates/helpdesk/ticket/ticket_detail.html index f5157538a..15bc8a36c 100644 --- a/helpdesk/templates/helpdesk/ticket/ticket_detail.html +++ b/helpdesk/templates/helpdesk/ticket/ticket_detail.html @@ -339,15 +339,33 @@
{% csrf_token %} - + + aria-label="Attach Files" + class="oh-btn oh-btn--chat oh-btn--chat-attachments" + > + + + + +
+ + ") + + @login_required def comment_create(request, ticket_id): """ "