<div class="flexrow random-field" data-field-name="{{fieldname}}">
  <label for="{{fieldname}}">{{label}}:</label>
  {{#if (eq type 'entier')}}
  <input name="current.{{fieldname}}" class="current-value" type="number" data-dtype="Number" placeholder="{{label}}" value="{{value}}" min="{{min}}" max="{{max}}"/>
  {{else if (eq type 'heure')}}
  <select class="current-value" name="current.{{fieldname}}" value="{{value}}" type="text" data-dtype="String">
    {{#select value}}
    {{> "systems/foundryvtt-reve-de-dragon/templates/enum-heures.hbs"}}
    {{/select}}
  </select>
  {{else}}
  <input name="current.{{fieldname}}" class="current-value" type="text" data-dtype="String" value="{{value}}" placeholder="{{label}}"/>
  {{/if}}
  <div class="item-controls">
    <input class="check-for-random" type="checkbox" data-tooltip="Sélectionné pour génération automatique" {{#if checked}}checked{{/if}}/>
    <a class="random" data-action="random" data-tooltip="Aléatoire"><i class="fa-solid fa-dice-d20"></i></a>
    <a class="reset" data-action="reset" data-tooltip="Reset"><i class="fa-solid fa-eraser"></i></a>
  </div>
</div>