Self hosted FLOSS fitness/workout, nutrition and weight tracker
Use breadcrumbs in email compose form
Roland Geider8a57611d2e98
diff --git a/wger/email/templates/email/form.html b/wger/email/templates/email/form.htmlindex 76be0fdf8..941b721d1 100644--- a/wger/email/templates/email/form.html+++ b/wger/email/templates/email/form.html@@ -1,9 +1,19 @@{% extends "base.html" %}-{% load wger_extras %}-{% load i18n %}+{% load wger_extras i18n django_bootstrap_breadcrumbs %}{% block title %}{% trans 'Email' %} - {{ gym }}{% endblock %}+{% block breadcrumbs %}+ {{ block.super }}++ {% if perms.gym.manage_gyms %}+ {% breadcrumb "Gyms" "gym:gym:list" %}+ {% endif %}++ {% breadcrumb_raw gym "gym:gym:user-list" gym.pk %}+ {% breadcrumb "Emails" "email:email:add" gym.pk %}+{% endblock %}+{% block content %}<form action="{{ form_action }}"method="post"diff --git a/wger/email/templates/email/preview.html b/wger/email/templates/email/preview.htmlindex a9c5bcb3f..22a86e5af 100644--- a/wger/email/templates/email/preview.html+++ b/wger/email/templates/email/preview.html@@ -1,8 +1,21 @@{% extends "base.html" %}-{% load wger_extras i18n %}+{% load wger_extras i18n django_bootstrap_breadcrumbs %}{% block title %}{% trans 'Email' %} - {{ gym }}{% endblock %}++{% block breadcrumbs %}+ {{ block.super }}++ {% if perms.gym.manage_gyms %}+ {% breadcrumb "Gyms" "gym:gym:list" %}+ {% endif %}++ {% breadcrumb_raw gym "gym:gym:user-list" gym.pk %}+ {% breadcrumb "Emails" "email:email:add" gym.pk %}+{% endblock %}++{% block content %}<h3>{% trans 'Current version' %}</h3>