<form class="{{cssClass}}" autocomplete="off">
    <header class="sheet-header">
        <img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
        <div class="header-fields">
            <h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
        </div>
    </header>
    
    {{!-- Sheet Body --}}
    <section class="sheet-body">
      <div class="form-group">
        <label>Compétence associée</label>
        <select name="data.competence" id="competence" data-dtype="String">
          {{#select item.data.competence}}
          {{>"systems/foundryvtt-reve-de-dragon/templates/enum-competence.html"}}
          {{/select}}
        </select>
      </div>
      <div class="form-group">
        <label for="niveau">Dommmages </label>
        <input class="attribute-value" type="text" name="data.dommages" value="{{data.dommages}}" data-dtype="String"/>
      </div>
      <div class="form-group">
        <label for="xp">Résistance </label>
        <input class="attribute-value" type="text" name="data.resistance" value="{{data.resistance}}" data-dtype="Number"/>
      </div>
      <div class="form-group">
        <label>Catégorie parade </label>
        <select name="data.categorie_parade" id="categorie_parade" data-dtype="String">
          {{#select data.categorie_parade}}
          {{>"systems/foundryvtt-reve-de-dragon/templates/enum-categorie-parade.html"}}
          {{/select}}
        </select>
      </div>
      <div class="form-group">
        <label for="xp">Encombrement </label>
        <input class="attribute-value" type="text" name="data.encombrement" value="{{data.encombrement}}" data-dtype="Number"/>
      </div>
      <div class="form-group">
        <label for="xp">Force min. </label>
        <input class="attribute-value" type="text" name="data.force" value="{{data.force}}" data-dtype="String"/>
      </div>
      <div class="form-group">
        <label for="xp">Arme rapide ? </label>
        <input class="attribute-value" type="checkbox" name="data.rapide"  {{#if data.rapide}}checked{{/if}}/>
      </div>
      <div class="form-group">
        <label for="xp">A Une main ? </label>
        <input class="attribute-value" type="checkbox" name="data.unemain"  {{#if data.unemain}}checked{{/if}}/>
      </div>
      <div class="form-group">
        <label for="xp">A Deux mains ? </label>
        <input class="attribute-value" type="checkbox" name="data.deuxmains"  {{#if data.deuxmains}}checked{{/if}}/>
      </div>
      <div class="form-group">
        <label for="xp">Portée courte </label>
        <input class="attribute-value" type="text" name="data.portee_courte" value="{{data.portee_courte}}" data-dtype="Number"/>
      </div>
      <div class="form-group">
        <label for="xp">Portée moyenne </label>
        <input class="attribute-value" type="text" name="data.portee_moyenne" value="{{data.portee_moyenne}}" data-dtype="Number"/>
      </div>
      <div class="form-group">
        <label for="xp">Portée extrême </label>
        <input class="attribute-value" type="text" name="data.portee_extreme" value="{{data.portee_extreme}}" data-dtype="Number"/>
      </div>
      <div class="form-group">
        <label for="penetration">Pénétration </label>
        <input class="attribute-value" type="text" name="data.penetration" value="{{data.penetration}}" data-dtype="Number"/>
      </div>
      <div class="form-group">
        <label for="xp">Prix (sols) </label>
        <input class="attribute-value" type="text" name="data.cout" value="{{data.cout}}" data-dtype="Number"/>
      </div>
      <div class="form-group">
        <label for="xp">Magique ? </label>
        <input class="attribute-value" type="checkbox" name="data.magique"  {{#if data.magique}}checked{{/if}}/>
      </div>
      <div class="form-group">
        <label for="penetration">Résistance magique </label>
        <input class="attribute-value" type="text" name="data.resistance_magique" value="{{data.resistance_magique}}" data-dtype="Number"/>
      </div>
      <div class="form-group">
        <label for="penetration">Nombre d'Ecailles d'Efficacité </label>
        <input class="attribute-value" type="text" name="data.ecaille_efficacite" value="{{data.ecaille_efficacite}}" data-dtype="Number"/>
      </div>
      <div class="form-group">
        <label for="penetration">Classe d'initiative au premier round (mêlée seulement) </label>
        <select name="data.initpremierround" id="initpremierround" data-dtype="String">
          {{#select data.initpremierround}}
          {{>"systems/foundryvtt-reve-de-dragon/templates/enum-initpremierround.html"}}
          {{/select}}
        </select>
      </div>      
      <div class="flexcol">
        <span><label>Description : </label></span>
        <div class="form-group editor">
          {{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
        </div>
      </div>
    </section>
    
</form>
