From 572d632b33e6a99407ffcd8ff719aa4bfc6c882b Mon Sep 17 00:00:00 2001 From: Jacek Lebioda <jacek.lebioda.001@student.uni.lu> Date: Thu, 12 Jan 2017 20:58:19 +0100 Subject: [PATCH] Simple breadcrumbs --- smash/web/templates/assignments/breadcrumb.html | 2 ++ smash/web/templates/assignments/index.html | 7 ++++--- smash/web/templates/doctors/add.html | 3 +-- smash/web/templates/doctors/availdelete.html | 3 +-- smash/web/templates/doctors/availdex.html | 3 +-- smash/web/templates/doctors/breadcrumb.html | 2 ++ smash/web/templates/doctors/details.html | 3 +-- smash/web/templates/doctors/edit.html | 3 +-- smash/web/templates/doctors/index.html | 3 +-- smash/web/templates/eqdef/breadcrumb.html | 2 ++ smash/web/templates/eqdef/index.html | 3 +-- smash/web/templates/equipment_and_rooms/breadcrumb.html | 2 ++ smash/web/templates/equipment_and_rooms/index.html | 3 +-- smash/web/templates/mail_templates/breadcrumb.html | 2 ++ smash/web/templates/mail_templates/index.html | 5 ++--- 15 files changed, 24 insertions(+), 22 deletions(-) create mode 100644 smash/web/templates/assignments/breadcrumb.html create mode 100644 smash/web/templates/doctors/breadcrumb.html create mode 100644 smash/web/templates/eqdef/breadcrumb.html create mode 100644 smash/web/templates/equipment_and_rooms/breadcrumb.html create mode 100644 smash/web/templates/mail_templates/breadcrumb.html diff --git a/smash/web/templates/assignments/breadcrumb.html b/smash/web/templates/assignments/breadcrumb.html new file mode 100644 index 00000000..d088d449 --- /dev/null +++ b/smash/web/templates/assignments/breadcrumb.html @@ -0,0 +1,2 @@ + <li><a href="{% url 'web.views.assignments' %}"><i class="fa fa-dashboard"></i> Dashboard</a></li> + <li class="active"><a href="{% url 'web.views.assignments' %}">Assignments</a></li> \ No newline at end of file diff --git a/smash/web/templates/assignments/index.html b/smash/web/templates/assignments/index.html index d31e32e2..d6355e5c 100644 --- a/smash/web/templates/assignments/index.html +++ b/smash/web/templates/assignments/index.html @@ -15,9 +15,10 @@ {% block page_header %}Assignments{% endblock page_header %} {% block page_description %}{% endblock page_description %} -{% block breadcrumb %} - <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li> - <li class="active">Assignments</li> +{% block title %}{{ block.super }} - Assignments{% endblock %} + +{% block breadcrumb %} +{% include "assignments/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} diff --git a/smash/web/templates/doctors/add.html b/smash/web/templates/doctors/add.html index a992ed3d..29cdbdbf 100644 --- a/smash/web/templates/doctors/add.html +++ b/smash/web/templates/doctors/add.html @@ -12,8 +12,7 @@ {% block page_description %}adding{% endblock page_description %} {% block breadcrumb %} - <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li> - <li class="active">Workers</li> +{% include "doctors/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} diff --git a/smash/web/templates/doctors/availdelete.html b/smash/web/templates/doctors/availdelete.html index 3ce29156..932ac30c 100644 --- a/smash/web/templates/doctors/availdelete.html +++ b/smash/web/templates/doctors/availdelete.html @@ -12,8 +12,7 @@ {% block page_description %}avaibility{% endblock page_description %} {% block breadcrumb %} - <li><a href="#"><i class="fa fa-dashboard"></i> Avaibilities</a></li> - <li class="active">Workers</li> +{% include "doctors/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} diff --git a/smash/web/templates/doctors/availdex.html b/smash/web/templates/doctors/availdex.html index 3ce29156..932ac30c 100644 --- a/smash/web/templates/doctors/availdex.html +++ b/smash/web/templates/doctors/availdex.html @@ -12,8 +12,7 @@ {% block page_description %}avaibility{% endblock page_description %} {% block breadcrumb %} - <li><a href="#"><i class="fa fa-dashboard"></i> Avaibilities</a></li> - <li class="active">Workers</li> +{% include "doctors/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} diff --git a/smash/web/templates/doctors/breadcrumb.html b/smash/web/templates/doctors/breadcrumb.html new file mode 100644 index 00000000..709191e4 --- /dev/null +++ b/smash/web/templates/doctors/breadcrumb.html @@ -0,0 +1,2 @@ + <li><a href="{% url 'web.views.assignments' %}"><i class="fa fa-dashboard"></i> Dashboard</a></li> + <li class="active"><a href="{% url 'web.views.doctors' %}">Workers</a></li> \ No newline at end of file diff --git a/smash/web/templates/doctors/details.html b/smash/web/templates/doctors/details.html index 1600110c..3e8dab91 100644 --- a/smash/web/templates/doctors/details.html +++ b/smash/web/templates/doctors/details.html @@ -12,8 +12,7 @@ {% block page_description %}details{% endblock page_description %} {% block breadcrumb %} - <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li> - <li class="active">Workers</li> +{% include "doctors/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} diff --git a/smash/web/templates/doctors/edit.html b/smash/web/templates/doctors/edit.html index 26b91e32..b1929a55 100644 --- a/smash/web/templates/doctors/edit.html +++ b/smash/web/templates/doctors/edit.html @@ -12,8 +12,7 @@ {% block page_description %}editing{% endblock page_description %} {% block breadcrumb %} - <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li> - <li class="active">Workers</li> +{% include "doctors/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} diff --git a/smash/web/templates/doctors/index.html b/smash/web/templates/doctors/index.html index 427ea4b7..fd1d0d7c 100644 --- a/smash/web/templates/doctors/index.html +++ b/smash/web/templates/doctors/index.html @@ -12,8 +12,7 @@ {% block page_description %}information{% endblock page_description %} {% block breadcrumb %} - <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li> - <li class="active">Workers</li> +{% include "doctors/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} diff --git a/smash/web/templates/eqdef/breadcrumb.html b/smash/web/templates/eqdef/breadcrumb.html new file mode 100644 index 00000000..996d5f9f --- /dev/null +++ b/smash/web/templates/eqdef/breadcrumb.html @@ -0,0 +1,2 @@ +<li><a href="{% url 'web.views.assignments' %}"><i class="fa fa-dashboard"></i> Dashboard</a></li> + <li class="active"><a href="{% url 'web.views.equipment_def' %}">Equipment definitions</a></li> \ No newline at end of file diff --git a/smash/web/templates/eqdef/index.html b/smash/web/templates/eqdef/index.html index 4f84fd54..03a0e24c 100644 --- a/smash/web/templates/eqdef/index.html +++ b/smash/web/templates/eqdef/index.html @@ -12,8 +12,7 @@ {% block page_description %}{% endblock page_description %} {% block breadcrumb %} - <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li> - <li class="active">Equipment definitions</li> +{% include "eqdef/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} diff --git a/smash/web/templates/equipment_and_rooms/breadcrumb.html b/smash/web/templates/equipment_and_rooms/breadcrumb.html new file mode 100644 index 00000000..93579eab --- /dev/null +++ b/smash/web/templates/equipment_and_rooms/breadcrumb.html @@ -0,0 +1,2 @@ +<li><a href="{% url 'web.views.assignments' %}"><i class="fa fa-dashboard"></i> Dashboard</a></li> + <li class="active"><a href="{% url 'web.views.equipment_and_rooms' %}">Equipment and rooms</a></li> \ No newline at end of file diff --git a/smash/web/templates/equipment_and_rooms/index.html b/smash/web/templates/equipment_and_rooms/index.html index 29148f99..df28518d 100644 --- a/smash/web/templates/equipment_and_rooms/index.html +++ b/smash/web/templates/equipment_and_rooms/index.html @@ -6,8 +6,7 @@ {% endblock page_description %} {% block breadcrumb %} - <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li> - <li class="active">Equipment and rooms</li> +{% include "equipment_and_rooms/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} diff --git a/smash/web/templates/mail_templates/breadcrumb.html b/smash/web/templates/mail_templates/breadcrumb.html new file mode 100644 index 00000000..8621be91 --- /dev/null +++ b/smash/web/templates/mail_templates/breadcrumb.html @@ -0,0 +1,2 @@ +<li><a href="{% url 'web.views.assignments' %}"><i class="fa fa-dashboard"></i> Dashboard</a></li> + <li class="active"><a href="{% url 'web.views.mail_templates' %}">Mail templates</a></li> \ No newline at end of file diff --git a/smash/web/templates/mail_templates/index.html b/smash/web/templates/mail_templates/index.html index df8b0490..453afb8d 100644 --- a/smash/web/templates/mail_templates/index.html +++ b/smash/web/templates/mail_templates/index.html @@ -11,9 +11,8 @@ {% block page_header %}Mail templates{% endblock page_header %} {% block page_description %}{% endblock page_description %} -{% block breadcrumb %} - <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li> - <li class="active">Mail templates</li> +{% block breadcrumb %} +{% include "mail_templates/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} -- GitLab