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

@ -1,7 +1,7 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'FOSUserBundle' %}
{% block body %}
<div id="wrapper">
<div id="wrapper">
<div id="container" class="container">
<div id="caisse-now" class="tab-pane fade in active">
<div class="caisse-main row"
@ -56,7 +56,9 @@
</button>
</div>
<div>
{% endverbatim %}
{% endverbatim %}
{#<button class="btn btn-default" ng-click="sellingComment = 'boobbbbbb'">#}
{#<i class="fa fa-arrow-right"></i>#}
{#</button>#}
@ -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 %}
{% endblock %}