Compendium filter
This commit is contained in:
@@ -4,7 +4,14 @@
|
||||
{{editor data.enrichedHtml.description target="system.description" button=true owner=owner editable=editable}}
|
||||
</fieldset>
|
||||
<label class="reference">
|
||||
{{localize 'l5r5e.sheets.book_reference'}}
|
||||
<input type="text" name="system.book_reference" value="{{data.system.book_reference}}" />
|
||||
{{localize 'l5r5e.sheets.source_reference.reference'}}
|
||||
<input type="text" name="system.source_reference.source" value="{{data.system.source_reference.source}}" list="source_books" />
|
||||
<datalist id="source_books">
|
||||
{{#each source_references as |source|}}
|
||||
<option>{{source}}</option>
|
||||
{{/each}}
|
||||
</datalist>
|
||||
{{localize 'l5r5e.sheets.source_reference.page_abbriviation'}}
|
||||
<input type="number" name="system.source_reference.page_nr" value="{{data.system.source_reference.page_nr}}" />
|
||||
</label>
|
||||
</article>
|
||||
17
system/templates/items/item/item-text-partial-reference.html
Normal file
17
system/templates/items/item/item-text-partial-reference.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{#if data.enrichedHtml.description}}
|
||||
<div class="description">
|
||||
<p><strong>{{localize 'l5r5e.sheets.description'}}</strong> : {{{data.enrichedHtml.description}}}</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if data.system.source_reference.source}}
|
||||
<div class="reference">
|
||||
<div class="source">
|
||||
<p><strong>{{localize 'l5r5e.sheets.source_reference.reference'}}</strong> : {{data.system.source_reference.source}}</p>
|
||||
</div>
|
||||
{{#if data.system.source_reference.page_nr}}
|
||||
<div class="page_nr">
|
||||
<p>{{localize 'l5r5e.sheets.source_reference.page_abbriviation'}}{{data.system.source_reference.page_nr}}</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
@@ -29,8 +29,7 @@
|
||||
<strong>{{localize 'l5r5e.sheets.properties'}}</strong> :
|
||||
{{#each data.system.properties as |property idx|}}{{#ifCond idx '>' 0}}, {{/ifCond}}{{property.name}}{{/each}}
|
||||
</p>
|
||||
{{!--item-infos--}}
|
||||
<p><strong>{{localize 'l5r5e.sheets.description'}}</strong> : {{{data.enrichedHtml.description}}}</p>
|
||||
<p><strong>{{localize 'l5r5e.sheets.book_reference'}}</strong> : {{data.system.book_reference}}</p>
|
||||
|
||||
{{> 'systems/l5r5e/templates/items/item/item-text-partial-reference.html'}}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user