Implement the Attribute sheet for editing
This commit is contained in:
parent
599789ec13
commit
e8c73de6bd
8 changed files with 242 additions and 0 deletions
11
templates/AttributeItemSheet/header.hbs
Normal file
11
templates/AttributeItemSheet/header.hbs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<header class="sheet-header bordered">
|
||||
<input
|
||||
type="text"
|
||||
class="large"
|
||||
name="name"
|
||||
value="{{item.name}}"
|
||||
title="{{item.name}}"
|
||||
{{disabled (not meta.editable)}}
|
||||
placeholder="{{localize "Name"}}"
|
||||
>
|
||||
</header>
|
||||
41
templates/AttributeItemSheet/settings.hbs
Normal file
41
templates/AttributeItemSheet/settings.hbs
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<div>
|
||||
<div class="property">
|
||||
<label for="{{meta.idp}}-key">
|
||||
Key
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
id="{{meta.idp}}-key"
|
||||
name="system.key"
|
||||
value="{{system.key}}"
|
||||
>
|
||||
<p class="hint">
|
||||
This is the computer-friendly identifier for the attribute.
|
||||
When accessing the attribute in rolls, this is the name you will
|
||||
need to use. Changing this WILL break any existing macros you have.
|
||||
</p>
|
||||
</div>
|
||||
<div class="property">
|
||||
<label for="{{meta.idp}}-aboveTheFold">
|
||||
Always Visible?
|
||||
</label>
|
||||
<taf-toggle
|
||||
id="{{meta.idp}}-aboveTheFold"
|
||||
name="system.aboveTheFold"
|
||||
{{checked system.aboveTheFold}}
|
||||
></taf-toggle>
|
||||
</div>
|
||||
{{#if (not system.aboveTheFold)}}
|
||||
<div class="property">
|
||||
<label for="{{meta.idp}}-group">
|
||||
Group
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
id="{{meta.idp}}-group"
|
||||
name="system.group"
|
||||
value="{{system.group}}"
|
||||
>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
37
templates/AttributeItemSheet/value.hbs
Normal file
37
templates/AttributeItemSheet/value.hbs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<div class="value-controls">
|
||||
<label for="{{meta.idp}}-min">
|
||||
Minimum
|
||||
</label>
|
||||
<input
|
||||
type="number"
|
||||
id="{{meta.idp}}-min"
|
||||
name="system.min"
|
||||
value="{{system.min}}"
|
||||
{{#if system.isRange}}placeholder="0"{{/if}}
|
||||
{{disabled (not meta.editable)}}
|
||||
>
|
||||
|
||||
<label for="{{meta.idp}}-value">
|
||||
Current Value
|
||||
</label>
|
||||
<input
|
||||
type="number"
|
||||
id="{{meta.idp}}-value"
|
||||
name="system.value"
|
||||
value="{{system.value}}"
|
||||
min="{{system.min}}"
|
||||
max="{{system.max}}"
|
||||
{{disabled (not meta.editable)}}
|
||||
>
|
||||
|
||||
<label for="{{meta.idp}}-max">
|
||||
Maximum
|
||||
</label>
|
||||
<input
|
||||
type="number"
|
||||
id="{{meta.idp}}-max"
|
||||
name="system.max"
|
||||
value="{{system.max}}"
|
||||
{{disabled (not meta.editable)}}
|
||||
>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue