Commit 03dafff9b42a30ec3077af59a42e6791f58f32ea
1 parent
80142ed5
Possibilité d'avoir des décimales
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
index.php
... | ... | @@ -173,7 +173,7 @@ |
173 | 173 | </div> |
174 | 174 | <div class="input-field"> |
175 | 175 | <i class="material-icons prefix">trending_flat</i> |
176 | - <input type="number" name="solde" v-model="solde"> | |
176 | + <input type="number" name="solde" v-model="solde" min="0.01" max="999.99" step="0.01"> | |
177 | 177 | <label for="solde">Solde initial (€)</label> |
178 | 178 | </div> |
179 | 179 | <div class="row" v-if="droit >= 3"> |
... | ... | @@ -200,7 +200,7 @@ |
200 | 200 | </div> |
201 | 201 | <div class="input-field"> |
202 | 202 | <i class="material-icons prefix">trending_up</i> |
203 | - <input type="number" name="credit" v-model="credit"> | |
203 | + <input type="number" name="credit" v-model="credit" min="0.01" max="999.99" step="0.01"> | |
204 | 204 | <label for="credit">Crédit (€)</label> |
205 | 205 | </div> |
206 | 206 | <button type="submit" :disabled="!credit || (!PEUT_NFC && !idCarte)">Recharger</button> |
... | ... | @@ -227,7 +227,7 @@ |
227 | 227 | </div> |
228 | 228 | <div class="input-field"> |
229 | 229 | <i class="material-icons prefix">trending_down</i> |
230 | - <input type="number" name="prix" v-model="prix"> | |
230 | + <input type="number" name="prix" v-model="prix" min="0.01" max="999.99" step="0.01"> | |
231 | 231 | <label for="prix">Prix (€)</label> |
232 | 232 | </div> |
233 | 233 | <button type="submit" @click="payer" :disabled="!prix || (!PEUT_NFC && !idCarte)">Payer</button> | ... | ... |