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

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

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

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

  <div class="sheet-body" data-group="primary" data-tab="details">
    <div class="item-details">
      <div class="detail-section">
        <h3>Caractéristiques</h3>
        <div class="form-group horizontal">
          <label>Type d'arme :</label>
          <select name="system.typearme" value="{{system.typearme}}" data-dtype="string">
            {{selectOptions config.typeArmeOptions selected=system.typearme}}
          </select>
        </div>
        <div class="form-group horizontal">
          <label>Dégâts :</label>
          <input type="text" name="system.degats" value="{{system.degats}}" placeholder="1d6" />
        </div>
        <div class="form-group horizontal">
          <label>Bonus maniement (Off.) :</label>
          <input type="number" name="system.bonusmaniementoff" value="{{system.bonusmaniementoff}}" />
        </div>
        <div class="form-group horizontal">
          <label>Arme de défense :</label>
          <input type="checkbox" name="system.isdefense" {{checked system.isdefense}} />
        </div>
        {{#if system.isdefense}}
        <div class="form-group horizontal">
          <label>Bonus maniement (Déf.) :</label>
          <input type="number" name="system.bonusmaniementdef" value="{{system.bonusmaniementdef}}" />
        </div>
        {{/if}}
      </div>

      <div class="detail-section">
        <h3>Propriétés</h3>
        <div class="grid grid-2col">
          <div class="form-group">
            <label>
              <input type="checkbox" name="system.nobonusdegats" {{checked system.nobonusdegats}} />
              Pas de bonus de dégâts
            </label>
          </div>
          <div class="form-group">
            <label>
              <input type="checkbox" name="system.nonletaux" {{checked system.nonletaux}} />
              Dégâts non-létaux
            </label>
          </div>
          <div class="form-group">
            <label>
              <input type="checkbox" name="system.deuxmains" {{checked system.deuxmains}} />
              À deux mains
            </label>
          </div>
          <div class="form-group">
            <label>
              <input type="checkbox" name="system.equipped" {{checked system.equipped}} />
              Équipée
            </label>
          </div>
        </div>
      </div>

      <div class="detail-section">
        <h3>Portées</h3>
        <div class="grid grid-4col">
          <div class="form-group">
            <label>Courte</label>
            <input type="number" name="system.courte" value="{{system.courte}}" />
          </div>
          <div class="form-group">
            <label>Moyenne</label>
            <input type="number" name="system.moyenne" value="{{system.moyenne}}" />
          </div>
          <div class="form-group">
            <label>Longue</label>
            <input type="number" name="system.longue" value="{{system.longue}}" />
          </div>
          <div class="form-group">
            <label>TR</label>
            <input type="number" name="system.tr" value="{{system.tr}}" />
          </div>
        </div>
      </div>

      <div class="detail-section">
        <h3>Valeur</h3>
        <div class="grid grid-2col">
          <div class="form-group horizontal">
            <label>Rareté :</label>
            <input type="number" name="system.rarete" value="{{system.rarete}}" />
          </div>
          <div class="form-group horizontal">
            <label>Prix :</label>
            <input type="number" name="system.prix" value="{{system.prix}}" />
          </div>
        </div>
      </div>
    </div>
  </div>

</section>
