display recent sellings of current festival

This commit is contained in:
Tykayn 2025-02-26 18:53:23 +01:00 committed by tykayn
parent 20611e96c2
commit 66ca3bdf31
5 changed files with 46 additions and 20 deletions

View file

@ -5,18 +5,14 @@
<div id="listing-products" class="listing-products">
{% include 'logged/angular/messages.html.twig' %}
{% include 'logged/angular/listing-products.html.twig' %}
</div>
<div id="sellings" class="sellings">
<div class="list-sell" ng-class="{'bg-success text-success': sellingOk }">
<button class="button btn btn-default">valider</button>
{% include 'logged/angular/validate-button.html.twig' %}
{% if app.user.products |length %}
{% include 'logged/angular/current.html.twig' %}
{% endif %}
{% include 'logged/angular/paused.html.twig' %}
</div>
</div>
@ -30,7 +26,6 @@
</div>
<div class="col-xs-12 col-md-6">
<div id="other_time">
ventes récentes
{% include 'logged/angular/recent.html.twig' %}
</div>
</div>

View file

@ -1,8 +1,13 @@
<div class="selling-history">
{% verbatim %}
<div ng-repeat="s in recentSelling track by $index">
<h2>
{{recentSellings.length}} Ventes récentes
</h2>
<div ng-repeat="s in recentSellings track by $index">
{{s.id}} )
{{s.amount}}
{{s.sum}}
{{s.note}}
</div>
{% endverbatim %}
</div>