Modèle:FiltreModule : Différence entre versions

[version non vérifiée][version non vérifiée]
Ligne 7 : Ligne 7 :
 
<div data-element="label-input" data-id="{{{Nom|}}}-max" data-type="number" data-min="0" data-max="135" data-value="135" data-style="display: inline-block; vertical-align: middle; margin-right: 10px; width: 40px; height: 20px; border: 1px solid #ccc; border-radius: 3px; appearance: none;">{{ucfirst:{{{Nom|}}}}} max.</div>
 
<div data-element="label-input" data-id="{{{Nom|}}}-max" data-type="number" data-min="0" data-max="135" data-value="135" data-style="display: inline-block; vertical-align: middle; margin-right: 10px; width: 40px; height: 20px; border: 1px solid #ccc; border-radius: 3px; appearance: none;">{{ucfirst:{{{Nom|}}}}} max.</div>
 
</div>
 
</div>
 +
|Checkbox=
 +
<div id="{{{Nom|}}}" class="container tabber-noactive dropdown-menu" style="position: absolute; z-index: 10; top: 100%; left: 0; min-width: max-content; width: 170px; padding: 5px 0; margin: 0; list-style: none; background-color: #fff; border: 1px solid #ccc; border-radius: 5px; flex-direction: column; gap: 5px;">
 +
{{#if:{{{Checkbox1|}}}|
 +
<div data-element="label-input" data-id="{{{Checkbox1}}}" data-type="checkbox" data-style="display: inline-block; vertical-align: middle; margin-right: 10px; width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 3px; margin-left: 0;">{{ucfirst:{{{Checkbox1}}}}}</div>
 +
}}
 +
{{#if:{{{Checkbox2|}}}|
 +
<div data-element="label-input" data-id="{{{Checkbox2}}}" data-type="checkbox" data-style="display: inline-block; vertical-align: middle; margin-right: 10px; width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 3px; margin-left: 0;">{{ucfirst:{{{Checkbox2}}}}}</div>
 +
}}
 
}}
 
}}

Version du 8 mars 2023 à 19:28