<form class="{{cssClass}}" autocomplete="off">
  <header class="sheet-header">
      <img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
      <div class="header-fields">
          <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
      </div>
  </header>

  {{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}

  {{!-- Sheet Body --}}
  <section class="sheet-body">

    {{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}

    <div class="tab details" data-group="primary" data-tab="details">
      <ul>
          <li class="flexrow"><label class="generic-label">Type</label>
            <select class="competence-base flexrow" type="text" name="system.type" value="{{data.type}}" data-dtype="String">
              {{#select data.type}}
              {{> systems/fvtt-pegasus-rpg/templates/partial-options-equipment-types.html}}
              {{/select}}
            </select> 
          </li>

          <li class="flexrow"><label class="generic-label">Related Statistic</label>
            <select class="competence-base flexrow" type="text" name="system.stataffected" value="{{data.stataffected}}" data-dtype="String">
              {{#select data.stataffected}}
              {{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=true}}
              {{/select}}
            </select> 
          </li>

          <li class="flexrow"><label class="generic-label">Level</label>
            <input type="text" class="input-numeric-short padd-right" name="system.level" value="{{data.level}}" data-dtype="Number"/>
          </li>

          <li class="flexrow"><label class="generic-label">Stat Dice ?</label>
            <label class="attribute-value checkbox"><input type="checkbox" name="system.statdice" {{checked data.statdice}}/></label>
          </li>

          <li class="flexrow"><label class="generic-label">Bonus Dice ?</label>
            <label class="attribute-value checkbox"><input type="checkbox" name="system.bonusdice" {{checked data.bonusdice}}/></label>
          </li>
          
          <li class="flexrow"><label class="generic-label">Other Dice ?</label>
            <label class="attribute-value checkbox"><input type="checkbox" name="system.otherdice" {{checked data.otherdice}}/></label>
          </li>

          {{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}

          <li class="flexrow"><label class="generic-label">Equipped ?</label>
            <label class="attribute-value checkbox"><input type="checkbox" name="system.equipped" {{checked data.equipped}}/></label>
          </li>
          <li class="flexrow"><label class="generic-label">Quantity</label>
            <input type="text" class="input-numeric-short padd-right" name="system.quantity" value="{{data.quantity}}" data-dtype="Number"/>
          </li>
          <li class="flexrow"><label class="generic-label">Weight</label>
            <input type="text" class="input-numeric-short padd-right" name="system.weight" value="{{data.weight}}" data-dtype="Number"/>
          </li>
          <li class="flexrow"><label class="generic-label">Is a container ?</label>
            <label class="attribute-value checkbox"><input type="checkbox" name="system.iscontainer" {{checked data.iscontainer}}/></label>
          </li>
          {{#if data.iscontainer}}
          <li class="flexrow"><label class="generic-label">Container capacity</label>
            <input type="text" class="input-numeric-short padd-right" name="system.containercapacity" value="{{data.containercapacity}}" data-dtype="Number"/>
          </li>
          {{/if}}
          <li class="flexrow"><label class="generic-label">Threat Level Value</label>
            <input type="text" class="input-numeric-short padd-right" name="system.threatlevel" value="{{data.threatlevel}}" data-dtype="Number"/>
          </li>
          <li class="flexrow"><label class="generic-label">Cost</label>
            <input type="text" class="input-numeric-short padd-right" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
          </li>
          <li class="flexrow"><label class="generic-label">IDR</label>
            <select class="competence-base flexrow" type="text" name="system.idr" value="{{data.idr}}" data-dtype="String">
              {{#select data.idr}}
              {{{optionsDiceList}}}
              {{/select}}
            </select> 
          </li>
      </ul>
    </div>

  </section>
</form>
