38 lines
1.7 KiB
HTML
38 lines
1.7 KiB
HTML
<section class="flexcol">
|
|
{{#each system.stats as |stat key|}}
|
|
<Fieldset class="flexrow">
|
|
<legend><input type="text" value="{{capitalizeFirst stat.name}}" name="system.stats.{{key}}.name"></legend>
|
|
<div class="flexrow flex-group-center">
|
|
<!-- Die type dropdown -->
|
|
<select name="system.stats.{{key}}.value">
|
|
<option value="d20" {{#if (eq stat.value 'd20')}}selected{{/if}}>d20</option>
|
|
<option value="d12" {{#if (eq stat.value 'd12')}}selected{{/if}}>d12</option>
|
|
<option value="d10" {{#if (eq stat.value 'd10')}}selected{{/if}}>d10</option>
|
|
<option value="d8" {{#if (eq stat.value 'd8')}}selected{{/if}}>d8</option>
|
|
<option value="d6" {{#if (eq stat.value 'd6')}}selected{{/if}}>d6</option>
|
|
<option value="d4" {{#if (eq stat.value 'd4')}}selected{{/if}}>d4</option>
|
|
</select>
|
|
|
|
<!-- Stat rolling and input -->
|
|
<Fieldset class="flexrow flex-group-center">
|
|
<legend>Stat</legend>
|
|
<span class="ability-mod rollable" data-roll="1{{stat.value}}x+{{stat.stat}}" data-label="Stat Roll for {{key}}" data-key="{{key}}">
|
|
<i class="fas fa-dice-d20"></i>
|
|
</span>
|
|
<input type="number" name="system.stats.{{key}}.stat" value="{{stat.stat}}" data-dtype="Number"/>
|
|
</Fieldset>
|
|
|
|
<!-- Magic rolling and input
|
|
<Fieldset class="flexrow flex-group-center">
|
|
<legend>Magic</legend>
|
|
<span class="ability-mod rollable" data-roll="1{{stat.value}}x+1d4x+{{stat.stat}}" data-label="Magic Roll for {{key}}" data-key="{{key}}">
|
|
<i class="fas fa-dice-d20"></i>
|
|
</span>
|
|
</Fieldset>-->
|
|
|
|
</div>
|
|
|
|
</Fieldset>
|
|
{{/each}}
|
|
</section>
|