<roll-part-img>
  <img src="{{current.sort.img}}" data-tooltip="{{current.sort.name}}" />
</roll-part-img>
<roll-part-detail>
  <subline>TMR actuelle: {{caseTmr-label rollData.active.actor.system.reve.tmrpos.coord}} {{rollData.active.actor.system.reve.tmrpos.coord}}</subline>
  <subline>
    <select name="select-sort" {{#if rollData.type.retry}}disabled{{/if}}>
      {{selectOptions refs.sorts selected=current.key valueAttr="key" labelAttr="label"}}
    </select>
    {{#if current.isDiffVariable}}
    <select name='diff-var'
        {{#if rollData.type.retry}}disabled{{/if}}>
        {{selectOptions current.sortDiffOptions selected=current.value valueAttr="value" labelAttr="label"}}
    </select>
    {{else}}
    <selected-numeric-value>{{plusMoins current.value}}</selected-numeric-value>
    {{/if}}
  </subline>
  <subline>
    <label for="ptreve-var">Rêve {{itemSort-coutReve current.sort}}&nbsp;</span>
    </label>
    {{#if current.isReveVariable}}
      <input name='ptreve-var' type="number" data-dtype="Number"
          value="{{current.ptreve}}" step="1" min="1" max="{{rollData.active.actor.system.reve.reve.value}}" 
          pattern="^\d+$"
          {{#if rollData.type.retry}}disabled{{/if}}>

    {{/if}}
    <span>&nbsp;(actuel: {{rollData.active.actor.system.reve.reve.value}})</span>
  </subline>
  <subline>
    {{#if current.sort.system.isrituel}}
    <i class="fa-solid fa-book-sparkles"></i>&nbsp; Rituel
    {{else}}
    <input type="checkbox" name="reserve" {{#if current.isReserve}}checked{{/if}} {{#if rollData.type.retry}}disabled{{/if}}/>
    <label for="reserve"><i class="fa-solid fa-sparkles"></i>&nbsp; Mettre en réserve</label>
    {{!-- TODO: proposer de mettre une HN/Taille de zone --}}
    {{/if}}
  </subline>
  <subline>Case TMR:&nbsp;{{current.caseTMR}}</subline>
  {{#if current.bonusCase}}
    <subline>Bonus case: {{plusMoins current.bonusCase}}%</subline>
  {{/if}}
</roll-part-detail>
