<section class="{{cssClass}}" autocomplete="off">
  {{> systems/fvtt-les-heritiers/templates/partial-item-header.hbs}}

  {{> systems/fvtt-les-heritiers/templates/partial-item-nav.hbs}}


    {{> systems/fvtt-les-heritiers/templates/partial-item-description.hbs}}

    <div class="tab details" data-group="primary" data-tab="details">

      <ul class="item-list alternate-list">

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Masqué/Démasque </label>
          <select class="status-small-label color-class-common item-field-label-long" type="text"
            name="system.masquetype" value="{{system.masquetype}}" data-dtype="string">
            {{selectOptions config.masquePouvoir selected=system.masquetype}}            

          </select>
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Type </label>
          <select class="status-small-label color-class-common item-field-label-long" type="text"
            name="system.pouvoirtype" value="{{system.pouvoirtype}}" data-dtype="string">
            {{selectOptions config.typePouvoir selected=system.pouvoirtype}}            

          </select>
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Niveau </label>
          <select class="status-small-label color-class-common item-field-label-long" type="text"
            name="system.niveau" value="{{system.niveau}}" data-dtype="string">
            {{selectOptions config.niveauPouvoir selected=system.niveau}}            

          </select>
        </li>
        
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Activation </label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.activation" value="{{system.activation}}" data-dtype="String" />
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Jet nécessaire ? </label>
          <input type="checkbox" class="padd-right status-small-label color-class-common item-field-label-short"
            name="system.istest" {{checked system.istest}}/>
        </li>

        {{#if system.istest}}
          <li class="flexrow item">
            <label class="generic-label item-field-label-long2">Base </label>
            <select class="status-small-label color-class-common item-field-label-long" type="text"
              name="system.feeriemasque" value="{{system.feeriemasque}}" data-dtype="string">
              {{selectOptions config.baseTestPouvoir selected=system.feeriemasque}}            
            </select>
          </li>

            {{#if (eq system.feeriemasque "autre")}}
              <li class="flexrow item">
                <label class="generic-label item-field-label-long2">Jet </label>
                <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3" name="system.testautre" value="{{system.testautre}}" data-dtype="String" />    
              </li>
              {{else}}
              <li class="flexrow item">
                <label class="generic-label item-field-label-long2">+ Carac </label>
                <select class="status-small-label color-class-common item-field-label-long" type="text"
                  name="system.carac" value="{{system.carac}}" data-dtype="string">
                  {{selectOptions config.caracList selected=system.carac}}            
                </select>
            </li>
            {{/if}}

          {{/if}}

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Points d'usage max/jour </label>
          {{#if (eq usageMax -1)}}
          <label class="generic-label item-field-label-short">Inconnu</label>
          {{else}}
          <label class="generic-label item-field-label-short">{{usageMax}}</label>
          {{/if}}
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Points d'usage restants </label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
            name="system.pointsusagecourant" value="{{system.pointsusagecourant}}" data-dtype="Number" />
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Cibles </label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.cibles" value="{{system.cibles}}" data-dtype="String" />
        </li>
 
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Durée </label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3" name="system.duree" value="{{system.duree}}" data-dtype="String" />
        </li>
        
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Effet </label>
          <textarea rows="6" type="text" class="padd-right color-class-common item-field-label-long3" name="system.effet"
          data-dtype="String">{{system.effet}}</textarea>
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Portée </label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.portee" value="{{system.portee}}" data-dtype="String" />
        </li>

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Résistance</label>
          <select class="status-small-label color-class-common item-field-label-long" type="text"
            name="system.resistance" value="{{system.resistance}}" data-dtype="string">
            {{selectOptions config.resistancePouvoir selected=system.resistance}}            
          </select>
        </li>

        {{#if (eq system.resistance "autre")}}
          <li class="flexrow item">
            <label class="generic-label item-field-label-long2">Résistance (Autre) </label>
            <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
              name="system.resistanceautre" value="{{system.resistanceautre}}" data-dtype="String" />
          </li>
        {{/if}}

        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Zone d'effet </label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.zoneeffet" value="{{system.zoneeffet}}" data-dtype="String" />
        </li>


        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Virulence (ie Poison) ? </label>
          <input type="checkbox" class="padd-right status-small-label color-class-common item-field-label-short"
            name="system.isvirulence" {{checked system.isvirulence}}/>
        </li>

        {{#if system.isvirulence}}
        <li class="flexrow item">
          <label class="generic-label item-field-label-long2">Virulence </label>
          <input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"
            name="system.virulence" value="{{system.virulence}}" data-dtype="String" />
        </li>
      {{/if}}

      </ul>
    </div>

  
</section>
