Added a "description" field on the PC/NPC sheet, displayed in limited view

This commit is contained in:
Vlyan
2021-05-26 13:55:39 +02:00
parent c82a3324d8
commit b883689b63
8 changed files with 60 additions and 68 deletions

View File

@@ -55,7 +55,15 @@
</ul>
</fieldset>
</div>
{{!-- Description (npc have it on header) --}}
{{#ifCond data.type '==' "character"}}
<fieldset class="narrative-description">
<legend class="text-block-header">{{localize 'l5r5e.description' }}</legend>
{{editor content=data.data.description target="data.description" button=true editable=options.editable}}
</fieldset>
{{/ifCond}}
{{!-- Notes (private) --}}
<fieldset class="narrative-note">
<legend class="text-block-header">{{localize 'l5r5e.notes' }}</legend>
{{editor content=data.data.notes.value target="data.notes.value" button=true editable=options.editable}}
{{editor content=data.data.notes target="data.notes" button=true editable=options.editable}}
</fieldset>

View File

@@ -3,38 +3,6 @@
{{!-- Sheet Header --}}
<div class="sheet-header">
<h1 class="charname"><input name="name" type="text" value="{{data.name}}" placeholder="Name"/></h1>
{{!-- Sheet identity --}}
<ul class="identity-content">
<li>
<label class="attribute-label">
{{localize 'l5r5e.clan'}}
<input type="text" name="data.identity.clan" value="{{data.data.identity.clan}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{localize 'l5r5e.family'}}
<input type="text" name="data.identity.family" value="{{data.data.identity.family}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{localize 'l5r5e.schoolrank'}}
<input type="number" name="data.identity.school_rank" value="{{data.data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="1" placeholder="1"/>
</label>
</li>
<li>
<label class="attribute-label">
{{localize 'l5r5e.school'}}
<input type="text" name="data.identity.school" value="{{data.data.identity.school}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{localize 'l5r5e.roles'}}
<input type="text" name="data.identity.roles" value="{{data.data.identity.roles}}"/>
</label>
</li>
</ul>
{{{data.data.description}}}
</div>
</form>

View File

@@ -7,8 +7,8 @@
{{> 'systems/l5r5e/templates/actors/npc/identity.html'}}
</div>
<fieldset class="npc-note">
<legend class="text-block-header">{{localize 'l5r5e.notes'}}</legend>
{{editor content=data.data.notes.value target="data.notes.value" button=true editable=options.editable}}
<legend class="text-block-header">{{localize 'l5r5e.description'}}</legend>
{{editor content=data.data.description target="data.description" button=true editable=options.editable}}
</fieldset>
<div class="header-fields">
<h2>{{localize 'l5r5e.social.title'}}</h2>