foundry-vtt-system-midgard5/templates/sheets/item/rolls.hbs

22 lines
932 B
Handlebars

<table class="rolls-table">
<thead>
<tr>
<th class="col-enabled"></th>
<th class="col-label">{{localize "midgard5.label"}}</th>
<th class="col-formula">{{localize "midgard5.formula"}}</th>
<th class="col-delete"><button class="roll-create">+</button></th>
</tr>
</thead>
<tbody>
{{#each data.rolls.formulas as |roll rollIndex|}}
{{#if roll}}
<tr data-roll="{{rollIndex}}">
<td><input type="checkbox" name="data.rolls.formulas.{{rollIndex}}.enabled" {{checked roll.enabled}} /></td>
<td><input type="text" name="data.rolls.formulas.{{rollIndex}}.label" value="{{roll.label}}" data-dtype="String" /></td>
<td><input type="text" name="data.rolls.formulas.{{rollIndex}}.formula" value="{{roll.formula}}" data-dtype="String" /></td>
<td class="fixed-value"><a class="roll-delete" title="Delete Roll"><i class="fas fa-trash"></i></a></td>
</tr>
{{/if}}
{{/each}}
</tbody>
</table>