caisse-bliss/app/Resources/views/logged/angular/current.html.twig
2018-04-06 15:54:59 +02:00

62 lines
2.4 KiB
Twig

{% verbatim %}
<div class="current-selling">
<form action="#">
Festival:
<input type="text" ng-model="activeFestival.name" placeholder="nom du festival">
<input type="text" ng-model="activeFestival.commentaire" placeholder="commentaire">
<hr>
Client actuel:
{{ activeSelling.length }} produits
<input type="text" ng-model="commentaire" placeholder="commentaire">
<hr>
<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">
<h3>Total: <strong>{{ CurrentSellingTotal() }}€</strong></h3>
<input type="number" id="paid_amount" ng-model="paidAmount">
<div class="alert alert-success" ng-if="CurrentSellingTotal() - paidAmount <=0">
<h3>Rendu: {{ CurrentSellingTotal() - paidAmount }}€</h3>
</div>
<div class="alert alert-warning" ng-if="CurrentSellingTotal() - paidAmount >0">
<h3>il manque: {{ CurrentSellingTotal() - paidAmount }}€</h3>
</div>
</div>
<div class="row">
<div class="col">
<button class="btn btn-primary btn-block" id="validate_selling" ng-click="sendForm()">
<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 %}