2018-04-06 15:43:14 +02:00
|
|
|
{% verbatim %}
|
|
|
|
<div class="current-selling">
|
2018-04-17 12:10:21 +02:00
|
|
|
|
2018-04-19 16:26:48 +02:00
|
|
|
<form action="#container">
|
2018-04-17 15:08:30 +02:00
|
|
|
<h2>
|
|
|
|
|
2018-04-19 16:26:48 +02:00
|
|
|
Festival:
|
|
|
|
<span class="badge badge-success">{{ activeFestival.chiffreAffaire }} €</span>
|
|
|
|
</h2>
|
|
|
|
|
2018-04-06 15:54:59 +02:00
|
|
|
<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>
|
2018-04-17 15:08:30 +02:00
|
|
|
|
|
|
|
<h2>
|
|
|
|
<i class="fa fa-user"></i> Client actuel:
|
|
|
|
</h2>
|
2018-04-17 16:15:24 +02:00
|
|
|
{{ activeSelling.length }} produit<span ng-if="activeSelling.length>1">s</span>
|
2018-04-19 16:26:48 +02:00
|
|
|
<input id="sellingComment" name="sellingComment" class="input input-lg" type="text" ng-model="sellingComment" placeholder="nom ou commentaire">
|
|
|
|
{{ sellingComment }}
|
2018-04-06 15:54:59 +02:00
|
|
|
<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">
|
2018-04-17 15:08:30 +02:00
|
|
|
<span class="btn btn-warning input-group-addon remove-itm"
|
|
|
|
ng-click="activeSelling.splice($index,1); regenActiveSellingIds()">
|
2018-04-06 15:43:14 +02:00
|
|
|
<i class="fa fa-trash"></i>
|
2018-04-17 15:08:30 +02:00
|
|
|
</span>
|
2018-04-06 15:43:14 +02:00
|
|
|
</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">
|
2018-04-17 15:08:30 +02:00
|
|
|
<h3>
|
|
|
|
<strong>
|
|
|
|
|
|
|
|
{{ CurrentSellingTotal() }} </strong>€
|
|
|
|
</h3>
|
2018-04-06 16:39:41 +02:00
|
|
|
</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-17 14:52:31 +02:00
|
|
|
{% endverbatim %}
|
|
|
|
{% include 'logged/angular/validate-button.html.twig' %}
|
|
|
|
{% verbatim %}
|
2018-04-06 15:43:14 +02:00
|
|
|
</div>
|
2018-04-17 14:52:31 +02:00
|
|
|
<!--<div class="col">-->
|
|
|
|
<!--<button class="btn btn-default" id="pause_selling" ng-click="pauseSelling()">-->
|
|
|
|
<!--<i class="fa fa-clock"></i>-->
|
|
|
|
<!--Pause-->
|
|
|
|
<!--</button>-->
|
|
|
|
<!--</div>-->
|
2018-04-06 15:43:14 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
|
2018-04-17 14:52:31 +02:00
|
|
|
|
2018-04-06 15:43:14 +02:00
|
|
|
{% endverbatim %}
|
2018-04-17 14:52:31 +02:00
|
|
|
|