Get the basic listing of attributes for the tab
This commit is contained in:
parent
c2b2376699
commit
7b127069b7
6 changed files with 95 additions and 19 deletions
|
|
@ -1,10 +1,16 @@
|
|||
<li
|
||||
class="item"
|
||||
class="attribute"
|
||||
data-item-uuid="{{uuid}}"
|
||||
>
|
||||
<div class="summary">
|
||||
<div class="title">
|
||||
<span class="name">{{ name }}</span>
|
||||
</div>
|
||||
<div class="title grow">
|
||||
<span class="name">{{ name }}</span>
|
||||
</div>
|
||||
<input
|
||||
type="number"
|
||||
id="{{uuid}}-value"
|
||||
data-foreign-name="system.value"
|
||||
value="{{ system.value }}"
|
||||
min="{{ system.min }}"
|
||||
max="{{ system.max }}"
|
||||
>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -3,5 +3,18 @@
|
|||
data-group="primary"
|
||||
data-tab="attributes"
|
||||
>
|
||||
Attribute Tab
|
||||
{{#each attrGroups as |group|}}
|
||||
<section>
|
||||
<div class="embedded-list-header">
|
||||
<h3 class="grow">
|
||||
{{ group.name }}
|
||||
</h3>
|
||||
</div>
|
||||
<ul class="embedded-list">
|
||||
{{#each group.attrs as |attr|}}
|
||||
{{> (systemFilePath "templates/PlayerSheet/tabs/attributes/attribute.hbs") attr }}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</section>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
</section>
|
||||
{{#each itemGroups as | group |}}
|
||||
<section>
|
||||
<div class="item-list-header">
|
||||
<div class="embedded-list-header">
|
||||
{{#if @root.meta.editable}}
|
||||
<button
|
||||
data-action="createEmbeddedItem"
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
{{ group.weight }}
|
||||
</span>
|
||||
</div>
|
||||
<ul class="item-list">
|
||||
<ul class="embedded-list">
|
||||
{{#each group.items as |item|}}
|
||||
{{> (systemFilePath "templates/PlayerSheet/tabs/items/item.hbs") item }}
|
||||
{{/each}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue