update summonCosts application

This commit is contained in:
2025-06-09 22:12:42 -05:00
parent cba485285d
commit 3187d625f0
2 changed files with 50 additions and 34 deletions
+5 -20
View File
@@ -1,8 +1,4 @@
<form class='flexcol'>
<!-- vim: set ft=handlebars.html:-->
<header class='sheet-header'>
<h2>Set Summon Parameters</h2>
</header>
<section>
<table class="mbForm">
<thead>
<tr>
@@ -13,7 +9,7 @@
</tr>
<tr>
{{#each powers}}
<th>{{this}}?</th>
<th>{{this}}?</th>
{{/each}}
</tr>
</thead>
@@ -22,23 +18,12 @@
<tr>
<td>{{actor.folder}}</td>
<td>{{actor.name}}</td>
<td><input type="number"
value="{{summon.cost}}"
name="{{actor.fullName}}:;:cost"
step="1"
min="0"/></td>
<td><input type="number" value="{{summon.cost}}" name="{{actor.fullName}}:;:cost" step="1" min="0" /></td>
{{#each summon.powers}}
<td align="center"><input
type="checkbox"
name="{{../actor.fullName}}:;:{{power}}"
{{checked value}}></td>
<td align="center"><input type="checkbox" name="{{../actor.fullName}}:;:{{power}}" {{checked value}}></td>
{{/each}}
</tr>
{{/each}}
</tbody>
</table>
<footer class="sheet-footer flexrow">
<button type="submit" name="submit" value="submit">Submit</button>
<button type="submit" name="submit" value="cancel">Cancel</button>
</footer>
</form>
</section>