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

    {{!-- Sheet Body --}}
    <section class="sheet-body">
    
    <div class="flexcol">
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.weapontype"}} : </label>
        <select class="status-small-label color-class-common" type="text" name="system.typearme" value="{{data.typearme}}" data-dtype="string" >
          {{selectOptions config.typeArmeOptions selected=data.typearme}}
        </select> 
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.weaponbonusattack"}} : </label>
        <input type="text" class="padd-right status-small-label color-class-common" name="system.bonusmaniementoff" value="{{data.bonusmaniementoff}}" data-dtype="Number" />
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.isdefense"}} ? </label>
        <input type="checkbox" name="system.isdefense" {{checked data.isdefense}}/>
      </span>
      {{#if data.isdefense}}
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.weaponbonusdefense"}} : </label>
        <input type="text" class="padd-right status-small-label color-class-common" name="system.bonusmaniementdef" value="{{data.bonusmaniementdef}}" data-dtype="Number" />
      </span>
      {{/if}}
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.damage"}} : </label>
        <input type="text" class="padd-right status-small-label color-class-common" name="system.degats" value="{{data.degats}}" data-dtype="String" />
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.nonlethaldamage"}} ? </label>
        <input type="checkbox" name="system.nonletaux" {{checked data.nonletaux}}/>
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.equipped"}} ? </label>
        <input type="checkbox" name="system.equipped" {{checked data.equipped}}/>
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.twohands"}} ? </label>
        <input type="checkbox" name="system.deuxmains" {{checked data.deuxmains}}/>
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.ignorearmor"}} ? </label>
        <input type="checkbox" name="system.ignorearmure" {{checked data.ignorearmure}}/>
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.creatureresourcecost"}} </label>
        <input type="text" class="padd-right status-small-label color-class-common" name="system.nbressources" value="{{data.nbressources}}" data-dtype="Number" />
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.shortrange"}} </label>
        <input type="text" class="padd-right status-small-label color-class-common" name="system.courte" value="{{data.courte}}" data-dtype="Number" />
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.mediumrange"}} </label>
        <input type="text" class="padd-right status-small-label color-class-common" name="system.moyenne" value="{{data.moyenne}}" data-dtype="Number" />
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.longrange"}} </label>
        <input type="text" class="padd-right status-small-label color-class-common" name="system.longue" value="{{data.longue}}" data-dtype="Number" />
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.reloadduration"}}  </label>
        <input type="text" class="padd-right status-small-label color-class-common" name="system.tr" value="{{data.tr}}" data-dtype="Number" />
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.rarity"}}  </label>
        <input type="text" class="padd-right status-small-label color-class-common" name="system.rarete" value="{{data.rarete}}" data-dtype="Number" />
      </span>
      <span class="flexrow">
        <label class="generic-label">{{localize "MNBL.price"}}  </label>
        <input type="text" class="padd-right status-small-label color-class-common" name="system.prix" value="{{data.prix}}" data-dtype="Number" />
      </span>

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

    </div>
      
    </section>
</form>
