Add a helper application to manage attributes on characters

This commit is contained in:
Oliver-Akins 2025-06-29 13:35:11 -06:00
parent 91ccd93814
commit 6b81d8d83b
10 changed files with 298 additions and 12 deletions

View 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>