mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 18:44:23 +00:00
counter_click.jinja: fix error display with Vue
This commit is contained in:
parent
89979dbf61
commit
bfa3b45547
@ -50,9 +50,11 @@
|
|||||||
<h5>{% trans %}Selling{% endtrans %}</h5>
|
<h5>{% trans %}Selling{% endtrans %}</h5>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
<div class="important">
|
<div class="important">
|
||||||
<p v-for="error in errors"><strong>{{ error }}</strong></p>
|
<p v-for="error in errors"><strong>{{ error }}</strong></p>
|
||||||
</div>
|
</div>
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
<form method="post" action="{{ url('counter:click', counter_id=counter.id, user_id=customer.user.id) }}" class="code_form" @submit.prevent="handle_code">
|
<form method="post" action="{{ url('counter:click', counter_id=counter.id, user_id=customer.user.id) }}" class="code_form" @submit.prevent="handle_code">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
@ -88,11 +90,11 @@
|
|||||||
<p>
|
<p>
|
||||||
<strong>Total: {{ sum_basket().toLocaleString(undefined, { minimumFractionDigits: 2 }) }} €</strong>
|
<strong>Total: {{ sum_basket().toLocaleString(undefined, { minimumFractionDigits: 2 }) }} €</strong>
|
||||||
</p>
|
</p>
|
||||||
{% endraw %}
|
|
||||||
|
|
||||||
<div class="important">
|
<div class="important">
|
||||||
<p v-for="error in errors"><strong>{{ error }}</strong></p>
|
<p v-for="error in errors"><strong>{{ error }}</strong></p>
|
||||||
</div>
|
</div>
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
<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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user