<div class="les-oublies-roll-dialog">
  <div class="sheet-card">
    <div class="field-row">
      <label>{{localize "LESOUBLIES.rolls.label"}}</label>
      <input name="label" type="text" value="{{values.label}}" {{#if lockLabel}}disabled{{/if}} />
    </div>
    <div class="field-row">
      <label>{{localize "LESOUBLIES.rolls.score"}}</label>
      <input name="score" type="number" value="{{values.score}}" readonly />
    </div>
    <div class="field-row">
      <label>{{localize "LESOUBLIES.rolls.difficulty"}}</label>
      <select name="difficulty">
        {{#each difficultyOptions as |entry|}}
          <option value="{{entry.value}}" {{#if (eq entry.value @root.values.difficulty)}}selected{{/if}}>{{entry.label}}</option>
        {{/each}}
      </select>
    </div>
    <div class="field-row">
      <label>{{localize "LESOUBLIES.rolls.rollMode"}}</label>
      <select name="rollMode">
        {{#each rollModes as |mode|}}
          <option value="{{mode.value}}" {{#if (eq mode.value @root.values.rollMode)}}selected{{/if}}>{{mode.label}}</option>
        {{/each}}
      </select>
    </div>
    <div class="field-row">
      <label>{{localize "LESOUBLIES.rolls.extraDie"}}</label>
      <select name="extraDie">
        {{#each extraDieModes as |mode|}}
          <option value="{{mode.value}}" {{#if (eq mode.value @root.values.extraDie)}}selected{{/if}}>{{mode.label}}</option>
        {{/each}}
      </select>
    </div>
    <p class="help-text">{{localize "LESOUBLIES.rolls.resourceState"}} : Songes {{resources.songesPoints}} / {{resources.songesValue}} · Cauchemar {{resources.cauchemarPoints}} / {{resources.cauchemarValue}}</p>
    {{#if isInitiative}}
      <p class="help-text">{{localize "LESOUBLIES.rolls.initiativeHint"}}</p>
    {{else}}
      <p class="help-text">{{localize "LESOUBLIES.rolls.testHint"}}</p>
    {{/if}}
  </div>
</div>
