Get the PlayerSheet working and actually saving data, using the data models instead of the template.json
This commit is contained in:
parent
6e3510ddd4
commit
58facf1490
11 changed files with 339 additions and 234 deletions
|
|
@ -1,5 +1,8 @@
|
|||
<select>
|
||||
{{#each (dotdungeon-array "d4" "d6" "d8" "d10" "d12" "d20")}}
|
||||
<option value="{{this}}">{{this}}</option>
|
||||
{{/each}}
|
||||
<select name="{{fieldToUpdate}}">
|
||||
{{#select selected}}
|
||||
<option value="">---</option>
|
||||
{{#each (dotdungeon-array "d4" "d6" "d8" "d10" "d12" "d20")}}
|
||||
<option value="{{this}}">{{this}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
|
|
@ -2,5 +2,5 @@
|
|||
<button class="roll-stat" data-stat="{{name}}">
|
||||
{{localize (concat "dotdungeon.stat." name)}}
|
||||
</button>
|
||||
{{> dotdungeon.dice_choice }}
|
||||
{{> dotdungeon.dice_choice fieldToUpdate=(concat "system.stats." name) selected=value }}
|
||||
</label>
|
||||
Loading…
Add table
Add a link
Reference in a new issue