start converting main power dialog to applicationv2
This commit is contained in:
@@ -1,64 +1,54 @@
|
||||
<form class="flexcol"><!-- vim: set ft=handlebars.html: -->
|
||||
<header class="sheet-header flexrow">
|
||||
<img src="{{icon}}" height="64" width="64" title="{{name}} Effect" alt=" " />
|
||||
<div class="standard-form"><!-- vim: set ft=handlebars.html: -->
|
||||
<header class="flexrow">
|
||||
<img src="{{icon}}" height="64" width="64" class="flex0" title="{{name}} Effect" alt=" " />
|
||||
<section class="flexcol">
|
||||
<h2>{{name}} Effect</h2>
|
||||
<p>Apply the affects of {{name}}.</p>
|
||||
</section>
|
||||
</header>
|
||||
{{#if extraDescription }}
|
||||
<div>
|
||||
{{{extraDescription}}}
|
||||
</div>
|
||||
<div>
|
||||
{{{extraDescription}}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#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>({{#if recipients.epic}}⭐ {{/if}}{{recipients.text}}
|
||||
{{recipients.cost}}pp each × {{recipients.count}} = {{recipients.total}})
|
||||
{{/if}}
|
||||
</p>
|
||||
<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>({{#if recipients.epic}}⭐ {{/if}}{{recipients.text}}
|
||||
{{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}}
|
||||
{{#if value}}({{numberFormat value decimals=0 sign=true}}){{/if}}
|
||||
</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}}"
|
||||
{{#if step}}step="{{step}}"{{/if}}
|
||||
{{#if min}}min="{{min}}"{{/if}}
|
||||
{{#if max}}max="{{max}}"{{/if}}
|
||||
>
|
||||
{{/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>
|
||||
<div class="form-group">
|
||||
{{#if isCheckbox}}
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="{{id}}" {{checked default}} />
|
||||
{{#if epic}}⭐ {{/if}}{{name}}
|
||||
{{#if value}}({{numberFormat value decimals=0 sign=true}}){{/if}}
|
||||
</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}}" {{#if step}}step="{{step}}" {{/if}} {{#if min}}min="{{min}}"
|
||||
{{/if}} {{#if max}}max="{{max}}" {{/if}}>
|
||||
{{/if}}
|
||||
{{#if isSelect}}
|
||||
<label for="{{id}}">{{#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>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user