fix 263 - add editor-host to other sheets
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<form class="{{cssClass}} {{getCharacterSheetStyle}}" autocomplete="off">
|
||||
<header class="">
|
||||
<div class="armor-sheet-grid-2col">
|
||||
<div class="armor-sheet-grid-2col">
|
||||
|
||||
<img class="item-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
<img class="item-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
|
||||
|
||||
<div class="armor-sheet-horizontal-grid-2col">
|
||||
<div class="armor-sheet-horizontal-grid-2col">
|
||||
|
||||
<span class="resource-label">{{localize 'DG.Bonds.Name'}}:</span>
|
||||
<input name="name" type="text" value="{{item.name}}" placeholder="{{localize 'DG.ItemWindow.Armor.NamePlaceholder'}}"/></h1>
|
||||
|
||||
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Armor.Expense'}}:</span>
|
||||
<select name="system.expense" >
|
||||
<option {{#if_eq item.system.expense 'NA'}}selected{{/if_eq}} value="NA">{{localize 'DG.Gear.Expense.NA'}}</option>
|
||||
@@ -18,18 +18,18 @@
|
||||
<option {{#if_eq item.system.expense 'Major'}}selected{{/if_eq}} value="Major">{{localize 'DG.Gear.Expense.Major'}}</option>
|
||||
<option {{#if_eq item.system.expense 'Extreme'}}selected{{/if_eq}} value="Extreme">{{localize 'DG.Gear.Expense.Extreme'}}</option>
|
||||
</select>
|
||||
|
||||
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Armor.Equipped'}}:</span>
|
||||
<input class="labeled-resource-checkbox" type="checkbox" name="system.equipped" {{checked item.system.equipped}} data-dtype="Boolean" />
|
||||
|
||||
<input class="labeled-resource-checkbox" type="checkbox" name="system.equipped" {{checked item.system.equipped}} data-dtype="Boolean" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="armor-sheet-secondary-grid-2col">
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Armor.ArmorRating'}}:</span>
|
||||
<input class="item-sheet-short-input" type="text" name="system.protection" value="{{item.system.protection}}" data-dtype="Number"/>
|
||||
</div>
|
||||
|
||||
|
||||
</header>
|
||||
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
@@ -42,7 +42,9 @@
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab top-div-border" data-group="primary" data-tab="description">
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
<div class="editor-host">
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
||||
@@ -24,8 +24,7 @@
|
||||
</nav>
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body" style="max-height: 75%;">
|
||||
|
||||
<section class="sheet-body">
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab top-div-border" data-group="primary" data-tab="description">
|
||||
<div class="editor-host">
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
<div class="gear-sheet-grid-2col">
|
||||
|
||||
<img class="item-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
|
||||
|
||||
<div class="gear-sheet-horizontal-grid-2col">
|
||||
|
||||
|
||||
<span class="resource-label">{{localize 'DG.Bonds.Name'}}:</span>
|
||||
<input name="name" type="text" value="{{item.name}}" placeholder="{{localize 'DG.ItemWindow.Gear.NamePlaceholder'}}"/>
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Gear.Expense'}}:</span>
|
||||
<select name="system.expense" >
|
||||
<option {{#if_eq item.system.expense 'NA'}}selected{{/if_eq}} value="NA">{{localize 'DG.Gear.Expense.NA'}}</option>
|
||||
@@ -19,19 +19,19 @@
|
||||
<option {{#if_eq item.system.expense 'Major'}}selected{{/if_eq}} value="Major">{{localize 'DG.Gear.Expense.Major'}}</option>
|
||||
<option {{#if_eq item.system.expense 'Extreme'}}selected{{/if_eq}} value="Extreme">{{localize 'DG.Gear.Expense.Extreme'}}</option>
|
||||
</select>
|
||||
|
||||
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Gear.Equipped'}}:</span>
|
||||
<input class="labeled-resource-checkbox" type="checkbox" name="system.equipped" {{checked item.system.equipped}} data-dtype="Boolean" />
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</header>
|
||||
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
<nav class="sheet-tabs tabs" data-group="primary">
|
||||
<!-- <a class="item" data-tab="attributes">{{localize 'DG.ItemWindow.Gear.Attributes'}}</a> -->
|
||||
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Gear.Description'}}</a>
|
||||
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Gear.Description'}}</a>
|
||||
</nav>
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
@@ -39,8 +39,9 @@
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab top-div-border" data-group="primary" data-tab="description">
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
<div class="editor-host">
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<form class="{{cssClass}} {{getCharacterSheetStyle}}" autocomplete="off">
|
||||
|
||||
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
<nav class="sheet-tabs tabs" data-group="primary">
|
||||
<a class="item item-toggle" data-tab="attributes">{{localize 'DG.ItemWindow.Motivations.Attributes'}}</a>
|
||||
@@ -10,53 +10,55 @@
|
||||
<section class="sheet-body">
|
||||
|
||||
<div class="tab attributes top-div-border" data-group="primary" data-tab="attributes">
|
||||
|
||||
|
||||
<div class="motivation-sheet-horizontal-grid-2col">
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.IsDisorder'}}:</span>
|
||||
<input type="checkbox" name="system.crossedOut" {{checked item.system.crossedOut}} data-dtype="Boolean"
|
||||
<input type="checkbox" name="system.crossedOut" {{checked item.system.crossedOut}} data-dtype="Boolean"
|
||||
title="{{localize 'DG.ItemWindow.Motivations.IsDisorderTooltip'}}"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.Motivation'}}:</span>
|
||||
<input type="text" name="name" value="{{item.name}}" placeholder="" data-dtype="String"
|
||||
|
||||
|
||||
title="{{localize 'DG.ItemWindow.Motivations.MotivationNameTooltip'}}"
|
||||
|
||||
|
||||
{{!-- If a motivation has been crossed off after a breaking point, do a strikeout on it and disable it. --}}
|
||||
{{#if item.system.crossedOut}}
|
||||
style="text-decoration: line-through;"
|
||||
disabled
|
||||
{{/if}}
|
||||
/>
|
||||
|
||||
|
||||
|
||||
{{!-- Only Show the Disorders Section if Motivation Lost Checked --}}
|
||||
{{#if item.system.crossedOut}}
|
||||
|
||||
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.Disorder'}}:</span>
|
||||
<input type="text" name="system.disorder" value="{{item.system.disorder}}" data-dtype="String"
|
||||
|
||||
|
||||
title="{{localize 'DG.ItemWindow.Motivations.DisorderNameTooltip'}}"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Motivations.DisorderHasBeenCured'}}: </span>
|
||||
<input class="labeled-resource-checkbox" type="checkbox" name="system.disorderCured" {{checked item.system.disorderCured}} data-dtype="Boolean"
|
||||
<input class="labeled-resource-checkbox" type="checkbox" name="system.disorderCured" {{checked item.system.disorderCured}} data-dtype="Boolean"
|
||||
title="{{localize 'DG.ItemWindow.Motivations.DisorderHasBeenCuredTooltip'}}"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
{{/if}}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab attributes top-div-border" data-group="primary" data-tab="description">
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
<div class="editor-host">
|
||||
{{editor enrichedDescription target="system.description" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<form class="{{cssClass}} {{getCharacterSheetStyle}}" autocomplete="off">
|
||||
<header class="">
|
||||
<div class="gear-sheet-grid-2col">
|
||||
<img class="item-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
|
||||
<div class="tome-sheet-horizontal-grid-2col">
|
||||
<img class="item-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
|
||||
<div class="tome-sheet-horizontal-grid-2col">
|
||||
{{#if item.system.revealed}}
|
||||
<span class="resource-label">
|
||||
{{#if (playerHasGamemasterPrivileges)}}<a class="tome-show-hide-info"><i class="far fa-eye"></i></a>{{/if}}
|
||||
@@ -53,9 +53,9 @@
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</header>
|
||||
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
@@ -63,7 +63,7 @@
|
||||
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Tome.Description'}}</a>
|
||||
{{#if (playerHasGamemasterPrivileges)}}
|
||||
<a class="item" data-tab="handler">{{localize 'DG.ItemWindow.Tome.HandlerOnlyTabHeader'}}</a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</nav>
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
@@ -77,7 +77,7 @@
|
||||
{{!-- Handler Notes Tab --}}
|
||||
{{#if (playerHasGamemasterPrivileges)}}
|
||||
<div class="tab" data-group="primary" data-tab="handler">
|
||||
<div class="tome-sheet-handler-info-horizontal-grid-2col">
|
||||
<div class="tome-sheet-handler-info-horizontal-grid-2col">
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Tome.UnnaturalIncrease'}}:</span>
|
||||
<input class="item-sheet-short-input" name="system.unnaturalSkillIncrease" type="text" value="{{item.system.unnaturalSkillIncrease}}" type="integer" data-dtype="Number"/>
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<input class="item-sheet-short-input" name="system.learnedSanity.successLoss" type="text" value="{{item.system.learnedSanity.successLoss}}" type="text" />
|
||||
/
|
||||
<input class="item-sheet-short-input" name="system.learnedSanity.failedLoss" type="text" value="{{item.system.learnedSanity.failedLoss}}" type="text" />
|
||||
<i class="fas fa-dice rollable" data-rolltype="sanity-damage"></i>
|
||||
<i class="fas fa-dice rollable" data-rolltype="sanity-damage"></i>
|
||||
</span>
|
||||
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Ritual.ActivationSanityDamage'}}:</span>
|
||||
@@ -94,16 +94,18 @@
|
||||
<input class="item-sheet-short-input" name="system.sanity.successLoss" type="text" value="{{item.system.sanity.successLoss}}" type="text" />
|
||||
/
|
||||
<input class="item-sheet-short-input" name="system.sanity.failedLoss" type="text" value="{{item.system.sanity.failedLoss}}" type="text" />
|
||||
<i class="fas fa-dice rollable" data-rolltype="sanity-damage"></i>
|
||||
<i class="fas fa-dice rollable" data-rolltype="sanity-damage"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Tome.HandlerNotes'}}:</span>
|
||||
|
||||
|
||||
<div class="tab top-div-border">
|
||||
{{editor enrichedHandlerNotes target="system.handlerNotes" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="editor-host">
|
||||
{{editor enrichedHandlerNotes target="system.handlerNotes" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</section>
|
||||
</form>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<form class="{{cssClass}} {{getCharacterSheetStyle}}" autocomplete="off">
|
||||
<header class="">
|
||||
<div class="gear-sheet-grid-2col">
|
||||
<img class="item-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
|
||||
<div class="tome-sheet-horizontal-grid-2col">
|
||||
<img class="item-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
|
||||
<div class="tome-sheet-horizontal-grid-2col">
|
||||
{{#if item.system.revealed}}
|
||||
<span class="resource-label">
|
||||
{{#if (playerHasGamemasterPrivileges)}}<a class="tome-show-hide-info"><i class="far fa-eye"></i></a>{{/if}}
|
||||
@@ -44,9 +44,9 @@
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</header>
|
||||
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
@@ -54,7 +54,7 @@
|
||||
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Tome.Description'}}</a>
|
||||
{{#if (playerHasGamemasterPrivileges)}}
|
||||
<a class="item" data-tab="handler">{{localize 'DG.ItemWindow.Tome.HandlerOnlyTabHeader'}}</a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</nav>
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
@@ -68,7 +68,7 @@
|
||||
{{!-- Handler Notes Tab --}}
|
||||
{{#if (playerHasGamemasterPrivileges)}}
|
||||
<div class="tab" data-group="primary" data-tab="handler">
|
||||
<div class="tome-sheet-handler-info-horizontal-grid-2col">
|
||||
<div class="tome-sheet-handler-info-horizontal-grid-2col">
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Tome.UnnaturalIncrease'}}:</span>
|
||||
<input class="item-sheet-short-input" name="system.unnaturalSkillIncrease" type="text" value="{{item.system.unnaturalSkillIncrease}}" type="integer" data-dtype="Number"/>
|
||||
|
||||
@@ -80,16 +80,18 @@
|
||||
<input class="item-sheet-short-input" name="system.sanity.successLoss" type="text" value="{{item.system.sanity.successLoss}}" type="text" />
|
||||
/
|
||||
<input class="item-sheet-short-input" name="system.sanity.failedLoss" type="text" value="{{item.system.sanity.failedLoss}}" type="text" />
|
||||
<i class="fas fa-dice rollable" data-rolltype="sanity-damage"></i>
|
||||
<i class="fas fa-dice rollable" data-rolltype="sanity-damage"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<span class="resource-label">{{localize 'DG.ItemWindow.Tome.HandlerNotes'}}:</span>
|
||||
|
||||
|
||||
<div class="tab top-div-border">
|
||||
{{editor enrichedHandlerNotes target="system.handlerNotes" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="editor-host">
|
||||
{{editor enrichedHandlerNotes target="system.handlerNotes" engine="prosemirror" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</section>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user