Modèle:FiltreÉlément : Différence entre versions

[version vérifiée][version vérifiée]
Ligne 3 : Ligne 3 :
 
{{Button|text={{{Nom|}}}|type=button|aria-controls={{{id|}}}|aria-haspopup=true|aria-expanded=false|style=padding: 10px 20px; background-color: #fff; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; cursor: pointer; user-select: none; display: inline-block;}}
 
{{Button|text={{{Nom|}}}|type=button|aria-controls={{{id|}}}|aria-haspopup=true|aria-expanded=false|style=padding: 10px 20px; background-color: #fff; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; cursor: pointer; user-select: none; display: inline-block;}}
 
|number=
 
|number=
{{LabelInput|text={{{Nom|}}}|id={{{id|}}}|type=number|min={{{min|0}}}|max={{{max|100}}}|value={{{value|0}}}|style=display: inline-block; vertical-align: middle; margin-right: 10px; width: 40px; height: 20px; border: 1px solid #ccc; border-radius: 3px; appearance: none;}}
+
{{LabelInput|text={{{Nom|}}}|id={{{id|}}}|type=number|min={{{min|0}}}|max={{{max|100}}}|value={{{value|{{{min|0}}}}}}|style=display: inline-block; vertical-align: middle; margin-right: 10px; width: 40px; height: 20px; border: 1px solid #ccc; border-radius: 3px; appearance: none;}}
 
|checkbox=
 
|checkbox=
 
{{LabelInput|text={{{Nom|}}}|id={{{id|}}}|type=checkbox|value={{{value|0}}}|data=filter+{{#explode:{{{id|}}}|-|1|2}}|style=display: inline-block; vertical-align: middle; margin-right: 10px; width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 3px; margin-left: 0;}}
 
{{LabelInput|text={{{Nom|}}}|id={{{id|}}}|type=checkbox|value={{{value|0}}}|data=filter+{{#explode:{{{id|}}}|-|1|2}}|style=display: inline-block; vertical-align: middle; margin-right: 10px; width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 3px; margin-left: 0;}}

Version du 29 août 2023 à 10:04