<section>
  <div class="header">
    <img class="item-img era-icon-color" src="{{item.img}}" data-edit="img" data-action="editImage"
      data-tooltip="{{item.name}}" />
    {{formInput fields.name value=source.name}}
  </div>

  <fieldset>
    {{formField systemFields.settings value=system.settings localize=true}}
    {{formField systemFields.base value=system.base}}
    {{formField systemFields.bonus value=system.bonus}}
    <div class="total flexrow">
      <legend>{{localize "CTHULHUETERNAL.Label.totalScore"}}</legend>
      {{system.skillTotal}}
    </div>
    {{#if isGM}}
      {{formField systemFields.isHealing value=system.isHealing}}
      {{#if system.isHealing}}
        {{formField systemFields.healingFormula value=system.healingFormula}}
      {{/if}}
      {{formField systemFields.isAdversary value=system.isAdversary }}
      {{formField systemFields.diceEvolved value=system.diceEvolved}}

      {{#if system.diceEvolved}}
        {{formField systemFields.rollFailed value=system.rollFailed}}
      {{/if}}
    {{else}}
      {{formField systemFields.isHealing value=system.isHealing disabled=true}}
      {{#if system.isHealing}}
        {{formField systemFields.healingFormula value=system.healingFormula disabled=true}}
      {{/if}}
      {{formField systemFields.isAdversary value=system.isAdversary disabled=true}}
      {{formField systemFields.diceEvolved value=system.diceEvolved disabled=true}}

      {{#if system.diceEvolved}}
        {{formField systemFields.rollFailed value=system.rollFailed disabled=true}}
      {{/if}}
    {{/if}}

    {{#if (and system.diceEvolved system.rollFailed)}}
      <div class="roll-failed">
        <a class="roll-progress" data-action="rollProgress"><i class="fa-solid fa-dice-d4"></i> {{localize "CTHULHUETERNAL.Label.rollProgress"}}</a>
      </div>
    {{/if}}

  </fieldset>


  <fieldset>
    <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
    {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description"
    toggled=true}}
  </fieldset>

</section>