-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
215 lines (204 loc) · 9.81 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<html ng-app="mozartApp" lang="en">
<head>
<meta charset="utf-8">
<title>mozart by payutc</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="author" content="payutc">
<link href="css/loading.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body ng-controller="MsgCtrl">
<div class="container fill" ng-hide="ready" ng-init="ready=false">
<div id="circleG">
<div id="circleG_1" class="circleG"></div>
<div id="circleG_2" class="circleG"></div>
<div id="circleG_3" class="circleG"></div>
</div>
</div>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="fluid-container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">mozart <small>by</small> <img src="img/payutc_rect_110.png" alt="payutc"></a>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
<form class="navbar-form navbar-right ng-cloak">
<button type="button" id="btnlogout" class="btn btn-danger" ng-click="onLogoutClick()">Déconnexion</button>
</form>
<ul class="nav navbar-nav navbar-right ng-cloak" ng-controller="UserCtrl">
<li id="time"></li>
<li><a href="#">{{ currentTime }}</a></li>
<li><a href="#">{{ username }}</a></li>
<script type="text/ng-template" id="modalNewApp.html">
<div class="modal-header">
<h3>Enregistrement de l'application</h3>
</div>
<div class="modal-body">
<p>Cette application n'est pas enregistrée auprès de payutc.<br/>Remplissez ce formulaire puis autorisez l'application dans scoobydoo.</p>
<form novalidate class="form-horizontal" role="form">
<div class="form-group">
<label class="col-sm-2 control-label">Titre</label>
<div class="col-sm-10">
<input type="text" ng-model="app.title" class="form-control" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Description</label>
<div class="col-sm-10">
<input type="text" ng-model="app.desc" class="form-control" />
</div>
</div>
<button class="btn btn-primary" ng-click="declare(app)">Enregistrer</button>
</form>
</div>
</script>
</ul>
</nav>
</div>
</div>
</div>
<div class="fluid-container fill ng-cloak" ng-controller="ArticleCtrl" ng-hide="!ready">
<div class="row fill">
<div class="col-md-4 fill">
<table class="table table-striped table-panier">
<thead>
<tr>
<th>Qté</th>
<th>Nom</th>
<th>Prix</th>
</tr>
</thead>
<tbody id="lignes">
<tr ng-repeat="cartItem in cart.items">
<td>{{ cartItem.quantity }}</td>
<td>{{ cartItem.name }}</td>
<td>{{ formatPrix(cartItem.price * cartItem.quantity) }}</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-paniersum">
<tbody>
<tr>
<td>
<ng-pluralize count="cart.getTotalCount()"
when="{'0': 'Aucun article',
'one': '1 article',
'other': '{} articles'}">
</ng-pluralize>
</td>
<td><b>{{ formatPrix(cart.getTotalPrice()) }}</b></td>
</tr>
</tbody>
</table>
<button class="btn btn-primary btn-large cancel-btn" ng-click="resetCart()" id="effacertout">Effacer toutes les lignes</button>
<button class="btn btn-primary btn-large cancel-btn" id="annultransac" ng-click ="cancelLastOperation()">Annuler la dernière opération</button>
<div ng-controller="StateCtrl" id="status" class="well" style="background-color: {{ state_bgcolor }};
border: 1px solid {{ state_bordercolor }};">
{{state}}
<script type="text/ng-template" id="modalUser.html">
<div class="modal-header">
<h3>Compte de {{ user.firstname }} {{ user.lastname }}</h3>
<p>Solde payutc : {{ formatPrix(user.solde) }}</p>
</div>
<div class="modal-body">
<table class="table table-striped" ng-if="user.last_purchases">
<thead>
<th>Quantité</th><th>Article</th><th>Prix</th><th></th>
</thead>
<tbody>
<tr ng-repeat="last in user.last_purchases">
<td>{{ last.pur_qte }}</td>
<td>{{ store.products[last.obj_id].name }}</td>
<td>{{ formatPrix(last.pur_price) }}</td>
<td><button class="btn btn-danger" ng-click="cancelTransaction(last.pur_id)">Annuler</button></td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="modalInstance.close()">Fermer</button>
</div>
</script>
</div>
</div>
<div class="col-md-2 fill" id="tableau-categories">
<button class="btn btn-default" ng-repeat="cat in store.first_cat" ng-click="store.catClick(cat.id)" ng-class="{'active': cat.id == store.cat_selected}" ng-attr-style="height: {{ categoryCount > 0 ? 100/categoryCount : 100 }}%">{{ cat.name }}</button>
</div>
<div class="col-md-6 fill" id="tableau-articles">
<button class="btn btn-default" ng-repeat="art in store.products" ng-click="artClick(art.id)" ng-hide="art.super_parent != store.cat_selected" ng-attr-style="{{ art.image && 'background-image: url('+server+'POSS3/getImage64?img_id='+art.image+'&encode=0&outw=300&outh=300);' }}">{{ !art.image && art.name || "" }}</button>
</div>
</div><!--/row-->
</div> <!-- /container -->
<div class="modal hide fade" id="BuyerInfo">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3>Infos carte</h3>
</div>
<div class="modal-body">
<p id="infodata"></p>
</div>
<div class="modal-footer">
<a href="#" class="btn btn-primary btn-large" data-dismiss="modal">Fermer</a>
</div>
</div>
<div ng-controller="FunCtrl">
<script type="text/ng-template" id="modalFunCtrl.html">
<div class="modal-header">
<h3>Choix de la fundation</h3>
</div>
<div class="modal-body">
<p>Tu as le droit de vendre pour plusieurs fundations.<br/>Merci d'en choisir une pour cette session :</p>
<p>
<span ng-repeat="fun in fundations">
<button class="btn btn-primary" ng-click="funChoice(fun.fun_id)">{{ fun.name }}</button>
</span>
</p>
</div>
</script>
</div>
<script type="text/ng-template" id="modalCritError.html">
<div class="modal-header">
<h3>Erreur fatale</h3>
</div>
<div class="modal-body">
<p>L'erreur suivante s'est produite : <pre>{{ critError }}</pre></p>
<p>
Tu peux essayer de recharger la page ou de te connecter à nouveau.<br/>
Si le problème persiste, contacte un responsable ou l'équipe de payutc
</p>
<button class="btn btn-primary" ng-click="reload()">Recharger</button>
<button class="btn btn-danger" ng-click="onLogoutClick()">Déconnexion</button>
</div>
</script>
<script src="js/dependencies/angular.min.js"></script>
<script src="js/dependencies/angular-local-storage.js"></script>
<script src="js/dependencies/ui-bootstrap-tpls-0.10.0.min.js"></script>
<script src="js/app/app.js"></script>
<script src="js/app/config/config.js"></script>
<script src="js/app/services/jcappucino_service.js"></script>
<script src="js/app/controllers/article_controller.js"></script>
<script src="js/app/controllers/state_controller.js"></script>
<script src="js/app/controllers/fundation_controller.js"></script>
<script src="js/app/controllers/user_controller.js"></script>
<script src="js/app/controllers/message_controller.js"></script>
<script src="js/app/services/mrequest.js"></script>
<script src="js/app/services/data_service.js"></script>
<script src="js/app/services/printformatter.js"></script>
<script src="js/app/services/picasso_business_logic/product.js"></script>
<script src="js/app/services/picasso_business_logic/store.js"></script>
<script src="js/app/services/picasso_business_logic/shopping_cart.js"></script>
</body>
</html>