Create PlayerSheet
This commit is contained in:
parent
e0578d425d
commit
e224f819a3
11 changed files with 252 additions and 0 deletions
32
templates/PlayerSheet/attributes.hbs
Normal file
32
templates/PlayerSheet/attributes.hbs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{{#if hasAttributes}}
|
||||
<div class="attributes">
|
||||
{{#each attrs as | attr |}}
|
||||
<fieldset>
|
||||
<legend>
|
||||
{{ attr.name }}
|
||||
</legend>
|
||||
<div class="attr-range">
|
||||
<input
|
||||
type="number"
|
||||
class="attr-range__value"
|
||||
name="{{attr.path}}.value"
|
||||
value="{{attr.value}}"
|
||||
aria-label="Current value"
|
||||
>
|
||||
{{#if attr.isRange}}
|
||||
<span aria-hidden="true">/</span>
|
||||
<input
|
||||
type="number"
|
||||
class="attr-range__max"
|
||||
name="{{attr.path}}.max"
|
||||
value="{{attr.max}}"
|
||||
aria-label="Maximum value"
|
||||
>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{else}}
|
||||
<template />
|
||||
{{/if}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue