mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-14 12:41:07 +01:00
Fixed up data model and a basic placeholder template
This commit is contained in:
parent
746e0f239a
commit
ece00c4fcb
15 changed files with 300 additions and 145 deletions
9
templates/sheets/actors/environment/header.hbs
Normal file
9
templates/sheets/actors/environment/header.hbs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<header class='item-card-header'>
|
||||
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
|
||||
<div class='item-info'>
|
||||
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
|
||||
<div class='item-description'>
|
||||
<h3>{{localize 'TYPES.Actor.environment'}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
16
templates/sheets/actors/environment/information.hbs
Normal file
16
templates/sheets/actors/environment/information.hbs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<section
|
||||
class='tab {{tabs.information.cssClass}} {{tabs.information.id}}'
|
||||
data-tab='{{tabs.information.id}}'
|
||||
data-group='{{tabs.information.group}}'
|
||||
>
|
||||
<fieldset>
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Environment.description"}}</legend>
|
||||
|
||||
{{formInput systemFields.description value=source.system.description }}
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Environment.impulses"}}</legend>
|
||||
|
||||
{{formInput systemFields.impulses value=source.system.impulses }}
|
||||
</fieldset>
|
||||
</section>
|
||||
37
templates/sheets/actors/environment/main.hbs
Normal file
37
templates/sheets/actors/environment/main.hbs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<section
|
||||
class='tab {{tabs.main.cssClass}} {{tabs.main.id}}'
|
||||
data-tab='{{tabs.main.id}}'
|
||||
data-group='{{tabs.main.group}}'
|
||||
>
|
||||
<fieldset class="two-columns even">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Environment.general"}}</legend>
|
||||
|
||||
{{formGroup systemFields.tier value=source.system.tier localize=true }}
|
||||
{{formGroup systemFields.type value=source.system.type localize=true }}
|
||||
{{formGroup systemFields.difficulty value=source.system.difficulty localize=true }}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Environment.potentialAdversaries.label"}}<a><i class="fa-solid fa-plus icon-button" data-action="addAdversary"></i></a></legend>
|
||||
|
||||
{{#each source.system.potentialAdversaries}}
|
||||
<fieldset class="potential-adversary-container" data-potential-adversary="{{@key}}">
|
||||
<legend><input name="{{concat "system.potentialAdversaries." id ".label" }}" value="{{this.label}}" /><i class="fa-solid fa-trash" data-action="deleteProperty" data-path="system.potentialAdversaries" id={{@key}}></i></legend>
|
||||
{{#if (eq (length this.adversaries) 0)}}
|
||||
<div class="adversary-placeholder">{{localize "DAGGERHEART.Sheets.Environment.potentialAdversaries.placeholder"}}</div>
|
||||
{{else}}
|
||||
<div class="adversaries-container">
|
||||
{{#each this.adversaries as |adversary id|}}
|
||||
<div class="adversary-container" data-action="viewAdversary" data-potential-adversary="{{@../key}}" data-adversary="{{id}}">{{adversary.name}}</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</fieldset>
|
||||
{{/each}}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column">
|
||||
<legend>{{localize "DAGGERHEART.Sheets.Environment.features.label"}}<a><i class="fa-solid fa-plus icon-button" data-action="addFeature"></i></a></legend>
|
||||
|
||||
</fieldset>
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue