caisse-bliss/app/Resources/views/logged/caisse-main.html.twig

89 lines
2.5 KiB
Twig
Raw Normal View History

2018-04-05 14:21:32 +02:00
<div class="caisse-main row"
ng-app="caisse"
ng-controller="CaisseCtrl"
>
{% verbatim %}
<div class="alert">
test stuff: {{ stuff[0] }}.
<br>compte: {{ stuff.length }}.
</div>
<div class="well">
{{productsFromDB.length}}
</div>
{% endverbatim %}
<div class="listing-products col-xs-9">
2018-04-04 17:42:27 +02:00
{% for c in categories %}
2018-04-04 18:37:20 +02:00
<h2>
{{ c.name }}
</h2>
2018-04-04 17:42:27 +02:00
{% for p in c.products %}
2018-04-05 14:21:32 +02:00
<button class="btn btn-default"
ng-click="addProduct({{ p.id }})">
2018-04-04 18:37:20 +02:00
{{ p.name }}
</button>
2018-04-04 17:42:27 +02:00
{% endfor %}
{% endfor %}
</div>
2018-04-05 14:21:32 +02:00
<div class="sellings col-xs-3">
2018-04-04 17:42:27 +02:00
<div class="current-selling">
<form action="">
2018-04-05 15:05:04 +02:00
<ul >
2018-04-05 14:21:32 +02:00
{% verbatim %}
2018-04-04 17:42:27 +02:00
2018-04-05 14:21:32 +02:00
<li ng-repeat="p in activeSelling">
{{p.name}} x1 {{p.price}}
</li>
</ul>
<h3>Total: {{CurrentSellingTotal}}€</h3>
{% endverbatim %}
<input type="number" id="paid_amount">
<h3>Rendu: xxxx€</h3>
<div class="row">
<div class="col">
<button class="btn btn-primary" id="pause_selling">
<i class="fa fa-clock"></i>
Pause
</button>
</div>
<div class="col">
<button class="btn btn-primary" id="validate_selling">
<i class="fa fa-check"></i>
Valider
</button>
</div>
2018-04-04 17:42:27 +02:00
</div>
</form>
<hr>
</div>
<div class="selling-on-hold">
<h4>
Ventes en pause
</h4>
<ul>
<li>h:m:s xxxx€</li>
</ul>
<hr>
</div>
<div class="selling-history">
<h4>
Ventes récentes
</h4>
2018-04-05 14:21:32 +02:00
{% if recentSells %}
<ul>
{% for s in recentSells %}
<li>{{ s.date|date('Y/m/d H:i:s') }} {{ s.amount }}€</li>
{% endfor %}
</ul>
{% else %}
aucune
{% endif %}
2018-04-04 17:42:27 +02:00
</div>
</div>
</div>