listing categ toggle buttons

This commit is contained in:
Baptiste Lemoine 2018-06-27 10:48:02 +02:00
parent 19541dfce8
commit bb63734e4d

View File

@ -56,6 +56,8 @@
</button> </button>
</div> </div>
<div> <div>
{% endverbatim %} {% endverbatim %}
{#<button class="btn btn-default" ng-click="sellingComment = 'boobbbbbb'">#} {#<button class="btn btn-default" ng-click="sellingComment = 'boobbbbbb'">#}
{#<i class="fa fa-arrow-right"></i>#} {#<i class="fa fa-arrow-right"></i>#}
@ -70,6 +72,25 @@
{% include 'logged/caisse-main.html.twig' %} {% 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> </div>
<div id="categories" class="tab-pane fade"> <div id="categories" class="tab-pane fade">
@ -81,19 +102,9 @@
<div id="history" class="tab-pane fade"> <div id="history" class="tab-pane fade">
<h2>Historique</h2> <h2>Historique</h2>
</div> </div>
{% endverbatim %}
</div> </div>
</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 %} {% endblock %}