<div class="flexrow random-field" data-path="{{path}}">
  <label for="{{path}}">{{label}}:</label>
  {{#if (eq type 'entier')}}
  <input class="current-value" name="current.{{path}}" value="{{value}}" placeholder="{{label}}" type="number" data-dtype="Number" min="{{min}}" max="{{max}}"/>
  {{else if (eq type 'heure')}}
  <select class="current-value" name="current.{{path}}" value="{{value}}" type="text" data-dtype="String">
    {{#select value}}
    {{> "systems/foundryvtt-reve-de-dragon/templates/enum-heures.html"}}
    {{/select}}
  </select>
  {{else}}
  <input class="current-value" name="current.{{path}}" value="{{value}}" placeholder="{{label}}" type="text" data-dtype="String"/>
  {{/if}}
  <div class="item-controls">
    <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>
    <input class="check-for-random" type="checkbox" data-tooltip="Sélectionné pour génération automatique" {{#if checked}}checked{{/if}}/>
  </div>
</div>