From: Frédéric Péters Date: Sat, 18 Jul 2020 06:36:17 +0000 (+0200) Subject: templates: add proper markup for appbar action buttons X-Git-Tag: v2021~16 X-Git-Url: https://git.0d.be/?p=django-panik-matos.git;a=commitdiff_plain;h=f5f0dd8e5b8710964b8e8ab1f5d03a0cc0027bfb templates: add proper markup for appbar action buttons --- diff --git a/matos/templates/matos/loan_detail.html b/matos/templates/matos/loan_detail.html index 1b47b0b..98a01a6 100644 --- a/matos/templates/matos/loan_detail.html +++ b/matos/templates/matos/loan_detail.html @@ -3,7 +3,7 @@ {% block appbar %}

{{ object.date_start }} → {{ object.date_end }}

-{% trans 'Back to inventory' %} +{% trans 'Back to inventory' %} {% endblock %} {% block content %} diff --git a/matos/templates/matos/loan_form.html b/matos/templates/matos/loan_form.html index a25f417..6dce79c 100644 --- a/matos/templates/matos/loan_form.html +++ b/matos/templates/matos/loan_form.html @@ -4,10 +4,10 @@ {% block appbar %} {% if object %}

{{ object.date_start }} → {{ object.date_end }}

-{% trans 'Back to Loan' %} +{% trans 'Back to Loan' %} {% else %}

{% trans 'New Loan' %}

-{% trans 'Back to inventory' %} +{% trans 'Back to inventory' %} {% endif %} {% endblock %} diff --git a/matos/templates/matos/piece_confirm_delete.html b/matos/templates/matos/piece_confirm_delete.html index 7b97c2c..2d5345e 100644 --- a/matos/templates/matos/piece_confirm_delete.html +++ b/matos/templates/matos/piece_confirm_delete.html @@ -3,7 +3,7 @@ {% block appbar %}

{{ object.title }}

-{% trans 'Back to Piece' %} +{% trans 'Back to Piece' %} {% endblock %} {% block content %} diff --git a/matos/templates/matos/piece_detail.html b/matos/templates/matos/piece_detail.html index b8b57eb..458737c 100644 --- a/matos/templates/matos/piece_detail.html +++ b/matos/templates/matos/piece_detail.html @@ -3,7 +3,7 @@ {% block appbar %}

{{ object.title }}

-{% trans 'Back to inventory' %} +{% trans 'Back to inventory' %} {% endblock %} {% block content %} diff --git a/matos/templates/matos/piece_form.html b/matos/templates/matos/piece_form.html index 276967e..6a96cb6 100644 --- a/matos/templates/matos/piece_form.html +++ b/matos/templates/matos/piece_form.html @@ -4,10 +4,10 @@ {% block appbar %} {% if object %}

{{ object.title }}

-{% trans 'Back to Piece' %} +{% trans 'Back to Piece' %} {% else %}

{% trans 'New Piece' %}

-{% trans 'Back to inventory' %} +{% trans 'Back to inventory' %} {% endif %} {% endblock %}