<form class="dialog-repos">
  <img class="chat-icon" src="{{img}}" title="{{name}}" alt="{{name}}" />
  <div class="flexcol">
    <div class="flexrow"><span>
      <h2>{{name}} se repose</h2>
    </span></div>
    <div class="flexrow"><span>
      <input class type="radio" name="repos" id="sieste" value="sieste">
      <label for="sieste">Sieste de 
        <input type="number" name="sieste.heures" value="1" data-dtype="Number" />
        heures</label>
    </span></div>
    <div class="flexrow"><span><hr></span></div>
    {{#if system.sommeil.nouveaujour}}
    <div class="flexrow"><span>
      <input type="radio" name="repos" id="chateau-dormant" value="chateau-dormant">
      <label for="chateau-dormant">Juste château Dormant</label>
    </span></div>
    <div class="flexrow"><span>
      <input type="radio" name="repos" id="nuit" value="nuit" checked>
      {{#if system.sommeil.insomnie}}
      <label>Insomnie cette nuit</label>
      {{else}}
      <label for="nuit">Dormir
        <input type="number" name="sommeil.heures" value="{{system.sommeil.heures}}" data-dtype="Number" />
        heures cette nuit
      </label>
      {{/if}}
    </span></div>
    <div class="flexrow">
      <label for="moral">Moral</label>
      <div class="sommeil-actor-moral">
        {{> "systems/foundryvtt-reve-de-dragon/templates/sommeil/sommeil-actor-moral.hbs" system.sommeil}}
      </div>
    </div>
    {{else}}
      <div class="flexrow"><span>
        Le gardien des rêves doit faire passer Chateau Dormant
      </span></div>
    {{/if}}
    <div class="flexrow"><span><hr></span></div>
    <div class="flexrow"><span>
      <input type="radio" name="repos" id="gris-reve" value="gris-reve">
      <label for="gris-reve">Gris rêve</label>
    </span></div>
    <div class="flexrow">
      <label for="nb-jours">Nombre de jours</label>
      <input type="number" name="nb-jours" value="2" data-dtype="Number" />
    </div>
  </div>
</form>