From 5931351c0a4b6223e26ec77bab854cd1ed9a23fb Mon Sep 17 00:00:00 2001 From: Skia Date: Wed, 12 Oct 2016 12:32:04 +0200 Subject: [PATCH] Another tiny template improvement --- core/static/core/style.css | 5 +++ counter/templates/counter/counter_click.jinja | 40 +++++++++++++------ 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/core/static/core/style.css b/core/static/core/style.css index 31ee710e..4c67f11d 100644 --- a/core/static/core/style.css +++ b/core/static/core/style.css @@ -154,6 +154,11 @@ code { display: inline-block; margin: 4px; } +.important { + font-size: 1.2em; + font-weight: bold; + color: red; +} table { width: 100%; font-size: 0.90em; diff --git a/counter/templates/counter/counter_click.jinja b/counter/templates/counter/counter_click.jinja index 648ac247..a086aa6a 100644 --- a/counter/templates/counter/counter_click.jinja +++ b/counter/templates/counter/counter_click.jinja @@ -34,18 +34,20 @@
{% trans %}Selling{% endtrans %}
- {% if request.session['too_young'] %} -

{% trans %}Too young for that product{% endtrans %}

- {% endif %} - {% if request.session['not_allowed'] %} -

{% trans %}Not allowed for that product{% endtrans %}

- {% endif %} - {% if request.session['no_age'] %} -

{% trans %}No date of birth provided{% endtrans %}

- {% endif %} - {% if request.session['not_enough'] %} -

{% trans %}Not enough money{% endtrans %}

- {% endif %} +
+ {% if request.session['too_young'] %} +

{% trans %}Too young for that product{% endtrans %}

+ {% endif %} + {% if request.session['not_allowed'] %} +

{% trans %}Not allowed for that product{% endtrans %}

+ {% endif %} + {% if request.session['no_age'] %} +

{% trans %}No date of birth provided{% endtrans %}

+ {% endif %} + {% if request.session['not_enough'] %} +

{% trans %}Not enough money{% endtrans %}

+ {% endif %} +
{% csrf_token %} @@ -66,6 +68,20 @@ {% endfor %}

{% trans %}Total: {% endtrans %}{{ "%0.2f"|format(basket_total) }} €

+
+ {% if request.session['too_young'] %} +

{% trans %}Too young for that product{% endtrans %}

+ {% endif %} + {% if request.session['not_allowed'] %} +

{% trans %}Not allowed for that product{% endtrans %}

+ {% endif %} + {% if request.session['no_age'] %} +

{% trans %}No date of birth provided{% endtrans %}

+ {% endif %} + {% if request.session['not_enough'] %} +

{% trans %}Not enough money{% endtrans %}

+ {% endif %} +
{% csrf_token %}