diff --git a/horilla_theme/templates/helpdesk/faq/faq_category_list.html b/horilla_theme/templates/helpdesk/faq/faq_category_list.html index e69b6084d..b87d68826 100644 --- a/horilla_theme/templates/helpdesk/faq/faq_category_list.html +++ b/horilla_theme/templates/helpdesk/faq/faq_category_list.html @@ -3,70 +3,68 @@ {% if faq_categories %}
{% for category in faq_categories %} -
-
-

{{ category.title }}

+
+
+
+

{{ category.title }}

- {% if perms.helpdesk.change_faqcategory or perms.helpdesk.delete_faqcategory %} - + {% endif %}
- {% endif %} + +

{{ category.description | linebreaksbr }}

- -

{{ category.description }}

- {% trans "View FAQs" %}
- {% endfor %}
{% else %} diff --git a/horilla_theme/templates/helpdesk/faq/faq_category_nav.html b/horilla_theme/templates/helpdesk/faq/faq_category_nav.html index e3106937b..7e4e82881 100644 --- a/horilla_theme/templates/helpdesk/faq/faq_category_nav.html +++ b/horilla_theme/templates/helpdesk/faq/faq_category_nav.html @@ -1,4 +1,32 @@ {% load i18n %} {% load static %} +
@@ -11,7 +39,7 @@
-
+
diff --git a/horilla_theme/templates/helpdesk/faq/load_faq.html b/horilla_theme/templates/helpdesk/faq/load_faq.html index 855b6136e..76030ad0a 100644 --- a/horilla_theme/templates/helpdesk/faq/load_faq.html +++ b/horilla_theme/templates/helpdesk/faq/load_faq.html @@ -13,20 +13,29 @@
{% csrf_token %} -
- {% trans "Select All Faqs" %} -
-
- {% trans "Unselect All Faqs" %} + +
+ + +
+ +
{% for cat_id, category in catagories.items %} @@ -57,7 +66,7 @@
{% for faq in faqs %} {% if faq.fields.category == cat_id %} @@ -110,3 +119,20 @@
+ + diff --git a/horilla_theme/templates/helpdesk/ticket/forms/change_assinees.html b/horilla_theme/templates/helpdesk/ticket/forms/change_assinees.html index e61399254..8ea9a1165 100644 --- a/horilla_theme/templates/helpdesk/ticket/forms/change_assinees.html +++ b/horilla_theme/templates/helpdesk/ticket/forms/change_assinees.html @@ -1,6 +1,9 @@ {% load i18n %}
-
@@ -18,12 +21,13 @@ > {{form.non_field_errors}} {{form.assigned_to}}
- +
+ +
diff --git a/horilla_theme/templates/helpdesk/ticket/forms/change_raised_on.html b/horilla_theme/templates/helpdesk/ticket/forms/change_raised_on.html index 0f651d190..811829065 100644 --- a/horilla_theme/templates/helpdesk/ticket/forms/change_raised_on.html +++ b/horilla_theme/templates/helpdesk/ticket/forms/change_raised_on.html @@ -1,6 +1,6 @@ {% load i18n %}
- + {% trans "Responsibility" %} +
+ +
diff --git a/horilla_theme/templates/helpdesk/ticket/ticket_claim_requests.html b/horilla_theme/templates/helpdesk/ticket/ticket_claim_requests.html new file mode 100644 index 000000000..2d32c450b --- /dev/null +++ b/horilla_theme/templates/helpdesk/ticket/ticket_claim_requests.html @@ -0,0 +1,114 @@ +{% load static %}{% load i18n %} + + +
+ +
+

+ {% trans "Claim Requests" %} +

+ +
+ + + {% if claim_requests %} + +
+ + + + + + + + + + {% for req in claim_requests %} + + + + + + + + {% endfor %} + +
{% trans "Employee" %}{% trans "Action" %}
+ {{ req.employee_id }} + {{ req.employee_id }} + +
+ {% if not req.is_approved and not req.is_rejected %} + + {% else %} + + {% endif %} + + {% if not req.is_rejected %} + + {% else %} + + {% endif %} +
+
+
+ {% else %} + +
+ No requests +

+ {% trans "There are no claim requests at the moment." %} +

+
+ {% endif %} +
diff --git a/horilla_theme/templates/helpdesk/ticket/ticket_detail.html b/horilla_theme/templates/helpdesk/ticket/ticket_detail.html index f658c874f..f66cd00cd 100644 --- a/horilla_theme/templates/helpdesk/ticket/ticket_detail.html +++ b/horilla_theme/templates/helpdesk/ticket/ticket_detail.html @@ -298,6 +298,21 @@
+
+ {% if perms.helpdesk.change_ticket or request.user.employee_get|is_department_manager:ticket %} + + {% endif %} +
@@ -326,7 +341,7 @@ {% for item in sorted_activity_list %} {% if item.type == 'comment' %} {% if item.comment.employee_id == ticket.employee_id %} -
+ {% comment %}
@@ -350,6 +365,19 @@ {{item.comment.comment|safe}} +
+ {% if request.user.employee_get|is_department_manager:ticket or perms.helpdesk.change_comment or request.user.employee_get == item.comment.employee_id %} + + + + {% endif %} + {% if perms.helpdesk.delete_comment %} + + + + {% endif %} +
{% if item.comment.comment_attachment.all %} @@ -382,12 +410,17 @@ {% endif %}
-
+
{% endcomment %} +
+
{% else %}
+ {% endif %}
@@ -458,7 +491,7 @@
- {% endif %} + {% comment %} {% endif %} {% endcomment %} {% elif item.type == 'history' %} {% if item.history.type == 'Ticket created' %}