<div class="fvtt-cthulhu-eternal-roll-dialog">
  <fieldSet>
    {{#if (eq rollType "skill")}}
    <legend>{{localize "FTLNOMAD.Label.skill"}}</legend>
    {{/if}}
    {{#if (eq rollType "char")}}
    <legend>{{localize "FTLNOMAD.Label.characteristic"}}</legend>
    {{/if}}

    {{#if (eq rollType "resource")}}
    <legend>{{localize "FTLNOMAD.Label.resourceRating"}}</legend>
    <div class="dialog-skill">{{rollItem.name}} : <span class="resource-score">{{initialScore}} ({{mul initialScore 5}}%)</span></div>  
    <div class="dialog-skill">{{localize "FTLNOMAD.Label.Hand"}} : {{rollItem.hand}} <input type="checkbox" data-action="selectHand" {{checked rollItem.enableHand}}></div>  
    <div class="dialog-skill">{{localize "FTLNOMAD.Label.Stowed"}} : {{rollItem.stowed}} <input type="checkbox" data-action="selectStowed" {{checked rollItem.enableStowed}}></div>  
    <div class="dialog-skill">{{localize "FTLNOMAD.Label.Storage"}} : {{rollItem.storage}} <input type="checkbox" data-action="selectStorage" {{checked rollItem.enableStorage}}></div>  
    {{else}}
    <div class="dialog-skill">{{rollItem.name}} : {{initialScore}}%</div>
    {{/if}}

    {{#if weapon}}
    <div class="dialog-skill">Weapon : {{weapon.name}}</div>
    {{/if}}

    {{#if isZeroWP}}
    <div class="dialog-skill red-warning">Zero WP : Automatic failure (ie 0%)</div>
    {{else}}
    {{#if isLowWP}}
    <div class="dialog-skill orange-warning">Low WP : -20%</div>
    {{/if}}
    {{/if}}

    {{#if isExhausted}}
    <div class="dialog-skill orange-warning">Exhausted : -20%</div>
    {{/if}}

  </fieldSet>

  {{#if hasModifier}}
  <fieldSet class="dialog-modifier">
    <legend>{{localize "FTLNOMAD.Label.modifier"}}</legend>
    <select name="modifier" class="roll-skill-modifier">
      {{selectOptions choiceModifier selected=modifier}}
    </select>
  </fieldSet>
  {{/if}}

  {{#if hasMultiplier}}
  <fieldSet class="dialog-modifier">
    <legend>{{localize "FTLNOMAD.Label.multiplier"}}</legend>
    <select name="multiplier" class="roll-skill-modifier roll-skill-multiplier">
      {{selectOptions choiceMultiplier selected=multiplier}}
    </select>
  </fieldSet>
  {{/if}}

  <fieldSet>
    <legend>{{localize "FTLNOMAD.Label.rollView"}}</legend>
    <select name="visibility">
      {{selectOptions rollModes selected=visibility}}
    </select>
  </fieldSet>
</div>