<section>
  {{> "systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/header.hbs"}}
  <div class="sheet-body">
  <fieldset>
    <div class="form-group">
      <label for="system.type">Type</label>
      <select name="system.type" data-dtype="String">
        {{#select system.type}}
        {{{gemmeTypeList}}}
        {{/select}}
      </select>
    </div>
    {{formField systemFields.taille value=system.taille}}
    {{formField systemFields.purete value=system.purete}}
    <div class="form-group">
      <label>Inertie</label>
      <input name="system.inertie" value="{{system.inertie}}" type="text" data-dtype="Number" disabled/>
    </div>
    <div class="form-group">
      <label>Enchantabilité</label>
      <input name="system.enchantabilite" value="{{system.enchantabilite}}" type="text" data-dtype="Number" disabled/>
    </div>
  </fieldset>
  {{#if isEnchantementPossible}}
  <fieldset>
    <legend>Enchantement</legend>
    <div class="form-group">
      <label for="system.magique">Magique {{#if system.magique}}<i class="fa-solid fa-sparkles"></i>{{/if}}</label>
      <input type="checkbox" name="system.magique" {{#if system.magique}}checked{{/if}}/>
    </div>
    {{#if system.magique}}
    {{formField systemFields.pr value=system.pr}}
    <div class="form-group">
      <label for="system.purifie">Purifiée</label>
      <input type="checkbox" name="system.purifie" {{#if system.purifie}}checked{{/if}}/>
    </div>
    <div class="form-group">
      <label for="system.prpermanent">Permanente</label>
      <input type="checkbox" name="system.prpermanent" {{#if system.prpermanent}}checked{{/if}}/>
    </div>
    <div class="form-group">
      <label for="enchantement.jour">Date de l'Enchantement : Jour/Mois (date actuelle : {{dateActuelle}})</label>
    </div>
    <div class="form-group">
      <input name="enchantement.jour" class="date-enchantement" type="number" data-dtype="Number" value="{{enchantement.jour}}" min="1" max="28"/>
      <select name="enchantement.mois" class="date-enchantement" data-dtype="String">
        {{#select enchantement.mois}}
        {{>"systems/foundryvtt-reve-de-dragon/templates/enum-heures.hbs"}}
        {{/select}}
      </select>
    </div>
    {{/if}}
  </fieldset>
  {{/if}}
  {{>"systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/template-inventaire.hbs"}}
  {{>"systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/template-description.hbs"}}
  </div>
</section>
