mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
enhance consumable and miscellaneous sheets (#68)
This commit is contained in:
parent
c306c95e6b
commit
6fcfce227a
14 changed files with 190 additions and 179 deletions
|
|
@ -1,36 +0,0 @@
|
|||
<div>
|
||||
<header class="flexcol">
|
||||
<div class="title-container">
|
||||
<img class="flex0" src="{{document.img}}" data-edit="img" data-action="onEditImage" title="{{document.name}}" height="64" width="64"/>
|
||||
<div class="title-name">
|
||||
{{formInput fields.name value=source.name rootId=partId}}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="sheet-body">
|
||||
<div class="flexrow item-container">
|
||||
<div class="item-sidebar">
|
||||
{{formField systemFields.quantity value=source.system.quantity label=(localize "DAGGERHEART.Sheets.Consumable.Quantity") }}
|
||||
{{formField systemFields.consumeOnUse value=source.system.consumeOnUse label=(localize "DAGGERHEART.Sheets.Consumable.ConsumeOnUse")}}
|
||||
{{!-- <div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Consumable.Quantity"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="system.quantity" value="{{item.system.quantity}}" data-dtype="Number" />
|
||||
</div>
|
||||
</div> --}}
|
||||
{{!-- <div class="form-group flexrow">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Consumable.ConsumeOnUse"}}</label>
|
||||
<div class="form-fields flex0">
|
||||
<input type="checkbox" name="system.consumeOnUse" {{checked item.system.consumeOnUse}} />
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
<div>
|
||||
<h2 class="flex-col-centered">{{localize "DAGGERHEART.General.Description"}}</h2>
|
||||
{{formInput systemFields.description value=source.system.description enriched=source.system.description localize=true toggled=true}}
|
||||
{{!-- {{editor item.system.description target="system.description" button=true}} --}}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
10
templates/sheets/items/consumable/header.hbs
Normal file
10
templates/sheets/items/consumable/header.hbs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<header class='item-sheet-header'>
|
||||
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
|
||||
<div class='item-info'>
|
||||
<line-div></line-div>
|
||||
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
|
||||
<div class='item-description'>
|
||||
<h3>{{localize 'TYPES.Item.consumable'}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
14
templates/sheets/items/consumable/settings.hbs
Normal file
14
templates/sheets/items/consumable/settings.hbs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<section
|
||||
class='tab {{tabs.settings.cssClass}} {{tabs.settings.id}}'
|
||||
data-tab='{{tabs.settings.id}}'
|
||||
data-group='{{tabs.settings.group}}'
|
||||
>
|
||||
<fieldset class="two-columns">
|
||||
<legend>{{localize tabs.settings.label}}</legend>
|
||||
<span>{{localize "DAGGERHEART.Sheets.Consumable.Quantity"}}</span>
|
||||
{{formField systemFields.quantity value=source.system.quantity}}
|
||||
|
||||
<span>{{localize "DAGGERHEART.Sheets.Consumable.ConsumeOnUse"}}</span>
|
||||
{{formField systemFields.consumeOnUse value=source.system.consumeOnUse}}
|
||||
</fieldset>
|
||||
</section>
|
||||
10
templates/sheets/items/miscellaneous/header.hbs
Normal file
10
templates/sheets/items/miscellaneous/header.hbs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<header class='item-sheet-header'>
|
||||
<img class='profile' src='{{source.img}}' data-action='editImage' data-edit='img' />
|
||||
<div class='item-info'>
|
||||
<line-div></line-div>
|
||||
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
|
||||
<div class='item-description'>
|
||||
<h3>{{localize 'TYPES.Item.miscellaneous'}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
11
templates/sheets/items/miscellaneous/settings.hbs
Normal file
11
templates/sheets/items/miscellaneous/settings.hbs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<section
|
||||
class='tab {{tabs.settings.cssClass}} {{tabs.settings.id}}'
|
||||
data-tab='{{tabs.settings.id}}'
|
||||
data-group='{{tabs.settings.group}}'
|
||||
>
|
||||
<fieldset class="two-columns">
|
||||
<legend>{{localize tabs.settings.label}}</legend>
|
||||
<span>{{localize "DAGGERHEART.Sheets.Miscellaneous.Quantity"}}</span>
|
||||
{{formField systemFields.quantity value=source.system.quantity}}
|
||||
</fieldset>
|
||||
</section>
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
<div>
|
||||
<header class="flexcol">
|
||||
<div class="title-container">
|
||||
<img class="flex0" src="{{source.img}}" data-edit="img" data-action="onEditImage" title="{{source.name}}" height="64" width="64"/>
|
||||
<div class="title-name">
|
||||
{{formInput fields.name value=source.name rootId=partId}}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="sheet-body">
|
||||
<div class="flexrow item-container">
|
||||
<div class="item-sidebar">
|
||||
{{formField systemFields.quantity value=source.system.quantity label=(localize "DAGGERHEART.Sheets.Miscellaneous.Quantity")}}
|
||||
{{!-- <div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Miscellaneous.Quantity"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="system.quantity" value="{{item.system.quantity}}" data-dtype="Number" />
|
||||
</div>
|
||||
</div> --}}
|
||||
</div>
|
||||
<div>
|
||||
<h2 class="flex-col-centered">{{localize "DAGGERHEART.General.Description"}}</h2>
|
||||
{{formInput systemFields.description value=source.system.description enriched=source.system.description localize=true toggled=true}}
|
||||
{{!-- {{editor item.system.description target="system.description" button=true}} --}}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue