<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">Related Attack Statistic</label>
            <select class="competence-base flexrow" type="text" name="system.statistic" value="{{data.statistic}}" data-dtype="String">
              {{#select data.statistic}}
              {{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false special=true}}
              {{/select}}
            </select> 
          </li>

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

          <li class="flexrow"><label class="generic-label">Damage Dice</label>
            <select class="competence-base flexrow" type="text" name="system.damage" value="{{data.damage}}" data-dtype="String">
              {{#select data.damage}}
              {{{optionsDiceList}}}
              {{/select}}
            </select> 
          </li>

          <li class="flexrow"><label class="generic-label">Item size</label>
            <input type="text" class="" name="system.itemsize" value="{{data.itemsize}}" data-dtype="String"/>
          </li>

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

          <li class="flexrow"><label class="generic-label">Max Range</label>
            <input type="text" class="" name="system.maxrange" value="{{data.maxrange}}" data-dtype="String"/>
          </li>

          <li class="flexrow"><label class="generic-label">AoE</label>
            <select class="competence-base flexrow" type="text" name="system.aoe" value="{{data.aoe}}" data-dtype="String">
              {{#select data.aoe}}
              <option value="none">None</option>
              <option value="tz">TZ</option>
              <option value="close">Close</option>
              <option value="medium">Medium</option>
              <option value="long">Long</option>
              <option value="extreme">Extreme</option>
              <option value="special">Special</option>
              {{/select}}
            </select> 
          </li>

          <li class="flexrow"><label class="generic-label">Damage Type</label>
            <select class="competence-base flexrow" type="text" name="system.damagetype" value="{{data.damagetype}}" data-dtype="String">
              {{#select data.damagetype}}
              <option value="none">None</option>
              <option value="slashing">Slashing</option>
              <option value="crushing">Crushing</option>
              <option value="piercing">Piercing</option>
              {{{optionsDiceList}}}
              {{/select}}
            </select> 
          </li>

          <li class="flexrow"><label class="generic-label">Damage Type Level</label>
            <input type="text" class="input-numeric-short padd-right" name="system.damagetypelevel" value="{{data.damagetypelevel}}" data-dtype="Number"/>
          </li>
          
          <li class="flexrow"><label class="generic-label">Vehicle Damage Type</label>
            <select class="competence-base flexrow" type="text" name="system.vehicledamagetype" value="{{data.vehicledamagetype}}" data-dtype="String">
              {{#select data.vehicledamagetype}}
              <option value="none">None</option>
              <option value="emp">EMP</option>
              <option value="thermal">Thermal</option>
              <option value="kinetic">Kinetic</option>
              {{{optionsDiceList}}}
              {{/select}}
            </select> 
          </li>

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

          <li class="flexrow"><label class="generic-label">Vehicle Damage Type Level</label>
            <input type="text" class="input-numeric-short padd-right" name="system.vehicledamagetypelevel" value="{{data.vehicledamagetypelevel}}" data-dtype="Number"/>
          </li>
          
          <li class="flexrow"><label class="generic-label">Ammo - Current</label>
            <input type="text" class="input-numeric-short padd-right" name="system.ammocurrent" value="{{data.ammocurrent}}" data-dtype="Number"/>
          </li>

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

          <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">Can be thrown ?</label>
            <label class="attribute-value checkbox"><input type="checkbox" name="system.canbethrown" {{checked data.canbethrown}}/></label>
          </li>

          <li class="flexrow"><label class="generic-label">Enhanced ?</label>
            <label class="attribute-value checkbox"><input type="checkbox" name="system.enhanced" {{checked data.enhanced}}/></label>
          </li>
          {{#if data.enhanced}}
          <li class="flexrow"><label class="generic-label">Enhanced Attack Statistic</label>
            <select class="competence-base flexrow" type="text" name="system.enhancedstat" value="{{data.enhancedstat}}" data-dtype="String">
              {{#select data.enhancedstat}}
              {{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false special=false}}
              {{/select}}
            </select> 
          </li>
          <li class="flexrow"><label class="generic-label">Enhance Level</label>
            <input type="text" class="input-numeric-short padd-right" name="system.enhancedlevel" value="{{data.enhancedlevel}}" data-dtype="Number"/>
          </li>
          {{/if}}

          <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">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>
