<div class="oh-roll-dialog oh-weapon-dialog">

  {{!-- Weapon header --}}
  <div class="weapon-header">
    <img src="{{weaponImg}}" class="weapon-img-sm" alt="{{weaponName}}" />
    <div class="weapon-header-info">
      <span class="weapon-name-lg">{{weaponName}}</span>
      <div class="weapon-badges">
        <span class="damage-formula-badge">{{damageLabel}} → {{baseDamageDice}}d6 base</span>
        <span class="roll-color-badge color-badge-{{damageColorType}}">{{damageColorLabel}} {{damageThreshold}}+</span>
        {{#if apValue}}<span class="ap-badge">AP{{apValue}}</span>{{/if}}
        {{#if autoDamageBonus}}<span class="auto-bonus-badge">+{{autoDamageBonus}} auto</span>{{/if}}
      </div>
    </div>
  </div>

  {{!-- Damage options --}}
  <fieldset class="attack-options-block">
    <legend>{{localize "OATHHAMMER.Dialog.Damage"}}</legend>

    <div class="roll-option-row">
      <label>{{localize "OATHHAMMER.Dialog.SV"}}</label>
      <select name="sv">
        {{#each svOptions}}<option value="{{value}}"{{#if selected}} selected{{/if}}>{{label}}</option>{{/each}}
      </select>
      <span class="roll-option-hint">{{localize "OATHHAMMER.Dialog.SVHint"}}</span>
    </div>

    <div class="roll-option-row">
      <label>{{localize "OATHHAMMER.Dialog.DamageModifier"}}</label>
      <select name="damageBonus">
        {{#each damageBonusOptions}}<option value="{{value}}"{{#if selected}} selected{{/if}}>{{label}}</option>{{/each}}
      </select>
      <span class="roll-option-hint">{{localize "OATHHAMMER.Dialog.DamageModifierHint"}}</span>
    </div>

  </fieldset>

  {{!-- Visibility --}}
  <fieldset class="roll-visibility-block">
    <legend>{{localize "OATHHAMMER.Dialog.Visibility"}}</legend>
    <select name="visibility">
      {{selectOptions rollModes selected=visibility localize=true}}
    </select>
  </fieldset>

</div>
