caisse-bliss/app/Resources/views/logged/angular/current.html.twig

88 lines
3.2 KiB
Twig
Raw Normal View History

2018-04-06 15:43:14 +02:00
{% verbatim %}
<div class="current-selling">
2018-04-17 12:10:21 +02:00
<div class="well">
<button class="btn btn-primary btn-block" id="validate_selling" ng-click="sendForm()"
ng-disabled="!paidAmount">
<i class="fa fa-check"></i>
Valider
</button>
<pre>
{{lesParams|json}}
</pre>
</div>
2018-04-06 15:43:14 +02:00
<form action="#">
Festival:
<input type="text" ng-model="activeFestival.name" placeholder="nom du festival">
<input type="text" ng-model="activeFestival.commentaire" placeholder="commentaire">
2018-04-06 15:43:14 +02:00
<hr>
Client actuel:
2018-04-06 15:43:14 +02:00
{{ activeSelling.length }} produits
2018-04-17 12:10:21 +02:00
<input type="text" ng-model="sellingComment" placeholder="commentaire">
<hr>
2018-04-06 15:43:14 +02:00
<ul>
<li ng-repeat="p in activeSelling track by $index">
<div class="row">
<div class="col-xs-6">
<div class="input-group">
<input type="text" ng-model="p.name">
<div class="btn btn-warning input-group-addon"
ng-click="activeSelling.splice($index,1)">
<i class="fa fa-trash"></i>
</div>
</div>
</div>
<div class="col-xs-6 text-right">
<strong>
<input type="number" ng-model="p.price">
€ </strong>
</div>
</div>
</li>
</ul>
<div class="text-right">
2018-04-06 16:39:41 +02:00
<div class="row">
<div class="col-xs-6">
<h3>Total: </h3>
</div>
<div class="col-xs-6">
<strong>{{ CurrentSellingTotal() }}€</strong>
</div>
</div>
<div class="row">
<div class="col-xs-6">
Le client paie:
</div>
<div class="col-xs-6">
<input type="number" id="paid_amount" ng-model="paidAmount">
</div>
</div>
<div class="alert alert-success" ng-if="paidAmount && CurrentSellingTotal() - paidAmount <=0">
<h3>Rendu: {{ -1*(CurrentSellingTotal() - paidAmount) }} €</h3>
2018-04-06 15:43:14 +02:00
</div>
2018-04-06 16:39:41 +02:00
<div class="alert alert-warning" ng-if="paidAmount && CurrentSellingTotal() - paidAmount >0">
<h3>il manque: {{ CurrentSellingTotal() - paidAmount }} €</h3>
2018-04-06 15:43:14 +02:00
</div>
</div>
<div class="row">
<div class="col">
2018-04-10 10:16:23 +02:00
<button class="btn btn-primary btn-block" id="validate_selling" ng-click="sendForm()"
ng-disabled="!paidAmount">
2018-04-06 15:43:14 +02:00
<i class="fa fa-check"></i>
Valider
</button>
</div>
<div class="col">
<button class="btn btn-default" id="pause_selling" ng-click="pauseSelling()">
<i class="fa fa-clock"></i>
Pause
</button>
</div>
</div>
</form>
<hr>
</div>
{% endverbatim %}