fixes for banish

This commit is contained in:
2024-05-13 18:29:54 -05:00
parent b5b0ad01f6
commit f962ee785e
4 changed files with 56 additions and 74 deletions
+27 -27
View File
@@ -1,4 +1,4 @@
<form class="flexcol">
<form class="flexcol"><!-- vim: set ft=handlebars: -->
<header class="sheet-header flexrow">
<img src="{{icon}}" height="64" width="64" title="{{name}} Effect" alt=" " />
<section class="flexcol">
@@ -6,38 +6,38 @@
<p>Apply the affects of {{name}}.</p>
</section>
</header>
{{#if targets.length}}
<p>
<strong>Targets</strong>:
{{#each targets}}{{#if @index}}, {{/if}}{{this}}{{/each}}
{{#if recipients.cost}}
<br>(Additional Recipients {{recipients.cost}}pp each × {{recipients.count}} = {{recipients.total}})
{{#if basePowerPoints}}
<p><strong>Base Power Points</strong>: {{basePowerPoints}}
{{/if}}
</p>
{{#if targets.length}}
<p>
<strong>Targets</strong>:
{{#each targets}}{{#if @index}}, {{/if}}{{this}}{{/each}}
{{#if recipients.cost}}
<br>(Additional Recipients {{recipients.cost}}pp each × {{recipients.count}} = {{recipients.total}})
{{/if}}
</p>
{{/if}}
{{#each modifiers}}
<div class="form-group">
{{#if isCheckbox}}
<input type="checkbox" name="{{id}}" {{checked default}} />
<label for="{{id}}">
{{#if epic}}⭐ {{/if}}{{name}} ({{numberFormat value decimals=0 sign=true}})
</label>
{{/if}}
{{#if isSelect}}
<label>{{#if epic}}⭐ {{/if}}{{name}}:</label>
<select name="{{id}}">
{{selectOptions choices selected=default}}
</select>
{{/if}}
{{#if isRadio}}
<label>{{#if epic}}⭐ {{/if}}{{name}}:</label>
{{radioBoxes id choices checked=default}}
{{/if}}
</div>
<div class="form-group">
{{#if isCheckbox}}
<label class="checkbox">
<input type="checkbox" name="{{id}}" {{checked default}} />
{{#if epic}}⭐ {{/if}}{{name}} ({{numberFormat value decimals=0 sign=true}})
</label>
{{/if}}
{{#if isSelect}}
<label>{{#if epic}}⭐ {{/if}}{{name}}:</label>
<select name="{{id}}">{{selectOptions choices selected=default}}</select>
{{/if}}
{{#if isRadio}}
<label>{{#if epic}}⭐ {{/if}}{{name}}:</label> {{radioBoxes id choices checked=default}}
{{/if}}
</div>
{{/each}}
<footer class="sheet-footer flexrow">
{{#each buttons}}
<button type="submit" name="submit" value="{{value}}">{{label}}</button>
<button type="submit" name="submit" value="{{value}}">{{label}}</button>
{{/each}}
</footer>
</form>