From ff7e954652512de3aa58f17c0e01e0ea4910a204 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Tue, 1 Sep 2020 10:47:51 +0200 Subject: [PATCH] Add missing card on button edit --- .../note/transactiontemplate_form.html | 42 +++++++++++-------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/apps/note/templates/note/transactiontemplate_form.html b/apps/note/templates/note/transactiontemplate_form.html index f64c1f3c..816be9d8 100644 --- a/apps/note/templates/note/transactiontemplate_form.html +++ b/apps/note/templates/note/transactiontemplate_form.html @@ -5,24 +5,30 @@ SPDX-License-Identifier: GPL-3.0-or-later {% load static i18n crispy_forms_tags pretty_money %} {% block content %} -

{{ title }}

-

- {% trans "Buttons list" %} -

-
- {% csrf_token %} - {{form|crispy}} - -
+{% trans "Buttons list" %} - {% if price_history and price_history.1 %} -
+
+

+ {{ title }} +

+
+
+ {% csrf_token %} + {{form|crispy}} + +
+ + {% if price_history and price_history.1 %} +
+ +

{% trans "Price history" %}

+
    + {% for price in price_history %} +
  • {{ price.price|pretty_money }} {% if price.time %}({% trans "Obsolete since" %} {{ price.time }}){% else %}({% trans "Current price" %}){% endif %}
  • + {% endfor %} +
+ {% endif %} +
+
-

{% trans "Price history" %}

- - {% endif %} {% endblock %}