<div class="item-sheet aspect">
  <header class="item-header">
    <div class="item-portrait" data-action="editImage">
      <img src="{{item.img}}" alt="{{item.name}}">
    </div>
    <div class="item-header-fields">
      <input type="text" name="name" value="{{item.name}}" {{#unless isEditable}}disabled{{/unless}}>
      <div class="item-meta">
        <div class="item-value-field">
          <label>{{localize "CELESTOPOL.Item.value"}}</label>
          {{#if isEditable}}
          <input type="number" name="system.value" value="{{system.value}}" min="0" max="8">
          {{else}}
          <span class="item-value-display">{{system.value}}</span>
          {{/if}}
        </div>
      </div>
    </div>
  </header>

  <nav class="item-tabs sheet-tabs tabs" data-group="item-tabs">
    <a class="item active" data-group="item-tabs" data-tab="description">{{localize "CELESTOPOL.Tab.description"}}</a>
    <a class="item" data-group="item-tabs" data-tab="technique">{{localize "CELESTOPOL.Tab.technique"}}</a>
    <a class="item" data-group="item-tabs" data-tab="scores">{{localize "CELESTOPOL.Item.scores"}}</a>
  </nav>

  <section class="tab active" data-group="item-tabs" data-tab="description">
    <div class="form-group">
      {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
    </div>
  </section>

  <section class="tab" data-group="item-tabs" data-tab="technique">
    <div class="form-group">
      <label>{{localize "CELESTOPOL.Item.technique"}}</label>
      {{formInput systemFields.technique enriched=enrichedTechnique value=system.technique name="system.technique" toggled=true}}
    </div>
    <div class="form-group">
      <label>{{localize "CELESTOPOL.Item.narratif"}}</label>
      {{formInput systemFields.narratif enriched=enrichedNarratif value=system.narratif name="system.narratif" toggled=true}}
    </div>
  </section>

  <section class="tab" data-group="item-tabs" data-tab="scores">
    {{> "systems/fvtt-celestopol/templates/partials/item-scores.hbs" skills=skills system=system}}
  </section>
</div>
