<div class="les-oublies-roll-dialog">
  <section class="sheet-card">
    <div class="field-row">
      <label>Source</label>
      <input type="text" value="{{#if weapon}}{{weapon.name}}{{else}}Dégâts{{/if}}" disabled />
    </div>
    <div class="field-row">
      <label>Cible</label>
      <input name="targetLabel" type="text" value="{{values.targetLabel}}" />
    </div>
    <div class="field-row">
      <label>Dégâts de base</label>
      <input name="baseDamage" type="number" value="{{values.baseDamage}}" />
    </div>
    <div class="field-row">
      <label>Libellé dégâts</label>
      <input name="baseDamageLabel" type="text" value="{{values.baseDamageLabel}}" />
    </div>
    <div class="field-row">
      <label>Protection</label>
      <input name="targetProtection" type="number" value="{{values.targetProtection}}" />
    </div>
    <div class="field-row">
      <label>Prime</label>
      <select name="primeId">
        {{#each primeOptions as |option|}}
          <option value="{{option.value}}" {{#if (eq option.value @root.values.primeId)}}selected{{/if}}>{{option.label}}</option>
        {{/each}}
      </select>
    </div>
    <div class="field-row">
      <label>Pénalité</label>
      <select name="penaltyId">
        {{#each penaltyOptions as |option|}}
          <option value="{{option.value}}" {{#if (eq option.value @root.values.penaltyId)}}selected{{/if}}>{{option.label}}</option>
        {{/each}}
      </select>
    </div>
    <div class="field-row">
      <label>Appliquer à la cible</label>
      <input name="applyToTarget" type="checkbox" {{checked values.applyToTarget}} {{#unless targetActor}}disabled{{/unless}} />
    </div>
    <div class="field-row">
      <label>Notes</label>
      <input name="notes" type="text" value="{{values.notes}}" />
    </div>
    <p class="help-text">Les dégâts standards ne se lancent pas aux dés : ils se résolvent à partir de l'arme, de la protection et des modificateurs choisis.</p>
  </section>
</div>
