<section class="{{cssClass}}" autocomplete="off">

  {{> systems/fvtt-mournblade/templates/partial-item-header.hbs this}}

  {{> systems/fvtt-mournblade/templates/partial-item-nav.hbs this}}

  {{> systems/fvtt-mournblade/templates/partial-item-description.hbs this}}

  <div class="tab details" data-group="primary" data-tab="details">
    <ul class="item-list alternate-list">
      <li class="flexrow item">
        <label class="generic-label item-field-label-long">{{localize "MNBL.weapontype"}} : </label>
        <select class="status-small-label color-class-common item-field-label-long1" type="text" name="system.typearme" value="{{system.typearme}}" data-dtype="string" >
          {{selectOptions config.typeArmeOptions selected=system.typearme}}
        </select>
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long2">{{localize "MNBL.weaponbonusattack"}} : </label>
        <input type="text" class="numeric-input item-field-label-short" name="system.bonusmaniementoff" value="{{system.bonusmaniementoff}}" data-dtype="Number" />
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long2">{{localize "MNBL.isdefense"}} ? </label>
        <input type="checkbox" name="system.isdefense" {{checked system.isdefense}}/>
      </li>
      {{#if system.isdefense}}
      <li class="flexrow item">
        <label class="generic-label item-field-label-long2">{{localize "MNBL.weaponbonusdefense"}} : </label>
        <input type="text" class="numeric-input item-field-label-short" name="system.bonusmaniementdef" value="{{system.bonusmaniementdef}}" data-dtype="Number" />
      </li>
      {{/if}}
      <li class="flexrow item">
        <label class="generic-label item-field-label-long2">{{localize "MNBL.damage"}} : </label>
        <input type="text" class="numeric-input item-field-label-short" name="system.degats" value="{{system.degats}}" data-dtype="String" />
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long2">{{localize "MNBL.nonlethaldamage"}} ? </label>
        <input type="checkbox" name="system.nonletaux" {{checked system.nonletaux}}/>
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long2">{{localize "MNBL.equipped"}} ? </label>
        <input type="checkbox" name="system.equipped" {{checked system.equipped}}/>
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long2">{{localize "MNBL.twohands"}} ? </label>
        <input type="checkbox" name="system.deuxmains" {{checked system.deuxmains}}/>
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long2">{{localize "MNBL.ignorearmor"}} ? </label>
        <input type="checkbox" name="system.ignorearmure" {{checked system.ignorearmure}}/>
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long2">{{localize "MNBL.creatureresourcecost"}} </label>
        <input type="text" class="padd-right numeric-input item-field-label-short" name="system.nbressources" value="{{system.nbressources}}" data-dtype="Number" />
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long">{{localize "MNBL.shortrange"}} </label>
        <input type="text" class="padd-right numeric-input item-field-label-short" name="system.courte" value="{{system.courte}}" data-dtype="Number" />
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long">{{localize "MNBL.mediumrange"}} </label>
        <input type="text" class="padd-right numeric-input item-field-label-short" name="system.moyenne" value="{{system.moyenne}}" data-dtype="Number" />
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long">{{localize "MNBL.longrange"}} </label>
        <input type="text" class="padd-right numeric-input item-field-label-short" name="system.longue" value="{{system.longue}}" data-dtype="Number" />
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long">{{localize "MNBL.reloadduration"}}  </label>
        <input type="text" class="padd-right numeric-input item-field-label-short" name="system.tr" value="{{system.tr}}" data-dtype="Number" />
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long">{{localize "MNBL.rarity"}}  </label>
        <input type="text" class="padd-right numeric-input item-field-label-short" name="system.rarete" value="{{system.rarete}}" data-dtype="Number" />
      </li>
      <li class="flexrow item">
        <label class="generic-label item-field-label-long">{{localize "MNBL.price"}}  </label>
        <input type="text" class="padd-right numeric-input item-field-label-short" name="system.prix" value="{{system.prix}}" data-dtype="Number" />
      </li>
    </ul>

    {{!-- Enchantement de la Loi --}}
    {{> systems/fvtt-mournblade/templates/partial-item-enchantement.hbs this}}
  </div>

</section>
