From 7fcb829e5468e65c3c941ebbc40495a4555ad8fe Mon Sep 17 00:00:00 2001 From: Leon Harris Date: Mon, 25 Nov 2013 15:51:14 +0000 Subject: [PATCH] updated templated to use CDN bootstrap3, CDN jquery, added logo to navigation, minor layout changes requires http://github.com/tzangms/django-bootstrap-form --- helpdesk/settings.py | 2 + helpdesk/static/helpdesk/helpdesk-extend.css | 51 ++++++++++ helpdesk/templates/helpdesk/attribution.html | 2 +- helpdesk/templates/helpdesk/base.html | 36 +++---- .../helpdesk/confirm_delete_saved_query.html | 2 +- .../templates/helpdesk/create_ticket.html | 20 ++-- helpdesk/templates/helpdesk/dashboard.html | 70 ++++++++------ .../templates/helpdesk/delete_ticket.html | 2 +- helpdesk/templates/helpdesk/edit_ticket.html | 19 ++-- .../templates/helpdesk/email_ignore_add.html | 2 +- .../templates/helpdesk/email_ignore_del.html | 2 +- .../templates/helpdesk/email_ignore_list.html | 2 +- .../templates/helpdesk/followup_edit.html | 2 +- helpdesk/templates/helpdesk/kb_category.html | 7 +- helpdesk/templates/helpdesk/kb_index.html | 7 +- helpdesk/templates/helpdesk/kb_item.html | 7 +- helpdesk/templates/helpdesk/navigation.html | 38 +++++--- helpdesk/templates/helpdesk/public_base.html | 14 +-- .../helpdesk/public_change_language.html | 2 +- .../templates/helpdesk/public_homepage.html | 87 ++++++++++------- .../templates/helpdesk/public_view_form.html | 2 +- .../helpdesk/public_view_ticket.html | 14 +-- .../helpdesk/registration/login.html | 25 +++-- .../templates/helpdesk/report_output.html | 8 +- helpdesk/templates/helpdesk/rss_list.html | 6 +- helpdesk/templates/helpdesk/ticket.html | 14 +-- .../templates/helpdesk/ticket_cc_add.html | 2 +- .../templates/helpdesk/ticket_cc_del.html | 2 +- .../templates/helpdesk/ticket_cc_list.html | 2 +- .../helpdesk/ticket_dependency_add.html | 2 +- .../helpdesk/ticket_dependency_del.html | 2 +- .../templates/helpdesk/ticket_desc_table.html | 16 ++-- helpdesk/templates/helpdesk/ticket_list.html | 96 +++++++++++++------ .../templates/helpdesk/user_settings.html | 2 +- 34 files changed, 379 insertions(+), 188 deletions(-) create mode 100644 helpdesk/static/helpdesk/helpdesk-extend.css diff --git a/helpdesk/settings.py b/helpdesk/settings.py index 1645d5c8..aebcbd58 100644 --- a/helpdesk/settings.py +++ b/helpdesk/settings.py @@ -37,6 +37,8 @@ HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = getattr(settings, 'HELPDESK_REDIRECT_TO_ # customize helpdesk name on a few pages, i.e., your organization. HELPDESK_PREPEND_ORG_NAME = getattr(settings, 'HELPDESK_PREPEND_ORG_NAME', False) +HELPDESK_ORG_LOGO = getattr(settings, 'HELPDESK_ORG_LOGO', False) + # show knowledgebase links? HELPDESK_KB_ENABLED = getattr(settings, 'HELPDESK_KB_ENABLED', True) diff --git a/helpdesk/static/helpdesk/helpdesk-extend.css b/helpdesk/static/helpdesk/helpdesk-extend.css new file mode 100644 index 00000000..77826631 --- /dev/null +++ b/helpdesk/static/helpdesk/helpdesk-extend.css @@ -0,0 +1,51 @@ +/* +Bootstrap overrides +*/ + +.thumbnail.filterBox { + display: none; + float: left; + border: solid #ccc 1px; + padding: 10px; + margin: 4px; + max-width: 24%; + min-height: 200px; +} + +.thumbnail.filterBoxShow { + display: block; +} + +.filterBox label { + clear: both; + display: block; +} + +.filterBox .filterHelp { + color: #aaa; + font-size: 0.8em; + clear: both; +} + +#searchtabs {margin-bottom: 20px;} + +.row_tablehead {background-color: #dbd5d9;} + +.errorlist {list-style: none; } +.errorlist {padding: 0;} +.has-error .input-group input, .has-error .input-group select, .has-error .input-group textarea {border-color: #b94a48} + + + +/* +Add your custom styles here +*/ +#footer { + border-top: 2px solid #AAAAAA; + margin-top: 20px; + padding: 10px 0; +} +#helpdesk-body {padding-top: 100px;} +#header .navbar-nav { + padding-top: 25px; +} \ No newline at end of file diff --git a/helpdesk/templates/helpdesk/attribution.html b/helpdesk/templates/helpdesk/attribution.html index 461621e3..1e4a1c64 100644 --- a/helpdesk/templates/helpdesk/attribution.html +++ b/helpdesk/templates/helpdesk/attribution.html @@ -1,5 +1,5 @@ {% load i18n %} -{% trans "Powered by django-helpdesk." %} +{% trans "django-helpdesk." %} {% if helpdesk_settings.HELPDESK_SUPPORT_PERSON %}

{% trans "For technical support please contact:" %} {{ helpdesk_settings.HELPDESK_SUPPORT_PERSON }}

{% endif %} diff --git a/helpdesk/templates/helpdesk/base.html b/helpdesk/templates/helpdesk/base.html index c4732afd..e385059b 100644 --- a/helpdesk/templates/helpdesk/base.html +++ b/helpdesk/templates/helpdesk/base.html @@ -8,14 +8,18 @@ {% block helpdesk_title %}Helpdesk{% endblock %} :: {% trans "Powered by django-helpdesk" %} - + + {% comment %} {% endcomment %} - - - + + + + + + @@ -94,26 +98,26 @@ {% block helpdesk_head %}{% endblock %} - -
-