mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Another tiny template improvement
This commit is contained in:
parent
0d8bebcd80
commit
5931351c0a
@ -154,6 +154,11 @@ code {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 4px;
|
margin: 4px;
|
||||||
}
|
}
|
||||||
|
.important {
|
||||||
|
font-size: 1.2em;
|
||||||
|
font-weight: bold;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 0.90em;
|
font-size: 0.90em;
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
<div id="bar_ui">
|
<div id="bar_ui">
|
||||||
<h5>{% trans %}Selling{% endtrans %}</h5>
|
<h5>{% trans %}Selling{% endtrans %}</h5>
|
||||||
<div>
|
<div>
|
||||||
|
<div class="important">
|
||||||
{% if request.session['too_young'] %}
|
{% if request.session['too_young'] %}
|
||||||
<p><strong>{% trans %}Too young for that product{% endtrans %}</strong></p>
|
<p><strong>{% trans %}Too young for that product{% endtrans %}</strong></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -46,6 +47,7 @@
|
|||||||
{% if request.session['not_enough'] %}
|
{% if request.session['not_enough'] %}
|
||||||
<p><strong>{% trans %}Not enough money{% endtrans %}</strong></p>
|
<p><strong>{% trans %}Not enough money{% endtrans %}</strong></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
<form method="post" action="{{ url('counter:click', counter_id=counter.id, user_id=customer.user.id) }}">
|
<form method="post" action="{{ url('counter:click', counter_id=counter.id, user_id=customer.user.id) }}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="action" value="code">
|
<input type="hidden" name="action" value="code">
|
||||||
@ -66,6 +68,20 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
<p><strong>{% trans %}Total: {% endtrans %}{{ "%0.2f"|format(basket_total) }} €</strong></p>
|
<p><strong>{% trans %}Total: {% endtrans %}{{ "%0.2f"|format(basket_total) }} €</strong></p>
|
||||||
|
<div class="important">
|
||||||
|
{% if request.session['too_young'] %}
|
||||||
|
<p><strong>{% trans %}Too young for that product{% endtrans %}</strong></p>
|
||||||
|
{% endif %}
|
||||||
|
{% if request.session['not_allowed'] %}
|
||||||
|
<p><strong>{% trans %}Not allowed for that product{% endtrans %}</strong></p>
|
||||||
|
{% endif %}
|
||||||
|
{% if request.session['no_age'] %}
|
||||||
|
<p><strong>{% trans %}No date of birth provided{% endtrans %}</strong></p>
|
||||||
|
{% endif %}
|
||||||
|
{% if request.session['not_enough'] %}
|
||||||
|
<p><strong>{% trans %}Not enough money{% endtrans %}</strong></p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
<form method="post" action="{{ url('counter:click', counter_id=counter.id, user_id=customer.user.id) }}">
|
<form method="post" action="{{ url('counter:click', counter_id=counter.id, user_id=customer.user.id) }}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="action" value="finish">
|
<input type="hidden" name="action" value="finish">
|
||||||
|
Loading…
Reference in New Issue
Block a user