{{!-- Template utilisé pour les traits, arts et domaines --}}
<div class="item-header flexrow">
  <div class="item-image">
    <img src="{{img}}" title="{{name}}" width="24" height="24"/>
  </div>
  <h4 class="item-name">{{name}}</h4>
  
  {{#if system.tags}}
  <div class="item-tags">
    {{#each system.tags}}
    <span class="tag">{{this}}</span>
    {{/each}}
  </div>
  {{/if}}

  <div class="item-controls">
    <a class="item-control item-toggle" title="{{#if expanded}}{{localize 'Collapse'}}{{else}}{{localize 'Expand'}}{{/if}}">
      <i class="fas {{#if expanded}}fa-chevron-up{{else}}fa-chevron-down{{/if}}"></i>
    </a>
    <a class="item-control item-edit" title="{{localize 'Edit'}}"><i class="fas fa-edit"></i></a>
    <a class="item-control item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></a>
  </div>
</div>

{{#if system.acquisition}}
<div class="item-costs flexrow">
  {{#if system.acquisition.xpCost}}
  <span class="cost">
    <i class="fas fa-brain"></i>
    {{system.acquisition.xpCost}} {{localize "MYRIAD_SYSTEM.Acquisition.xpCost"}}
  </span>
  {{/if}}
  
  {{#if system.acquisition.price.value}}
  <span class="cost">
    <i class="fas fa-coins"></i>
    {{system.acquisition.price.value}} 
    {{#if system.acquisition.price.currency}}
      {{#ifequal system.acquisition.price.currency "po"}}
        {{localize "MYRIAD_SYSTEM.Acquisition.currencies.po"}}
      {{/ifequal}}
      {{#ifequal system.acquisition.price.currency "pa"}}
        {{localize "MYRIAD_SYSTEM.Acquisition.currencies.pa"}}
      {{/ifequal}}
      {{#ifequal system.acquisition.price.currency "pc"}}
        {{localize "MYRIAD_SYSTEM.Acquisition.currencies.pc"}}
      {{/ifequal}}
    {{/if}}
  </span>
  {{/if}}
</div>
{{/if}}

{{#if expanded}}
<div class="item-description">
  {{{system.description}}}
  
  {{#if system.isPassive}}
  <div class="item-passive">
    <span>{{localize "MYRIAD_SYSTEM.ItemAttributes.IsPassive"}}</span>
  </div>
  {{/if}}
  
  {{#if system.acquisition.prerequisites}}
  <div class="item-prerequisites">
    <h4>{{localize "MYRIAD_SYSTEM.Acquisition.prerequisites"}}</h4>
    <ul>
    {{#each system.acquisition.prerequisites}}
      <li>{{this}}</li>
    {{/each}}
    </ul>
  </div>
  {{/if}}

  {{#if system.constraints}}
  <div class="item-constraints">
    <h4>{{localize "Constraints"}}</h4>
    <ul>
    {{#each system.constraints}}
      <li>{{this}}</li>
    {{/each}}
    </ul>
  </div>
  {{/if}}
</div>
{{/if}}