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

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

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

  {{> systems/fvtt-hawkmoon-cyd/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"
            >Type d'arme :
          </label>
          <select
            class="item-field-label-long1"
            type="text"
            name="system.typearme"
            value="{{system.typearme}}"
            data-dtype="string"
          >
            {{selectOptions @root.config.optionsTypeArme selected=system.typearme
            valueAttr="key" labelAttr="label"}}
          </select>
        </li>
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2"
            >Arme naturelle ?
          </label>
          <input
            type="checkbox"
            name="system.armenaturelle"
            {{checked
            system.armenaturelle}}
          />
        </li>
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2"
            >Arme de fortune ?
          </label>
          <input
            type="checkbox"
            name="system.armefortune"
            {{checked
            system.armefortune}}
          />
        </li>
        <li class="flexrow item">
          <label class="generic-label item-field-label-long"
            >Bonus offensif :
          </label>
          <input
            type="text"
            class="padd-right 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-long"
            >Seuil de Défense :
          </label>
          <input
            type="text"
            class="padd-right numeric-input item-field-label-short"
            name="system.seuildefense"
            value="{{system.seuildefense}}"
            data-dtype="Number"
          />
        </li>
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2"
            >1 niveau de Combativité au maximum ?
          </label>
          <input
            type="checkbox"
            name="system.onlevelonly"
            {{checked
            system.onlevelonly}}
          />
        </li>
        {{#if system.onlevelonly}} {{else}}
        <li class="flexrow item">
          <label class="generic-label item-field-label-long">Dégâts : </label>
          <input
            type="text"
            class="padd-right numeric-input item-field-label-short"
            name="system.degats"
            value="{{system.degats}}"
            data-dtype="String"
          />
        </li>
        {{/if}}
        <li class="flexrow item">
          <label class="generic-label item-field-label-long"
            >A deux mains ?
          </label>
          <input
            type="checkbox"
            name="system.deuxmains"
            {{checked
            system.deuxmains}}
          />
        </li>
        <li class="flexrow item">
          <label class="generic-label item-field-label-long"
            >Perce Armure ?
          </label>
          <input
            type="checkbox"
            name="system.percearmure"
            {{checked
            system.percearmure}}
          />
        </li>
        {{#if system.percearmure}}
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2"
            >Valeur de Perce Armure :
          </label>
          <input
            type="text"
            class="padd-right numeric-input item-field-label-short"
            name="system.percearmurevalue"
            value="{{system.percearmurevalue}}"
            data-dtype="Number"
          />
        </li>
        {{/if}}
        <li class="flexrow item">
          <label class="generic-label item-field-label-long"
            >Portée courte
          </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"
            >Portée moyenne
          </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"
            >Portée longue
          </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-long2"
            >Temps de rechargement
          </label>
          <input
            type="text"
            class="padd-right numeric-input item-field-label-short"
            name="system.tr"
            value="{{system.tr}}"
            data-dtype="Number"
          />
        </li>

        {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-prix.hbs}}
      </ul>
    </div>
  </section>
</form>
