<section>
  {{> "systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/header.hbs"}}
  <div class="sheet-body">
    {{#if isPartagee}}
    <div class="form-group">
      <label>Tâche commune</label>
      <div class="form-fields">
        <span><i class="fa-solid fa-people-group"></i> {{communeName}}</span>
      </div>
    </div>
    {{/if}}
    <div class="form-group">
      <label>Caractéristique</label>
      <div class="form-fields">
        <input name="system.carac" type="text" value="{{system.carac}}" {{#if disabled}}disabled{{/if}} />
      </div>
    </div>
    <div class="form-group">
      <label>Compétence</label>
      <div class="form-fields">
        <input name="system.competence" type="text" value="{{system.competence}}" {{#if disabled}}disabled{{/if}} />
      </div>
    </div>
    <div class="form-group">
      <label>Périodicité</label>
      <div class="form-fields">
        <input name="system.periodicite" type="text" value="{{system.periodicite}}" {{#if disabled}}disabled{{/if}} />
      </div>
    </div>
    <div class="form-group">
      <label>Fatigue</label>
      <div class="form-fields">
        <input name="system.fatigue" type="number" value="{{system.fatigue}}" {{#if disabled}}disabled{{/if}} />
      </div>
    </div>
    <div class="form-group">
      <label>Difficulté</label>
      <div class="form-fields">
        <input name="system.difficulte" type="number" value="{{system.difficulte}}" {{#if disabled}}disabled{{/if}} />
      </div>
    </div>
    <div class="form-group">
      <label>Points de tâche</label>
      <div class="form-fields">
        <input name="system.points_de_tache" type="number" value="{{system.points_de_tache}}" {{#if disabled}}disabled{{/if}} />
      </div>
    </div>
    <div class="form-group">
      <label>Points courants</label>
      <div class="form-fields">
        <input name="system.points_de_tache_courant" type="number" value="{{system.points_de_tache_courant}}" {{#if disabled}}disabled{{/if}} />
      </div>
    </div>
    <div class="form-group">
      <label>Échecs</label>
      <div class="form-fields">
        <input name="system.nb_jet_echec" type="number" value="{{system.nb_jet_echec}}" {{#if disabled}}disabled{{/if}} />
      </div>
    </div>
    <div class="form-group">
      <label>Succès</label>
      <div class="form-fields">
        <input name="system.nb_jet_succes" type="number" value="{{system.nb_jet_succes}}" {{#if disabled}}disabled{{/if}} />
      </div>
    </div>
    <div class="form-group">
      <label>Cacher points</label>
      <div class="form-fields">
        <input name="system.cacher_points_de_tache" type="checkbox" {{#if system.cacher_points_de_tache}}checked{{/if}} {{#if disabled}}disabled{{/if}} />
      </div>
    </div>
    {{#unless system.tacheCommuneId}}
    <div class="form-group">
      <label>Tâche partagée</label>
      <div class="form-fields">
        <input class="is-tache-partagee" type="checkbox" {{#if estCommune}}checked{{/if}} {{#if item.parent}}disabled{{/if}} />
      </div>
    </div>
    {{/unless}}
  {{>"systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/template-description.hbs"}}
  </div>
</section>
