counter_click.jinja: fix error display with Vue

This commit is contained in:
Skia 2021-10-11 22:09:45 +02:00
parent 89979dbf61
commit bfa3b45547
1 changed files with 3 additions and 1 deletions

View File

@ -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 %}