52 lines
1.8 KiB
Handlebars
52 lines
1.8 KiB
Handlebars
<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">
|
||
<h2>{{name}} Effect</h2>
|
||
<p>Apply the affects of {{name}}.</p>
|
||
</section>
|
||
</header>
|
||
{{#if basePowerPoints}}
|
||
<p><strong>Base Power Points</strong>: {{basePowerPoints}}
|
||
{{/if}}
|
||
{{#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}}
|
||
<label class="checkbox">
|
||
<input type="checkbox" name="{{id}}" {{checked default}} />
|
||
{{#if epic}}⭐ {{/if}}{{name}} ({{numberFormat value decimals=0 sign=true}})
|
||
</label>
|
||
{{/if}}
|
||
{{#if isText}}
|
||
<label for="{{id}}">{{#if epic}}⭐ {{/if}}{{name}}:</label>
|
||
<input name="{{id}}" type="text" value="{{default}}">
|
||
{{/if}}
|
||
{{#if isNumber}}
|
||
<label for="{{id}}">{{#if epic}}⭐ {{/if}}{{name}}:</label>
|
||
<input name="{{id}}" type="number" value="{{default}}" step="1" min="0">
|
||
{{/if}}
|
||
{{#if isSelect}}
|
||
<label>{{#if epic}}⭐ {{/if}}{{name}}:</label>
|
||
<select name="{{id}}">{{selectOptions choices selected=default}}</select>
|
||
{{/if}}
|
||
{{#if isRadio}}
|
||
{{#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>
|
||
{{/each}}
|
||
</footer>
|
||
</form>
|