{{!-- Actor-Webcam Mapping Panel --}}
<form class="sp-actor-mapping">
  {{#if hasNoUsers}}
  <p class="sp-actor-mapping__empty">{{localize "SCRYING_POOL.ActorMapping.noUsers"}}</p>
  {{else}}
  <p class="sp-actor-mapping__hint">{{localize "SCRYING_POOL.ActorMapping.description"}}</p>
  <div class="sp-actor-mapping__table">
    {{#each users}}
    <div class="sp-actor-mapping__row">
      <div class="sp-actor-mapping__user">
        <img class="sp-actor-mapping__user-avatar" src="{{this.avatar}}" alt="">
        <span class="sp-actor-mapping__user-name">{{this.name}}</span>
        {{#if this.isGM}}<span class="sp-actor-mapping__badge">{{localize "SCRYING_POOL.ActorMapping.gmBadge"}}</span>{{/if}}
      </div>
      <select name="{{this.id}}" class="sp-actor-mapping__select">
        <option value="">{{localize "SCRYING_POOL.ActorMapping.noneOption"}}</option>
        {{#each this.actors}}
        <option value="{{this.id}}" {{#if this.selected}}selected{{/if}}>{{this.name}}</option>
        {{/each}}
      </select>
    </div>
    {{/each}}
  </div>
  {{/if}}
</form>
