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

    {{#if (eq rollType "resource")}}
    <legend>{{localize "CTHULHUETERNAL.Label.resourceRating"}}</legend>
    <div class="dialog-skill">{{rollItem.name}} : <span class="resource-score">{{initialScore}} ({{mul initialScore 5}}%)</span></div>  
    <div class="dialog-skill">{{localize "CTHULHUETERNAL.Label.Hand"}} : {{rollItem.hand}} <input type="checkbox" data-action="selectHand" {{checked rollItem.enableHand}}></div>  
    <div class="dialog-skill">{{localize "CTHULHUETERNAL.Label.Stowed"}} : {{rollItem.stowed}} <input type="checkbox" data-action="selectStowed" {{checked rollItem.enableStowed}}></div>  
    <div class="dialog-skill">{{localize "CTHULHUETERNAL.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 "CTHULHUETERNAL.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 "CTHULHUETERNAL.Label.multiplier"}}</legend>
    <select name="multiplier" class="roll-skill-modifier roll-skill-multiplier">
      {{selectOptions choiceMultiplier selected=multiplier}}
    </select>
  </fieldSet>
  {{/if}}

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