<div class="les-oublies-roll-dialog">
  <section class="sheet-card">
    <h2>Récolte de fils</h2>
    <div class="field-row">
      <label>Type de fil</label>
      <select name="threadType">
        <option value="songes" {{#if (eq values.threadType "songes")}}selected{{/if}}>Songes</option>
        <option value="cauchemar" {{#if (eq values.threadType "cauchemar")}}selected{{/if}}>Cauchemar</option>
      </select>
    </div>
    <div class="field-row">
      <label>Nombre de fils</label>
      <input name="threadCount" type="number" min="1" value="{{values.threadCount}}" />
    </div>
    <div class="field-row">
      <label>Réserve de destination</label>
      <select name="destinationSource">
        {{#each threadReserves.options as |option|}}
          <option value="{{option.value}}" {{#if (eq option.value @root.values.destinationSource)}}selected{{/if}}>{{option.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>
    <div class="field-row">
      <label>Dormeur</label>
      <input name="sleeperLabel" type="text" value="{{values.sleeperLabel}}" />
    </div>
    <div class="field-row">
      <label>Notes</label>
      <input name="notes" type="text" value="{{values.notes}}" />
    </div>
    <p class="help-text">Difficulté : -3 par fil supplémentaire. Dégâts subis : 1 par fil souhaité. En cas d'échec, plus aucune récolte possible sur ce dormeur cette nuit.</p>
    <p class="help-text">{{localize "LESOUBLIES.rolls.resourceState"}} : Songes {{resources.songesPoints}} / {{resources.songesValue}} · Cauchemar {{resources.cauchemarPoints}} / {{resources.cauchemarValue}}</p>
    <p class="help-text">Réserve perso : Songes {{threadReserves.actor.songesThreads}} · Cauchemar {{threadReserves.actor.cauchemarThreads}} · Globes vides {{threadReserves.actor.emptyGlobes}}</p>
    {{#if threadReserves.hasCompany}}
      <p class="help-text">{{threadReserves.company.label}} : Songes {{threadReserves.company.songesThreads}} · Cauchemar {{threadReserves.company.cauchemarThreads}} · Globes vides {{threadReserves.company.emptyGlobes}}</p>
    {{/if}}
  </section>
</div>
