mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Improved the config app for Downtime activities. You can now create/edit/remove actions on them
This commit is contained in:
parent
42a705a870
commit
c3d71f0c39
18 changed files with 275 additions and 196 deletions
|
|
@ -1,17 +0,0 @@
|
|||
<div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "Icon"}}</label>
|
||||
|
||||
<div class="form-field">
|
||||
<input type="text" name="icon" value="{{icon}}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
<legend>{{localize "Description"}}</legend>
|
||||
|
||||
<prose-mirror name="description" value="{{description}}">
|
||||
{{{ enrichedDescription }}}
|
||||
</prose-mirror>
|
||||
</fieldset>
|
||||
</div>
|
||||
15
templates/settings/downtime-config/actions.hbs
Normal file
15
templates/settings/downtime-config/actions.hbs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<section
|
||||
class='tab {{tabs.actions.cssClass}} {{tabs.actions.id}}'
|
||||
data-tab='{{tabs.actions.id}}'
|
||||
data-group='{{tabs.actions.group}}'
|
||||
>
|
||||
<fieldset class="one-column">
|
||||
<legend>{{localize "DAGGERHEART.GENERAL.Action.plural"}} <a><i class="fa-solid fa-plus icon-button" data-action="addItem"></i></a></legend>
|
||||
|
||||
<div class="settings-items">
|
||||
{{#each move.actions as |action index|}}
|
||||
{{> "systems/daggerheart/templates/settings/components/settings-item-line.hbs" id=index }}
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</section>
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
<section class='tab-form-footer'>
|
||||
<section class='tab-form-footer spaced'>
|
||||
<button data-action="close">{{localize "Cancel"}}</button>
|
||||
<button data-action="saveForm"><i class="fa-solid fa-floppy-disk"></i> {{localize "Save"}}</button>
|
||||
</section>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<header class='settings-item-header'>
|
||||
<img class='profile' src='{{this.img}}' data-action='editImage' data-edit='img' />
|
||||
<img class='profile' src='{{move.img}}' data-action='editImage' data-edit='img' />
|
||||
<div class='item-info'>
|
||||
<h1 class='item-name'><input type='text' name='name' value='{{this.name}}' /></h1>
|
||||
<h1 class='item-name'><input type='text' name='name' value='{{move.name}}' /></h1>
|
||||
</div>
|
||||
</header>
|
||||
19
templates/settings/downtime-config/main.hbs
Normal file
19
templates/settings/downtime-config/main.hbs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<section
|
||||
class='tab {{tabs.main.cssClass}} {{tabs.main.id}}'
|
||||
data-tab='{{tabs.main.id}}'
|
||||
data-group='{{tabs.main.group}}'
|
||||
>
|
||||
<fieldset class="one-column">
|
||||
<legend>{{localize "Icon"}}</legend>
|
||||
|
||||
<input type="text" name="icon" value="{{move.icon}}" />
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column">
|
||||
<legend>{{localize "Description"}}</legend>
|
||||
|
||||
<prose-mirror name="description" value="{{move.description}}">
|
||||
{{{ move.enrichedDescription }}}
|
||||
</prose-mirror>
|
||||
</fieldset>
|
||||
</section>
|
||||
|
|
@ -12,6 +12,6 @@
|
|||
</fieldset>
|
||||
<fieldset class="action-category">
|
||||
<legend>{{localize "DAGGERHEART.GENERAL.description"}}</legend>
|
||||
{{formInput fields.description value=source.description name="description" }}
|
||||
{{formInput fields.description value=source.description name="description" enriched=source.description toggled=true }}
|
||||
</fieldset>
|
||||
</section>
|
||||
|
|
@ -4,6 +4,11 @@
|
|||
data-group='{{tabs.actions.group}}'
|
||||
>
|
||||
|
||||
<div class="item-tags">
|
||||
<div class="tag">{{localize (concat 'DAGGERHEART.ACTIONS.TYPES.' item.type '.name')}}</div>
|
||||
<div class="tag">{{localize (concat 'DAGGERHEART.CONFIG.ActionType.' item.actionType)}}</div>
|
||||
</div>
|
||||
|
||||
{{> 'daggerheart.inventory-items'
|
||||
title='DAGGERHEART.GENERAL.Action.plural'
|
||||
collection=document.system.actions
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<section class='tab-form-footer'>
|
||||
<section class='tab-form-footer padded'>
|
||||
<button type="submit"><i class="fa-solid fa-floppy-disk"></i> {{localize "Save"}}</button>
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue