daggerheart/templates/dialogs/groupRollDialog/initialization.hbs
2026-04-21 18:33:24 -04:00

38 lines
No EOL
2 KiB
Handlebars

<section class="initialization-container tab {{#if tabs.initialization.active}} active{{/if}}" data-group="{{tabs.initialization.group}}" data-tab="{{tabs.initialization.id}}">
<h1>Character Selection</h1>
<header><span>Leader</span></header>
<section class="main-roll {{#if selectedLeaderDisabled}}inactive{{/if}}">
<div class="hint">Select one Character to be the leader</div>
<select class="main-character-field" {{#if selectedLeaderDisabled}}disabled{{/if}}>
{{selectOptions selectedLeaderOptions selected=selectedLeader.memberId blank="" }}
</select>
</section>
<header><span>Party Members</span></header>
<div class="hint">Select all Characters who will participate in the roll</div>
<div class="members-container">
{{#each memberSelection as |member|}}
<button
class="plain member-container {{#unless member.selected}}inactive {{#if ../allselected}}locked{{/if}}{{/unless}}"
data-action="toggleSelectMember"
data-id="{{member.id}}"
{{#if (and (not member.selected) ../allSelected)}}disabled{{/if}}
>
<img class="portrait" src="{{member.img}}" />
<span class="name">{{member.name}}</span>
<input type="checkbox" {{#if member.selected}}checked{{/if}} />
</button>
{{/each}}
</div>
<footer>
<div class="finish-tools {{#unless canStartGroupRoll}}inactive{{/unless}}">
<span>{{localize "DAGGERHEART.APPLICATIONS.GroupRollSelect.openDialogForAll"}}</span>
<input type="checkbox" class="openforall-field" {{#unless canStartGroupRoll}}disabled{{/unless}} {{checked openForAllPlayers}} />
</div>
<button type="button" data-action="startGroupRoll" {{#unless canStartGroupRoll}}disabled{{/unless}}>
<i class="fa-solid fa-arrow-right-long" inert></i>
{{localize "DAGGERHEART.APPLICATIONS.GroupRollSelect.startGroupRoll"}}
</button>
</footer>
</section>