<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">Category</label>
            <select class="competence-base flexrow" type="text" name="system.category" value="{{data.category}}" data-dtype="String">
              {{#select data.category}}
              <option value="mobility">Mobility</option>
              <option value="com">Com</option>
              <option value="detect">Detect</option>
              <option value="scrambler">Scrambler</option>
              <option value="energy">Energy</option>
              <option value="misc">Misc</option>
              <option value="capfuel">Cap/Fuel</option>
              <option value="repair">Repair</option>
              <option value="software">Software</option>
              <option value="targetting">Targetting</option>
              <option value="shield">Shield</option>
              <option value="armor">Armor</option>
              {{/select}}
            </select> 
          </li>

          <li class="flexrow"><label class="generic-label">Location</label>
            <select class="competence-base flexrow" type="text" name="system.location" value="{{data.location}}" data-dtype="String">
              {{#select data.location}}
              <option value="front">Front</option>
              <option value="left">Left</option>
              <option value="rear">Rear</option>
              <option value="right">Right</option>
              <option value="top">Top</option>
              <option value="bottom">Bottom</option>
              {{/select}}
            </select> 
          </li>

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

          <li class="flexrow"><label class="generic-label">NRG Cost</label>
            <input type="text" class="" name="system.nrg" value="{{data.nrg}}" data-dtype="Number"/>
          </li>

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

          <li class="flexrow"><label class="generic-label">Arc coverage</label>
            <select class="competence-base flexrow" type="text" name="system.arccoverage" value="{{data.arccoverage}}" data-dtype="String">
              {{#select data.arccoverage}}
              <option value="none">None</option>
              <option value="all">All</option>
              <option value="front">Front</option>
              <option value="left">Left</option>
              <option value="rear">Rear</option>
              <option value="right">Right</option>
              <option value="top">Top</option>
              <option value="bottom">Bottom</option>
              {{/select}}
            </select> 
          </li>

          <li class="flexrow"><label class="generic-label">Armour Dice Value</label>
            <select class="competence-base flexrow" type="text" name="system.armourdicevalue" value="{{data.armourdicevalue}}" data-dtype="String">
              {{#select data.armourdicevalue}}
              {{{optionsDiceList}}}
              {{/select}}
            </select>           
          </li>          
          <li class="flexrow"><label class="generic-label">Shield Dice Value</label>
            <select class="competence-base flexrow" type="text" name="system.shielddicevalue" value="{{data.shielddicevalue}}" data-dtype="String">
              {{#select data.shielddicevalue}}
              {{{optionsDiceList}}}
              {{/select}}
            </select>           
          </li>          
          <li class="flexrow"><label class="generic-label">Security Dice Value</label>
            <select class="competence-base flexrow" type="text" name="system.securitydicevalue" value="{{data.securitydicevalue}}" data-dtype="String">
              {{#select data.securitydicevalue}}
              {{{optionsDiceList}}}
              {{/select}}
            </select>           
          </li>          

          <li class="flexrow"><label class="generic-label">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">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>
          <li class="flexrow"><label class="generic-label">Space</label>
            <input type="text" class="" name="system.space" value="{{data.space}}" data-dtype="Number"/>
          </li>

          <li class="flexrow"><label class="generic-label">Cost</label>
            <input type="text" class="" name="system.cost" value="{{data.cost}}" data-dtype="Number"/>
          </li>

        </ul>
    </div>

  </section>
</form>
