caisse-bliss/app/Resources/views/logged/dashboard.html.twig

124 lines
6.0 KiB
Twig
Raw Normal View History

2018-04-04 17:42:27 +02:00
{% extends 'base.html.twig' %}
{% block body %}
2019-07-04 16:26:43 +02:00
{% verbatim %}
2019-06-12 14:13:36 +02:00
<div id="caisse-now" class="tab-pane fade in active">
<div class="caisse-main row-fluid"
ng-app="caisse"
ng-controller="CaisseCtrl as MainCtrl"
>
2019-07-04 17:51:14 +02:00
<!--états de sauvegarde-->
<div class="selling-ok alert-success alert block" ng-if="sellingOk" ng-click="sellingOk = false">
<i class="fa fa-save"></i>
Sauvegardé!
</div>
<div class="selling-ok alert-error alert block" ng-if="sellingError" ng-click="sellingError = false">
<i class="fa fa-warning"></i>
Problème de sauvegarde (pas de réseau ?)
</div>
<!-- options-->
2019-07-04 17:43:25 +02:00
<div class="row marged-v" ng-if="simpleDisplay">
<button class="btn btn-success" ng-click="toggleSimpleDisplay()">
<i class="fa fa-bars"></i> Affichage simple <i class="fa fa-check-circle"></i>
</button>
</div>
<div class="row marged-v" ng-if="! simpleDisplay">
2019-07-04 17:29:26 +02:00
<div class="col-xs-12 col-md-6" id="main_options">
2019-07-04 17:43:25 +02:00
<button class="btn btn-disabled" ng-click="toggleSimpleDisplay()">
<i class="fa fa-bars"></i> Affichage simple
</button>
2019-06-12 14:13:36 +02:00
<button
title="la vente express vous permet d'enregistrer une vente pour un seul article sans remplir le formulaire de détail"
class="btn"
ng-class="{'btn-success': expressSelling, 'btn-disabled':!expressSelling}"
ng-click="expressSelling = !expressSelling">
<i class="fa fa-shopping-cart"></i>
mode vente express
<span ng-if=expressSelling>
<i class="fa fa-check-circle"></i></span>
2019-06-12 14:13:36 +02:00
</button>
<button
title="montrer le nombre d'objets restants dans les stocks"
class="btn"
ng-class="{'btn-success': show_config.stock_count, 'btn-disabled':!show_config.stock_count}"
ng-click="show_config.stock_count = !show_config.stock_count">
<i class="fa fa-shopping-cart"></i>
stocks
<span ng-if=show_config.stock_count>
<i class="fa fa-check-circle"></i></span>
2019-06-12 14:13:36 +02:00
</button>
<button
title="montrer le nombre d'objets restants dans les stocks"
class="btn"
ng-class="{'btn-success': show_config.sold, 'btn-disabled':!show_config.sold}"
ng-click="show_config.sold = !show_config.sold">
<i class="fa fa-shopping-cart"></i>
vendus
<span ng-if=show_config.sold>
<i class="fa fa-check-circle"></i>
</span>
2019-06-12 14:13:36 +02:00
</button>
2019-07-04 17:29:26 +02:00
<br>
<div id="festival-current_info">
{% endverbatim %}
2019-07-04 17:43:25 +02:00
<a class="btn " href="{{ path('festival_index') }}">
2019-07-04 17:29:26 +02:00
2019-07-04 17:43:25 +02:00
<i class="fa fa-th-large"></i>
Festival
</a>:
{% verbatim %}
2019-07-04 17:29:26 +02:00
<input type="text" ng-model="activeFestival.name" placeholder="nom du festival">
<input class="pull-right" type="text" ng-model="activeFestival.commentaire" placeholder="commentaire">
<span class="badge" title="fond de caisse + chiffre d'affaire. veillez à vider votre fond de caisse ailleurs lorsqu'il devient trop important, par exemple au dela de 200€" ng-class="{'badge-warning': activeFestival.fondDeCaisseAvant + activeFestival.chiffreAffaire > 200}">
<i class="fa fa-archive"></i>
{{ activeFestival.fondDeCaisseAvant + activeFestival.chiffreAffaire}} €
</span>
<span class="badge badge-success">
CA {{ activeFestival.chiffreAffaire }}
<span ng-if="sellingOk">
<i class="fa fa-check-circle-o"></i>
</span>
</span>
<span class="badge badge-success">{{ activeFestival.clientsCount }} <i class="fa fa-user"></i></span>
</div>
2019-06-12 14:13:36 +02:00
</div>
<div class="col-xs-12 col-md-6">
2019-07-04 17:29:26 +02:00
<div id="client-now" class="client-now padded">
2019-06-12 14:13:36 +02:00
<i class="fa fa-user"></i>
2019-07-04 17:43:25 +02:00
Client actuel: {{ activeSelling.length }} produit<span ng-if="activeSelling.length!=1">s</span>
<button type="button" class="deleter pull-right" ng-click="sellingComment = ''">
2018-05-04 19:53:57 +02:00
<i class="fa fa-times"></i>
</button>
2019-07-04 17:43:25 +02:00
<input type="text" class="form-control" aria-label="Recipient's username" aria-describedby="basic-addon2" ng-model="sellingComment" placeholder="nom ou commentaire">
2018-06-27 10:48:02 +02:00
2019-07-03 17:15:58 +02:00
</div>
2019-07-04 16:26:43 +02:00
</div>
2019-07-04 17:43:25 +02:00
</div>
2019-07-04 17:51:14 +02:00
2019-07-03 17:15:58 +02:00
{% endverbatim %}
2018-06-27 10:48:02 +02:00
2019-07-03 17:15:58 +02:00
<div class="row">
{% include 'logged/caisse-main.html.twig' %}
</div>
2019-06-12 14:13:36 +02:00
<div id="categories" class="tab-pane fade">
<h2>Catégories</h2>
</div>
<div id="products" class="tab-pane fade">
<h2>Produits</h2>
</div>
<div id="history" class="tab-pane fade">
<h2>Historique</h2>
</div>
2019-07-03 17:15:58 +02:00
2018-07-19 18:33:41 +02:00
{#</div>#}
{#</div>#}
2018-06-27 10:48:02 +02:00
2019-06-12 14:13:36 +02:00
{% endblock %}