mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-23 00:01:16 +00:00
Fix customerBalance not init and submit/cancel buttons visuals
This commit is contained in:
parent
244447c57a
commit
e68d944640
@ -110,8 +110,10 @@
|
|||||||
<strong> €</strong>
|
<strong> €</strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<input type="submit" @click.prevent="finish" value="{% trans %}Finish{% endtrans %}"/>
|
<div class="row">
|
||||||
<input type="submit" @click.prevent="cancel" value="{% trans %}Cancel{% endtrans %}"/>
|
<input class="btn btn-blue" type="submit" @click.prevent="finish" value="{% trans %}Finish{% endtrans %}"/>
|
||||||
|
<input class="btn btn-grey" type="submit" @click.prevent="cancel" value="{% trans %}Cancel{% endtrans %}"/>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% if object.type == "BAR" %}
|
{% if object.type == "BAR" %}
|
||||||
@ -199,6 +201,7 @@
|
|||||||
];
|
];
|
||||||
window.addEventListener("DOMContentLoaded", () => {
|
window.addEventListener("DOMContentLoaded", () => {
|
||||||
loadCounter({
|
loadCounter({
|
||||||
|
customerBalance: {{ customer.amount }},
|
||||||
products: products,
|
products: products,
|
||||||
customerId: {{ customer.pk }},
|
customerId: {{ customer.pk }},
|
||||||
formInitial: formInitial,
|
formInitial: formInitial,
|
||||||
|
Loading…
Reference in New Issue
Block a user