<div class="roll-dialog-content">
  {{#if isTest}}
  <div class="form-group">
    <label>{{ localize "VERMINE.reliability_severity" }}</label>
    <div class="flexrow flex-wrap reliability-severities">
      {{#each severities}}
      <label class="reliability-option">
        <input type="radio" name="severity" value="{{this.key}}" {{#if this.selected}}checked{{/if}}>
        <span>{{this.label}}</span>
      </label>
      {{/each}}
    </div>
  </div>
  {{#if hasEtanche}}
  <div class="form-group">
    <label class="flexrow reliability-option">
      <input type="checkbox" id="reliability-immersion" name="immersion">
      <span>{{ localize "VERMINE.reliability_immersion" }}</span>
    </label>
  </div>
  {{/if}}
  {{else}}
  <div class="form-group">
    <label>{{ localize "VERMINE.reliability_repair_mode" }}</label>
    <div class="flexrow flex-wrap reliability-modes">
      <label class="reliability-option">
        <input type="radio" name="repairMode" value="classique" checked>
        <span>{{ localize "VERMINE.reliability_repair_classic" }}</span>
      </label>
      <label class="reliability-option">
        <input type="radio" name="repairMode" value="fortune">
        <span>{{ localize "VERMINE.reliability_repair_fortune" }}</span>
      </label>
      {{#if hasBrokenCoque}}
      <label class="reliability-option">
        <input type="radio" name="repairMode" value="coque">
        <span>{{ localize "VERMINE.reliability_repair_coque" max=coqueMax }}</span>
      </label>
      {{/if}}
    </div>
  </div>
  <div class="form-group">
    <label for="reliability-skill">{{ localize "VERMINE.reliability_skill" }}</label>
    <select id="reliability-skill" name="skill">
      {{#each skills}}
      <option value="{{this.key}}" {{#if this.selected}}selected{{/if}}>{{this.label}}</option>
      {{/each}}
    </select>
  </div>
  <p class="reliability-hint">{{ localize "VERMINE.reliability_fortune_hint" }}</p>
  {{#unless hasActor}}
  <p class="reliability-hint">{{ localize "VERMINE.reliability_need_actor" }}</p>
  {{/unless}}
  {{/if}}

  <footer class="sheet-footer flexrow">
    <button type="button" data-action="run">{{ localize "VERMINE.reliability_run" }}</button>
    <button type="button" data-action="cancel">{{ localize "VERMINE.close" }}</button>
  </footer>
</div>
