From 96e1e2690e95574833f0402e4ecf6acbe9142843 Mon Sep 17 00:00:00 2001 From: Jacek Lebioda <jacek.lebioda.001@student.uni.lu> Date: Tue, 7 Feb 2017 09:54:23 +0100 Subject: [PATCH] Renamed that deceiving block- ui tab highlighter --- smash/web/templates/_base.html | 2 +- smash/web/templates/appointments/add.html | 2 +- smash/web/templates/appointments/details.html | 2 +- smash/web/templates/appointments/edit.html | 2 +- smash/web/templates/appointments/index.html | 2 +- smash/web/templates/doctors/add.html | 2 +- smash/web/templates/doctors/availability_delete.html | 2 +- smash/web/templates/doctors/availability_index.html | 2 +- smash/web/templates/doctors/details.html | 2 +- smash/web/templates/doctors/edit.html | 2 +- smash/web/templates/doctors/index.html | 2 +- smash/web/templates/eqdef/index.html | 2 +- smash/web/templates/equipment_and_rooms/index.html | 2 +- smash/web/templates/index.html | 2 +- smash/web/templates/mail_templates/index.html | 2 +- smash/web/templates/subjects/add.html | 2 +- smash/web/templates/subjects/delete.html | 2 +- smash/web/templates/subjects/details.html | 2 +- smash/web/templates/subjects/edit.html | 2 +- smash/web/templates/subjects/index.html | 2 +- smash/web/templates/subjects/visitdetails.html | 2 +- smash/web/templates/visits/add.html | 2 +- smash/web/templates/visits/details.html | 2 +- smash/web/templates/visits/index.html | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/smash/web/templates/_base.html b/smash/web/templates/_base.html index 1262ad83..14660bba 100644 --- a/smash/web/templates/_base.html +++ b/smash/web/templates/_base.html @@ -454,7 +454,7 @@ desired effect $e.addClass("active"); }; - activate({% block page_title %}{% endblock page_title %}); + activate({% block ui_active_tab %}{% endblock ui_active_tab %}); </script> diff --git a/smash/web/templates/appointments/add.html b/smash/web/templates/appointments/add.html index 199bb1ff..88ab083a 100644 --- a/smash/web/templates/appointments/add.html +++ b/smash/web/templates/appointments/add.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'appointments'{% endblock page_title %} +{% block ui_active_tab %}'appointments'{% endblock ui_active_tab %} {% block page_header %}New appointment{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/appointments/details.html b/smash/web/templates/appointments/details.html index aa62c2db..b08c51d0 100644 --- a/smash/web/templates/appointments/details.html +++ b/smash/web/templates/appointments/details.html @@ -7,7 +7,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'appointments'{% endblock page_title %} +{% block ui_active_tab %}'appointments'{% endblock ui_active_tab %} {% block page_header %}Appointment's details{% endblock page_header %} {% block page_description %}details{% endblock page_description %} diff --git a/smash/web/templates/appointments/edit.html b/smash/web/templates/appointments/edit.html index 931a63f3..21805183 100644 --- a/smash/web/templates/appointments/edit.html +++ b/smash/web/templates/appointments/edit.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'appointments'{% endblock page_title %} +{% block ui_active_tab %}'appointments'{% endblock ui_active_tab %} {% block page_header %}Edit appointment{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/appointments/index.html b/smash/web/templates/appointments/index.html index 59bf99f6..d743a78d 100644 --- a/smash/web/templates/appointments/index.html +++ b/smash/web/templates/appointments/index.html @@ -11,7 +11,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/fullcalendar/fullcalendar.print.css' %}" media="print"> {% endblock styles %} -{% block page_title %}'appointments'{% endblock page_title %} +{% block ui_active_tab %}'appointments'{% endblock ui_active_tab %} {% block page_header %}Appointments{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/doctors/add.html b/smash/web/templates/doctors/add.html index a0b2b9a6..07b4ff4b 100644 --- a/smash/web/templates/doctors/add.html +++ b/smash/web/templates/doctors/add.html @@ -7,7 +7,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/awesomplete/awesomplete.css' %}" /> {% endblock styles %} -{% block page_title %}'workers'{% endblock page_title %} +{% block ui_active_tab %}'workers'{% endblock ui_active_tab %} {% block page_header %}New worker{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/doctors/availability_delete.html b/smash/web/templates/doctors/availability_delete.html index 84dc5846..accf25c0 100644 --- a/smash/web/templates/doctors/availability_delete.html +++ b/smash/web/templates/doctors/availability_delete.html @@ -7,7 +7,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'workers'{% endblock page_title %} +{% block ui_active_tab %}'workers'{% endblock ui_active_tab %} {% block page_header %}Workers{% endblock page_header %} {% block page_description %}avaibility{% endblock page_description %} diff --git a/smash/web/templates/doctors/availability_index.html b/smash/web/templates/doctors/availability_index.html index 88372127..30264f07 100644 --- a/smash/web/templates/doctors/availability_index.html +++ b/smash/web/templates/doctors/availability_index.html @@ -7,7 +7,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'workers'{% endblock page_title %} +{% block ui_active_tab %}'workers'{% endblock ui_active_tab %} {% block page_header %}Workers{% endblock page_header %} {% block page_description %}avaibility{% endblock page_description %} diff --git a/smash/web/templates/doctors/details.html b/smash/web/templates/doctors/details.html index d2e3ed6b..78317e31 100644 --- a/smash/web/templates/doctors/details.html +++ b/smash/web/templates/doctors/details.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'workers'{% endblock page_title %} +{% block ui_active_tab %}'workers'{% endblock ui_active_tab %} {% block page_header %}Worker details{% endblock page_header %} {% block page_description %}details{% endblock page_description %} diff --git a/smash/web/templates/doctors/edit.html b/smash/web/templates/doctors/edit.html index b5032401..9cbb1d98 100644 --- a/smash/web/templates/doctors/edit.html +++ b/smash/web/templates/doctors/edit.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'workers'{% endblock page_title %} +{% block ui_active_tab %}'workers'{% endblock ui_active_tab %} {% block page_header %}Edit worker{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/doctors/index.html b/smash/web/templates/doctors/index.html index 8e78740b..9e166e58 100644 --- a/smash/web/templates/doctors/index.html +++ b/smash/web/templates/doctors/index.html @@ -7,7 +7,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'workers'{% endblock page_title %} +{% block ui_active_tab %}'workers'{% endblock ui_active_tab %} {% block page_header %}Workers{% endblock page_header %} {% block page_description %}information{% endblock page_description %} diff --git a/smash/web/templates/eqdef/index.html b/smash/web/templates/eqdef/index.html index 03a0e24c..d99df097 100644 --- a/smash/web/templates/eqdef/index.html +++ b/smash/web/templates/eqdef/index.html @@ -7,7 +7,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'eqdef'{% endblock page_title %} +{% block ui_active_tab %}'eqdef'{% endblock ui_active_tab %} {% block page_header %}Equipment definitions{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/equipment_and_rooms/index.html b/smash/web/templates/equipment_and_rooms/index.html index 286d3775..6c7a5f4f 100644 --- a/smash/web/templates/equipment_and_rooms/index.html +++ b/smash/web/templates/equipment_and_rooms/index.html @@ -1,6 +1,6 @@ {% extends "_base.html" %} -{% block page_title %}'equipment_and_rooms'{% endblock page_title %} +{% block ui_active_tab %}'equipment_and_rooms'{% endblock ui_active_tab %} {% block page_header %}Equipment and rooms{% endblock page_header %} {% block page_description %} {% endblock page_description %} diff --git a/smash/web/templates/index.html b/smash/web/templates/index.html index 5c824cd3..200a3fd4 100644 --- a/smash/web/templates/index.html +++ b/smash/web/templates/index.html @@ -1,5 +1,5 @@ {% extends "_base.html" %} -{% block page_title %}'subjects'{% endblock page_title %} +{% block ui_active_tab %}'subjects'{% endblock ui_active_tab %} {% block page_header %}Welcome page{% endblock page_header %} {% block page_description %}Short description{% endblock page_description %} diff --git a/smash/web/templates/mail_templates/index.html b/smash/web/templates/mail_templates/index.html index 57d5de7f..45ef610e 100644 --- a/smash/web/templates/mail_templates/index.html +++ b/smash/web/templates/mail_templates/index.html @@ -7,7 +7,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'mail_templates'{% endblock page_title %} +{% block ui_active_tab %}'mail_templates'{% endblock ui_active_tab %} {% block page_header %}Mail templates{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/subjects/add.html b/smash/web/templates/subjects/add.html index 3cd51d6c..2152e511 100644 --- a/smash/web/templates/subjects/add.html +++ b/smash/web/templates/subjects/add.html @@ -7,7 +7,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/awesomplete/awesomplete.css' %}" /> {% endblock styles %} -{% block page_title %}'subjects'{% endblock page_title %} +{% block ui_active_tab %}'subjects'{% endblock ui_active_tab %} {% block page_header %}New subject{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/subjects/delete.html b/smash/web/templates/subjects/delete.html index 93699e20..4e914d36 100644 --- a/smash/web/templates/subjects/delete.html +++ b/smash/web/templates/subjects/delete.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'subjects'{% endblock page_title %} +{% block ui_active_tab %}'subjects'{% endblock ui_active_tab %} {% block page_header %}Are you sure you want to remove information concerning this subject?{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/subjects/details.html b/smash/web/templates/subjects/details.html index 91459a0a..d3429c02 100644 --- a/smash/web/templates/subjects/details.html +++ b/smash/web/templates/subjects/details.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'subjects'{% endblock page_title %} +{% block ui_active_tab %}'subjects'{% endblock ui_active_tab %} {% block page_header %}Details of the subject{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/subjects/edit.html b/smash/web/templates/subjects/edit.html index 0824827e..a8cce2ef 100644 --- a/smash/web/templates/subjects/edit.html +++ b/smash/web/templates/subjects/edit.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'subjects'{% endblock page_title %} +{% block ui_active_tab %}'subjects'{% endblock ui_active_tab %} {% block page_header %}Edit subject{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/subjects/index.html b/smash/web/templates/subjects/index.html index 3a5d8a41..8dafb51e 100644 --- a/smash/web/templates/subjects/index.html +++ b/smash/web/templates/subjects/index.html @@ -6,7 +6,7 @@ {% include "includes/tablesorter.css.html" %} {% endblock styles %} -{% block page_title %}'subjects'{% endblock page_title %} +{% block ui_active_tab %}'subjects'{% endblock ui_active_tab %} {% block page_header %}Subjects{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/subjects/visitdetails.html b/smash/web/templates/subjects/visitdetails.html index 82168b86..2b6476e6 100644 --- a/smash/web/templates/subjects/visitdetails.html +++ b/smash/web/templates/subjects/visitdetails.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'subjects'{% endblock page_title %} +{% block ui_active_tab %}'subjects'{% endblock ui_active_tab %} {% block page_header %}List of visits{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/visits/add.html b/smash/web/templates/visits/add.html index f21345d8..e77edef3 100644 --- a/smash/web/templates/visits/add.html +++ b/smash/web/templates/visits/add.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'visits'{% endblock page_title %} +{% block ui_active_tab %}'visits'{% endblock ui_active_tab %} {% block page_header %}New visit{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/visits/details.html b/smash/web/templates/visits/details.html index c079b3a6..312fe339 100644 --- a/smash/web/templates/visits/details.html +++ b/smash/web/templates/visits/details.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.css' %}"> {% endblock styles %} -{% block page_title %}'visits'{% endblock page_title %} +{% block ui_active_tab %}'visits'{% endblock ui_active_tab %} {% block page_header %}Details of the visit{% endblock page_header %} {% block page_description %}{% endblock page_description %} diff --git a/smash/web/templates/visits/index.html b/smash/web/templates/visits/index.html index a851274e..9a3f6f2b 100644 --- a/smash/web/templates/visits/index.html +++ b/smash/web/templates/visits/index.html @@ -12,7 +12,7 @@ <link rel="stylesheet" href="{% static 'AdminLTE/plugins/fullcalendar/fullcalendar.print.css' %}" media="print"> {% endblock styles %} -{% block page_title %}'visits'{% endblock page_title %} +{% block ui_active_tab %}'visits'{% endblock ui_active_tab %} {% block page_header %}Visits{% endblock page_header %} {% block page_description %}{% endblock page_description %} -- GitLab