listing categ toggle buttons

This commit is contained in:
Baptiste Lemoine 2018-06-27 10:48:02 +02:00
parent 19541dfce8
commit bb63734e4d
1 changed files with 77 additions and 66 deletions

View File

@ -56,6 +56,8 @@
</button>
</div>
<div>
{% endverbatim %}
{#<button class="btn btn-default" ng-click="sellingComment = 'boobbbbbb'">#}
{#<i class="fa fa-arrow-right"></i>#}
@ -70,6 +72,25 @@
{% include 'logged/caisse-main.html.twig' %}
{% verbatim %}
<div class="choice-categories" ng-if="categories.length">
<h2>
Visibilité des catégories
</h2>
<div
ng-repeat="c in categories"
>
<div class="btn"
ng-class="{'btn-success': !c.hidden}"
ng-click="c.hidden = !c.hidden">
{{ c.name }}
</div>
</div>
</div>
</div>
</div>
<div id="categories" class="tab-pane fade">
@ -81,19 +102,9 @@
<div id="history" class="tab-pane fade">
<h2>Historique</h2>
</div>
{% endverbatim %}
</div>
</div>
<div class="choice-categories">
<h2>
Visibilité des catégories
</h2>
<div class="btn"
ng-class="{'btn-success': !c.hidden}"
ng-repeat="c in categories"
>
<div ng-click="c.hidden = !c.hidden">
{{ c.name }}
</div>
</div>
</div>
{% endblock %}