daggerheart/templates/dialogs/ownershipSelection.hbs
WBHarry 92b31b71a7
[PR][Fix] Cleaned Up Countdown Ownership View (#1459)
* Removed the disabled default ownership select in the ownership view. Added a fallback text incase there are no players added yet

* Corrected noPlayers condition
2025-12-24 01:09:51 +01:00

20 lines
847 B
Handlebars

<div class="ownership-outer-container">
{{#if showOwnership}}
<ul class="ownership-list">
{{#each ownership as |player id|}}
<li class="ownership-container">
<img src="{{player.img}}" />
<span>{{player.name}}</span>
<select name="{{concat "ownership." id}}" data-dtype="Number">
{{selectOptions @root.ownershipOptions selected=player.ownership labelAttr="label" valueAttr="value" localize=true }}
</select>
</li>
{{/each}}
</ul>
{{else}}
<span class="hint">{{localize "DAGGERHEART.APPLICATIONS.OwnershipSelection.noPlayers"}}</span>
{{/if}}
<footer class="flexrow">
<button type="submit">{{localize "Save"}}</button>
</footer>
</div>