Add a helper application to manage attributes on characters
This commit is contained in:
parent
91ccd93814
commit
6b81d8d83b
10 changed files with 298 additions and 12 deletions
35
templates/AttributeManager/attribute-list.hbs
Normal file
35
templates/AttributeManager/attribute-list.hbs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<div class="attributes">
|
||||
{{#each attrs as |attr|}}
|
||||
<div
|
||||
class="attribute"
|
||||
data-attribute="{{ attr.id }}"
|
||||
>
|
||||
{{#if attr.isNew}}
|
||||
<input
|
||||
type="text"
|
||||
data-bind="{{ attr.id }}.name"
|
||||
value="{{ attr.name }}"
|
||||
placeholder="Attribute Name..."
|
||||
>
|
||||
{{else}}
|
||||
<span>{{ attr.name }}</span>
|
||||
{{/if}}
|
||||
<label>
|
||||
Has Maximum?
|
||||
<input
|
||||
type="checkbox"
|
||||
data-bind="{{ attr.id }}.isRange"
|
||||
{{ checked attr.isRange }}
|
||||
>
|
||||
</label>
|
||||
<button
|
||||
type="button"
|
||||
data-action="removeAttribute"
|
||||
>
|
||||
Delete
|
||||
</button>
|
||||
</div>
|
||||
{{else}}
|
||||
<p>No attributes yet</p>
|
||||
{{/each}}
|
||||
</div>
|
||||
13
templates/AttributeManager/controls.hbs
Normal file
13
templates/AttributeManager/controls.hbs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<div class="controls">
|
||||
<button
|
||||
type="button"
|
||||
data-action="addNew"
|
||||
>
|
||||
Add New Attribute
|
||||
</button>
|
||||
<button
|
||||
type="submit"
|
||||
>
|
||||
Save and Close
|
||||
</button>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue