From 523b3065db69b3011244e76cd1acc28f941959ce Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Thu, 27 Dec 2018 23:27:29 -0500 Subject: [PATCH] Update public homepage templates, based on #684 item 3 --- .../templates/helpdesk/create_ticket.html | 35 +++++---- helpdesk/templates/helpdesk/dashboard.html | 4 +- .../templates/helpdesk/navigation-header.html | 2 +- .../helpdesk/navigation-sidebar.html | 18 +---- .../helpdesk/public_create_ticket.html | 61 ++++++--------- .../templates/helpdesk/public_homepage.html | 77 +++++++++++-------- 6 files changed, 90 insertions(+), 107 deletions(-) diff --git a/helpdesk/templates/helpdesk/create_ticket.html b/helpdesk/templates/helpdesk/create_ticket.html index d080ccdf..2aa3bb8b 100644 --- a/helpdesk/templates/helpdesk/create_ticket.html +++ b/helpdesk/templates/helpdesk/create_ticket.html @@ -10,18 +10,6 @@ {% endblock %} {% block helpdesk_head %} - {% endblock %} {% block helpdesk_body %} @@ -58,9 +46,22 @@ $(document).on('change', ':file', function() { {% endblock %} {% block helpdesk_js %} - + + + {% endblock %} diff --git a/helpdesk/templates/helpdesk/dashboard.html b/helpdesk/templates/helpdesk/dashboard.html index 000a8381..df92b5f9 100644 --- a/helpdesk/templates/helpdesk/dashboard.html +++ b/helpdesk/templates/helpdesk/dashboard.html @@ -12,10 +12,10 @@ {% block helpdesk_body %}
-
+
{% include 'helpdesk/include/stats.html' %}
-
+

{% trans "Welcome to your Helpdesk Dashboard! From here you can quickly see tickets submitted by you, tickets you are working on, and those tickets that have no owner." %}

diff --git a/helpdesk/templates/helpdesk/navigation-header.html b/helpdesk/templates/helpdesk/navigation-header.html index 5a4db8c4..319fa333 100644 --- a/helpdesk/templates/helpdesk/navigation-header.html +++ b/helpdesk/templates/helpdesk/navigation-header.html @@ -73,7 +73,7 @@ {% if helpdesk_settings.HELPDESK_SUBMIT_A_TICKET_PUBLIC %} {% endif %} diff --git a/helpdesk/templates/helpdesk/navigation-sidebar.html b/helpdesk/templates/helpdesk/navigation-sidebar.html index 58f8fac7..d62dad50 100644 --- a/helpdesk/templates/helpdesk/navigation-sidebar.html +++ b/helpdesk/templates/helpdesk/navigation-sidebar.html @@ -54,15 +54,9 @@ {% else %} {# Public menu #} - - {% if helpdesk_settings.HELPDESK_KB_ENABLED %} + +{% endblock %} + {% block helpdesk_body %} - {% if helpdesk_settings.HELPDESK_SUBMIT_A_TICKET_PUBLIC %} -
-
- -
-

{% trans "Submit a Ticket" %}

-

{% trans "Please provide as descriptive a title and description as possible." %}

- -
-
- {{ form|bootstrap4form }} - {% comment %} - {% for field in form %} - - {% if field.is_hidden %} - {{ field }} - {% else %} - - -
- {% if not field.field.required %} {% trans "(Optional)" %}{% endif %} -
{{ field }}
- {% if field.errors %}
{{ field.errors }}
{% endif %} - {% if field.help_text %}{{ field.help_text }}{% endif %} -
- - {% endif %} - - {% endfor %} - {% endcomment %} - -
- +
+
+
{% trans "Submit a Ticket" %}
+
+

{% trans "Unless otherwise stated, all fields are required." %} {% trans "Please provide as descriptive a title and description as possible." %}

+ + {{ form|bootstrap4form }} + + {% csrf_token %} +
+
-
- -{% csrf_token %} -
-
-
+{% else %} +

{% trans "Public ticket submission is disabled. Please contact the administrator for assistance." %}

{% endif %} {% endblock %} diff --git a/helpdesk/templates/helpdesk/public_homepage.html b/helpdesk/templates/helpdesk/public_homepage.html index 4ec30c27..01dafe92 100644 --- a/helpdesk/templates/helpdesk/public_homepage.html +++ b/helpdesk/templates/helpdesk/public_homepage.html @@ -1,27 +1,37 @@ {% extends "helpdesk/public_base.html" %} {% load i18n bootstrap4form %} +{% block helpdesk_title %}{% trans "Welcome to Helpdesk" %}{% endblock %} + +{% block helpdesk_breadcrumb %} + + +{% endblock %} + {% block helpdesk_body %} -{% if kb_categories %} -

{% trans "Knowledgebase Articles" %}

+
+
- - - - - - +{% if kb_categories %} +
+

{% trans "Knowledgebase Articles" %}

{% for category in kb_categories %} -
- +
+
+
{{ category.title }}
+

{{ category.description }}

+

{% trans 'View articles' %}

+
+
{% endfor %} - -
{% trans "Knowledgebase Categories" %}
{% trans "Category" %}
{{ category.title }}
{{ category.description }}
+
{% endif %} {% if helpdesk_settings.HELPDESK_SUBMIT_A_TICKET_PUBLIC %} -
+
@@ -67,27 +77,28 @@ {% endif %} {% if helpdesk_settings.HELPDESK_VIEW_A_TICKET_PUBLIC %} -
-
-
-

{% trans "View a Ticket" %}

+
+
+
+

{% trans "View a Ticket" %}

-
-
-
- -
-
-
- -
-
-
- -
-
-{% csrf_token %}
-
+
+
+
+ +
+
+
+ +
+
+
+ +
+
+ {% csrf_token %}
+
+
{% endif %} {% endblock %}