Compendium filter

This commit is contained in:
Litasa
2025-02-16 13:24:03 +00:00
committed by Vlyan
parent 257a736c83
commit b0bc91393a
60 changed files with 2408 additions and 1287 deletions

View File

@@ -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>

View 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}}

View File

@@ -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>