mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 21:04:16 +02:00
Change to uuid approach
This commit is contained in:
parent
20f42e8a0d
commit
a5db9371c6
8 changed files with 44 additions and 73 deletions
|
|
@ -41,19 +41,8 @@
|
|||
data-item-uuid={{subclass.uuid}}
|
||||
data-tooltip='{{localize "DAGGERHEART.UI.Tooltip.openItemWorld"}}'
|
||||
>
|
||||
<i class="fa-solid fa-globe"></i>
|
||||
<i class="fa-solid fa-globe" inert></i>
|
||||
</a>
|
||||
{{#if document.system.subclasses}}
|
||||
<a
|
||||
class='effect-control'
|
||||
data-action='removeItemFromCollection'
|
||||
data-target="subclasses"
|
||||
data-uuid="{{subclass.uuid}}"
|
||||
data-tooltip='{{localize "CONTROLS.CommonDelete"}}'
|
||||
>
|
||||
<i class='fas fa-trash'></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -3,15 +3,6 @@
|
|||
data-tab='{{tabs.settings.id}}'
|
||||
data-group='{{tabs.settings.group}}'
|
||||
>
|
||||
<fieldset class="two-columns">
|
||||
<legend>{{localize "DAGGERHEART.GENERAL.general"}}</legend>
|
||||
<span>{{localize "DAGGERHEART.ITEMS.FIELDS.identifier.label"}}</span>
|
||||
<div class="flexrow">
|
||||
{{formInput systemFields.identifier value=source.system.identifier}}
|
||||
<button class="plain inline-control icon fa-solid fa-rotate-right" data-action="resetIdentifier"></button>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="two-columns even">
|
||||
<legend>{{localize tabs.settings.label}}</legend>
|
||||
{{formGroup systemFields.hitPoints value=source.system.hitPoints localize=true}}
|
||||
|
|
|
|||
|
|
@ -5,11 +5,23 @@
|
|||
>
|
||||
<fieldset>
|
||||
<legend>{{localize "TYPES.Item.class"}}</legend>
|
||||
{{#if document.system.classLink.identifier}}
|
||||
{{#if class}}
|
||||
<div class="feature-list">
|
||||
<li class="feature-line">
|
||||
<img class="image" src="{{document.system.classLink.img}}" />
|
||||
<span>{{document.system.classLink.name}}</span>
|
||||
<img class="image" src="{{class.img}}" />
|
||||
<span>{{class.name}} {{#if class.missing}}<i class="fa-solid fa-link-slash" inert></i>{{/if}}</span>
|
||||
{{#unless class.missing}}
|
||||
<div class='controls'>
|
||||
<a
|
||||
class='effect-control'
|
||||
data-action='editDoc'
|
||||
data-item-uuid={{class.uuid}}
|
||||
data-tooltip='{{localize "DAGGERHEART.UI.Tooltip.openItemWorld"}}'
|
||||
>
|
||||
<i class="fa-solid fa-globe" inert></i>
|
||||
</a>
|
||||
</div>
|
||||
{{/unless}}
|
||||
</li>
|
||||
</div>
|
||||
{{else}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue