Amélioration champs input
- ajout de min et max quand utile - ordre et regroupement des attributs: - préférence pour name en premier - regroupement de class/type/data-dtype - regroupement value/min/max
This commit is contained in:
@@ -40,10 +40,10 @@
|
||||
{{else}}Quantité{{/if}}
|
||||
</label>
|
||||
<div class="flexrow">
|
||||
<input name="nombreLots" class="nombreLots flex-shrink number-x2" type="number" min="1"
|
||||
{{#unless quantiteIllimite}} max="{{nbLots}}" {{/unless}}
|
||||
value="{{choix.nombreLots}}"
|
||||
data-dtype="Number" />
|
||||
<input name="nombreLots" class="nombreLots flex-shrink number-x2"
|
||||
type="number" data-dtype="Number"
|
||||
value="{{choix.nombreLots}}" min="1" {{#unless quantiteIllimite}} max="{{nbLots}}" {{/unless}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user