<form class="skill-roll-dialog">
  <img class="chat-icon" src="{{competence.img}}" data-tooltip="{{competence.name}}"/>
  <h2 class="dialog-roll-title"></h2>

  <div class="grid grid-2col">
    <div class="flex-group-left">
      <div class="flexrow">
        <label>Caractéristique</label>
        <span>
          {{>"systems/foundryvtt-reve-de-dragon/templates/partial-select-carac.hbs"}}
        </span>
      </div>
      {{#if targetToken}}
      <div class="flexrow">
        <label>Cible:</label>
        <label>
          <img class="sheet-competence-img" src="{{targetToken.img}}" data-tooltip="{{targetToken.name}}" />
          {{targetToken.name}}
        </label>
      </div>
      {{/if}}
      {{#if ajustements.attaqueDefenseurSurpris.used}}
      <div class="flexrow">
        <label>{{ajustements.attaqueDefenseurSurpris.label}}</label>
      </div>
      {{/if}}
      {{#if arme}}
        {{#if attackerRoll}}
          {{#if attackerRoll.tactique}}
          <div class="flexrow">
            <label>Tactique: </label><label>{{attackerRoll.tactique}}</label>
          </div>
          {{/if}}
        {{else}}
        <div class="flexrow">
          <label>Tactique:</label>
          <span class="tooltip tooltip-dotted">
            <select class="select-by-name" name="tactique" data-dtype="String" {{#unless use.conditions}}disabled{{/unless}}>
              <option value="Attaque normale">Attaque normale</option>
              <option value="charge">Charge</option>
              <option value="feinte">Feinte</option>
            </select>
            <div class="tooltiptext ttt-ajustements">
              <div>
                <strong>Charge</strong> : Les longueurs d'armes n'interviennent pas dans la charge, il faut gérer une initiative aléatoire dans ce cas.
                <br>
                <strong>Feinte</strong> : Vous devez avoir l'initative sur votre adversaire et y renoncer.
              </div>
            </div>
          </span>
        </div>
        <div class="flexrow">
          <label>D&eacute;gats:</label>
          {{#if (eq arme.system.mortalite 'empoignade')}}
          <label>Empoignade</label>
          {{else}}
          <span>
            {{#unless (eq arme.system.mortalite 'non-mortel')}}
            <input class="attribute-value check-mortalite" type="checkbox" name="mortalite" {{#unless (eq mortalite 'mortel')}}checked{{/unless}} />
            {{/unless}}
            <label class="dmg-arme-actor" name="dmg-arme-actor"></label> (<label class="arme-mortalite" name="arme-mortalite"></label>)
          </span>
          {{/if}}
        </div>
        {{/if}}
      {{/if}}
      <div class="flexrow"></div>
      {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-surenc.hbs"}}
      {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-enctotal.hbs"}}
    </div>

    <div class="flex-group-left">
      {{#if (or attackerRoll  
        (and sourceToken (eq competence.system.categorie 'tir'))
        (and sourceToken (eq competence.system.categorie 'lancer')) 
        )}}
      {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffFixe.hbs"}}
      {{else}}
      {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffLibre.hbs"}}
      {{/if}}
      {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.hbs"}}
      {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-forcer.hbs"}}
      {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-moral.hbs"}}
      <div class="flexrow"></div>
      <div class="placeholder-ajustements" class="flexrow"></div>
    </div>
  </div>

  <div class="placeholder-resolution"></div>
</form>
