index.html
9.88 KB
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
216
<!DOCTYPE html>
<html lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0" />
<title>10⁵</title>
<!-- CSS -->
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection" />
</head>
<body>
<!-- Réutilisable -->
<div id="modalErreur" class="modal">
<div class="modal-content">
<h4>{{ erreurTitre }}</h4>
<p v-if="modalGeneriqueContenu">{{ erreurMessage }}</p>
</div>
<div class="modal-footer">
<a class="modal-action modal-close waves-effect btn-flat">Ça marche</a>
</div>
</div>
<ul id="menuUtilisateur" class="dropdown-content">
<li><a>Se déconnecter</a></li>
<li><a>Changer de mot de passe</a></li>
<li><a>Changer de carte</a></li>
<li class="prezSeul"><a>Gestion des utilisateurs</a></li>
</ul>
<div id="passerCarte" class="modal">
<div class="modal-content">
<h4>Passez la carte du client</h4>
<p>Veuillez passer la carte du client concerné pour finaliser l'action suivante : <strong>recharger 10 €</strong>.</p>
</div>
<div class="modal-footer">
<a class="modal-action modal-close waves-effect waves-red btn-flat">Annuler</a>
</div>
</div>
<div id="soldeInsuffisant" class="modal">
<div class="modal-content">
<h4>Solde insuffisant</h4>
<p>
Le solde de la carte <strong>QUAELUY1RO</strong> n'est pas suffisant pour effectuer un paiement de 3,50 €.<br/> Solde actuel : 2,70 €<br/> Manquant : 0,80 €<br/>
</p>
</div>
<div class="modal-footer">
<a href="#rechargement" class="modal-action modal-close waves-effect waves-green btn-flat">Recharger</a>
<a class="modal-action modal-close waves-effect waves-red btn-flat">Annuler</a>
</div>
</div>
<!-- Page -->
<nav class="red" role="navigation">
<div class="nav-wrapper container">
<a class="brand-logo" v-if="page == 'connexion'">10⁵</a>
<div class="left" v-else>
<a class="breadcrumb">10⁵</a>
<a class="breadcrumb" v-if="page == 'operations'">Opérations</a>
</div>
<ul class="right hide-on-med-and-down">
<li v-if="connecte">
<a class="dropdown-button" data-activates="menuUtilisateur">
<i class="material-icons">perm_identity</i> {{ login }} (<i class="material-icons">timer</i> {{ timer }})
</a>
</li>
</ul>
<ul class="side-nav">
<li><a>TODO</a></li>
</ul>
</div>
<div class="col s12 red" v-show="page == 'operations'">
<ul class="tabs red">
<li class="tab col s3"><a href="#creation">Création</a></li>
<li class="tab col s3"><a href="#rechargement">Rechargement</a></li>
<li class="tab col s3"><a class="active" href="#paiement">Paiement</a></li>
<li class="tab col s3"><a href="#vidange">Vidange</a></li>
</ul>
</div>
</nav>
<div class="section no-pad-bot" id="main">
<br><br><br>
<div class="container" v-show="page == 'connexion'">
<h4>Se connecter</h4>
<h5>Avec votre identifiant et votre mot de passe</h5>
<div class="row">
<form class="col s12">
<div class="row">
<div class="input-field col s12">
<input type="text" name="login" v-model="login">
<label for="login">Identifiant</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<input type="password" name="mdp" v-model="mdp">
<label for="mdp">Mot de passe</label>
</div>
</div>
<div class="row">
<a class="btn-large waves-effect waves-light disabled" @click="connecter" :class="{'disabled': !peutConnecter}">Se connecter</a>
</div>
</form>
</div>
<div v-if="PEUT_NFC">
<h5>Avec votre carte étudiant</h5>
<p>Passez-la simplement devant le lecteur</p>
</div>
</div>
<div class="container" v-show="page == 'operations'">
<div class="row center">
<div id="creation">
<h5>Créer un nouveau client</h5>
<div class="row">
<form class="col s12">
<div class="input-field col s12" v-if="!PEUT_NFC">
<input type="text" name="idCarte" maxlength="8" v-model="idCarte">
<label for="idCarte">Identifiant de la carte</label>
</div>
<div class="input-field col s12">
<input type="number" name="solde" v-model="solde">
<label for="solde">Solde initial (€)</label>
</div>
<div class="row center">
<a class="btn-large waves-effect waves-light" @click="creer" :class="{'disabled': !peutCreer}">Créer</a>
</div>
</form>
</div>
</div>
<div id="rechargement">
<h5>Recharger un client</h5>
<div class="row">
<form class="col s12">
<div class="input-field col s12" v-if="!PEUT_NFC">
<input type="text" name="idCarte" maxlength="8" v-model="idCarte">
<label for="idCarte">Identifiant de la carte</label>
</div>
<div class="input-field col s12">
<input type="number" name="credit">
<label for="credit">Crédit (€)</label>
</div>
<div class="row center">
<a class="btn-large waves-effect waves-light btn modal-trigger">Recharger</a>
</div>
</form>
</div>
</div>
<div id="paiement">
<h5>Vendre à un client</h5>
<div class="row">
<form class="col s12">
<div class="input-field col s12" v-if="!PEUT_NFC">
<input type="text" name="idCarte" maxlength="8" v-model="idCarte">
<label for="idCarte">Identifiant de la carte</label>
</div>
<br/>
<h6>En spécifiant le nombre de consommations</h6>
<div id="grilleBieres">
<div class="row">
<div class="col s4"><a class="waves-effect waves-light btn">1</a></div>
<div class="col s4"><a class="waves-effect waves-light btn">2</a></div>
<div class="col s4"><a class="waves-effect waves-light btn">3</a></div>
</div>
<div class="row">
<div class="col s4"><a class="waves-effect waves-light btn">4</a></div>
<div class="col s4"><a class="waves-effect waves-light btn">5</a></div>
<div class="col s4"><a class="waves-effect waves-light btn">6</a></div>
</div>
</div>
<br/>
<h6>En spécifiant un montant</h6>
<div class="row">
<div class="input-field col s12">
<input type="number" name="prix">
<label for="prix">Prix (€)</label>
</div>
</div>
<div class="row center">
<a class="btn-large waves-effect waves-light">Payer</a>
</div>
</form>
</div>
</div>
<div id="vidange">
<h5>Vider le contenu de la carte d'un client</h5>
<div class="input-field col s12" v-if="!PEUT_NFC">
<input type="text" name="idCarte" maxlength="8" v-model="idCarte">
<label for="idCarte">Identifiant de la carte</label>
</div>
<div class="row center">
<a class="btn-large waves-effect waves-light">Vider</a>
</div>
</div>
</div>
</div>
</div>
<footer class="page-footer red">
<div class="footer-copyright">
<div class="container">
10p5 v0.0.0 - © Copyright 2016, <a href="http://clubinfo.plil.net">Le Club Info Polytech Lille</a>
</div>
</div>
</footer>
<!-- Scripts-->
<script src="lib/jquery/dist/jquery.min.js"></script>
<script src="lib/Materialize/dist/js/materialize.min.js"></script>
<script src="lib/vue/dist/vue.min.js"></script>
<script src="js/init.js"></script>
</body>
</html>