Update templates
parent
aa21882c16
commit
8bf2bbfae2
|
@ -1,32 +1,28 @@
|
|||
<div class="feat-browser browser flexrow">
|
||||
<div class="control-area">
|
||||
<div class="filtercontainer" id="tagfilter">
|
||||
<div class="filter" data-type="text" data-path="name">
|
||||
<input class="" name="textFilter" type="text" value=""
|
||||
data-dtype="String" placeholder="{{localize "Name"}}"/>
|
||||
</div>
|
||||
<dl id="sorter">
|
||||
<dt>{{localize "CMPBrowser.sortBy"}}:</dt>
|
||||
<dd>
|
||||
<select class="null" name="sortorder">
|
||||
<option value="true" selected>{{localize "Name"}}</option>
|
||||
<option value="false">{{localize "DND5E.ItemTypeClass"}}</option>
|
||||
</select>
|
||||
</dd>
|
||||
</dl>
|
||||
<button id="reset-feat-filter">
|
||||
{{localize "CMPBrowser.Filters.ResetFilters"}}
|
||||
</button>
|
||||
<!-- <button id="copy-search-feat">Export to <i class="fa-brands fa-square-js"></i></button> -->
|
||||
</div>
|
||||
{{> "modules/compendium-browser/template/filter-container.html"
|
||||
filters=featFilters}}
|
||||
</div>
|
||||
<div class="list-area flexcol">
|
||||
<span id="CBFeatsMessage" style="flex: 0"></span>
|
||||
<ul id="CBFeats">
|
||||
{{> "modules/compendium-browser/template/feat-browser-list.html"
|
||||
feats=items}}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="control-area">
|
||||
<div class="filtercontainer" id="tagfilter">
|
||||
<div class="filter" data-type="text" data-path="name">
|
||||
<input class="" name="textFilter" type="text" value="" data-dtype="String" placeholder="{{localize
|
||||
"Name"}}"/>
|
||||
</div>
|
||||
<dl id="sorter">
|
||||
<dt>{{localize "CMPBrowser.sortBy"}}:</dt>
|
||||
<dd>
|
||||
<select class="null" name="sortorder">
|
||||
<option value="true" selected>{{localize "Name"}}</option>
|
||||
<option value="false">{{localize "ITEM.TypeClass"}}</option>
|
||||
</select>
|
||||
</dd>
|
||||
</dl>
|
||||
<button id="reset-feat-filter">{{localize "CMPBrowser.Filters.ResetFilters"}}</button>
|
||||
<!-- <button id="copy-search-feat">Export to <i class="fa-brands fa-square-js"></i></button> -->
|
||||
</div>
|
||||
{{> "modules/compendium-browser/template/filter-container.html" filters=featFilters}}
|
||||
</div>
|
||||
<div class="list-area flexcol">
|
||||
<span id="CBFeatsMessage" style="flex: 0"></span>
|
||||
<ul id="CBFeats">
|
||||
{{> "modules/compendium-browser/template/feat-browser-list.html" feats=items}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,79 +1,79 @@
|
|||
{{#each filters.registeredFilterCategorys as |cat key|}}
|
||||
<div class="filtercontainer" id="{{key}}">
|
||||
<h3>{{cat.label}}</h3>
|
||||
<div class="filters">
|
||||
{{#each cat.filters as |filter key|}}
|
||||
<div
|
||||
class="filter"
|
||||
id="{{cat.labelId}}-{{filter.labelId}}"
|
||||
data-path="{{filter.path}}"
|
||||
data-type="{{filter.type}}"
|
||||
data-valIsArray="{{filter.valIsArray}}"
|
||||
>
|
||||
{{#if filter.istext}}
|
||||
<dt>{{filter.label}}</dt>
|
||||
<dd>
|
||||
{{#if filter.possibleValues}}
|
||||
<select class="null">
|
||||
<option value="" selected>-</option>
|
||||
{{#each filter.possibleValues as |label val|}}
|
||||
<option value="{{val}}">{{label}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
{{else}}
|
||||
<input type="text" />
|
||||
{{/if}}
|
||||
</dd>
|
||||
{{/if}} {{#if filter.isbool}}
|
||||
<dl>
|
||||
<dt>{{filter.label}}</dt>
|
||||
<dd>
|
||||
<select class="null">
|
||||
<option value="null" selected>-</option>
|
||||
<option value="true">{{localize "Yes"}}</option>
|
||||
<option value="false">{{localize "No"}}</option>
|
||||
</select>
|
||||
</dd>
|
||||
</dl>
|
||||
{{/if}} {{#if filter.isselect}}
|
||||
<dl>
|
||||
<dt>{{filter.label}}</dt>
|
||||
<dd>
|
||||
<select class="null">
|
||||
<option value="null" selected>-</option>
|
||||
{{#each filter.possibleValues as |label val|}}
|
||||
<option value="{{val}}">{{label}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</dd>
|
||||
</dl>
|
||||
{{/if}} {{#if filter.ismultiSelect}}
|
||||
<div class="multiselect">
|
||||
<label>{{filter.label}}</label>
|
||||
<dl>
|
||||
{{#each filter.possibleValues as |label val|}}
|
||||
<h3>{{cat.label}}</h3>
|
||||
<div class="filters">
|
||||
{{#each cat.filters as |filter key|}}
|
||||
<div
|
||||
class="filter"
|
||||
id="{{cat.labelId}}-{{filter.labelId}}"
|
||||
data-path="{{filter.path}}"
|
||||
data-type="{{filter.type}}"
|
||||
data-valIsArray="{{filter.valIsArray}}"
|
||||
>
|
||||
{{#if filter.istext}}
|
||||
<dt>{{filter.label}}</dt>
|
||||
<dd>
|
||||
{{#if filter.possibleValues}}
|
||||
<select class="null">
|
||||
<option value="" selected></option>
|
||||
{{#each filter.possibleValues as |label val|}}
|
||||
<option value="{{val}}">{{label}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
{{else}}
|
||||
<input type="text" />
|
||||
{{/if}}
|
||||
</dd>
|
||||
{{/if}} {{#if filter.isbool}}
|
||||
<dl>
|
||||
<dt>{{filter.label}}</dt>
|
||||
<dd>
|
||||
<select class="null">
|
||||
<option value="null" selected></option>
|
||||
<option value="true">{{localize "Yes"}}</option>
|
||||
<option value="false">{{localize "No"}}</option>
|
||||
</select>
|
||||
</dd>
|
||||
</dl>
|
||||
{{/if}} {{#if filter.isselect}}
|
||||
<dl>
|
||||
<dt>{{filter.label}}</dt>
|
||||
<dd>
|
||||
<select class="null">
|
||||
<option value="null" selected></option>
|
||||
{{#each filter.possibleValues as |label val|}}
|
||||
<option value="{{val}}">{{label}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</dd>
|
||||
</dl>
|
||||
{{/if}} {{#if filter.ismultiSelect}}
|
||||
<div class="multiselect">
|
||||
<label>{{filter.label}}</label>
|
||||
<dl>
|
||||
{{#each filter.possibleValues as |label val|}}
|
||||
|
||||
<dt><label>{{label}}</label></dt>
|
||||
<dd><input type="checkbox" data-value="{{val}}" /></dd>
|
||||
{{/each}}
|
||||
</dl>
|
||||
</div>
|
||||
{{/if}} {{#if filter.isnumberCompare}}
|
||||
<div class="numberCompare">
|
||||
<dt>{{filter.label}}</dt>
|
||||
<dd>
|
||||
<select class="small-select">
|
||||
<option value="null" selected>-</option>
|
||||
<option value="=">=</option>
|
||||
<option value="<"><</option>
|
||||
<option value=">">></option>
|
||||
</select>
|
||||
<input class="small-input" type="number" />
|
||||
</dd>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
<dt><label>{{label}}</label></dt>
|
||||
<dd><input type="checkbox" data-value="{{val}}" /></dd>
|
||||
{{/each}}
|
||||
</dl>
|
||||
</div>
|
||||
{{/if}} {{#if filter.isnumberCompare}}
|
||||
<div class="numberCompare">
|
||||
<dt>{{filter.label}}</dt>
|
||||
<dd>
|
||||
<select class="small-select">
|
||||
<option value="null" selected></option>
|
||||
<option value="=">=</option>
|
||||
<option value="<"><</option>
|
||||
<option value=">">></option>
|
||||
</select>
|
||||
<input class="small-input" type="number" />
|
||||
</dd>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
|
|
|
@ -1,46 +1,54 @@
|
|||
<div class="settings">
|
||||
<div class="settings-group">
|
||||
<h3>{{localize "CMPBrowser.generalSettings"}}</h3>
|
||||
<label>
|
||||
<input data-setting="allow-spell-browser" type="checkbox" {{#if
|
||||
settings.allowSpellBrowser}}checked{{/if}}>
|
||||
<h4>{{localize "CMPBrowser.allowSpellAcc"}}</h4>
|
||||
</label>
|
||||
<label>
|
||||
<input data-setting="allow-feat-browser" type="checkbox" {{#if
|
||||
settings.allowFeatBrowser}}checked{{/if}}>
|
||||
<h4>{{localize "CMPBrowser.allowFeatAcc"}}</h4>
|
||||
</label>
|
||||
<label>
|
||||
<input data-setting="allow-item-browser" type="checkbox" {{#if
|
||||
settings.allowItemBrowser}}checked{{/if}}>
|
||||
<h4>{{localize "CMPBrowser.allowItemAcc"}}</h4>
|
||||
</label>
|
||||
<label>
|
||||
<input data-setting="allow-npc-browser" type="checkbox" {{#if
|
||||
settings.allowNpcBrowser}}checked{{/if}}>
|
||||
<h4>{{localize "CMPBrowser.allowNpcAcc"}}</h4>
|
||||
</label>
|
||||
</div>
|
||||
<div class="settings-group">
|
||||
<h3>{{localize "CMPBrowser.generalSettings"}}</h3>
|
||||
<label>
|
||||
<input data-setting="allow-spell-browser" type="checkbox" {{checked settings.allowSpellBrowser}} />
|
||||
<h4>{{localize "CMPBrowser.allowSpellAcc"}}</h4>
|
||||
</label>
|
||||
<label>
|
||||
<input data-setting="allow-feat-browser" type="checkbox" {{checked settings.allowFeatBrowser}} />
|
||||
<h4>{{localize "CMPBrowser.allowFeatAcc"}}</h4>
|
||||
</label>
|
||||
<label>
|
||||
<input data-setting="allow-item-browser" type="checkbox" {{checked settings.allowItemBrowser}} />
|
||||
<h4>{{localize "CMPBrowser.allowItemAcc"}}</h4>
|
||||
</label>
|
||||
<label>
|
||||
<input data-setting="allow-npc-browser" type="checkbox" {{checked settings.allowNpcBrowser}} />
|
||||
<h4>{{localize "CMPBrowser.allowNpcAcc"}}</h4>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="settings-group">
|
||||
<h3>{{localize "CMPBrowser.compSettingsSpell"}}</h3>
|
||||
{{#each settings.loadedSpellCompendium as |spellComp key|}}
|
||||
<label>
|
||||
<input data-setting="spell-compendium-setting" data-key="{{key}}"
|
||||
data-type="spell" type="checkbox"{{#if spellComp.load}}checked{{/if}}>
|
||||
<h4>{{localize "CMPBrowser.load"}} {{spellComp.name}}</h4>
|
||||
</label>
|
||||
{{/each}}
|
||||
</div>
|
||||
<div class="settings-group">
|
||||
<h3>{{localize "CMPBrowser.compSettingsNpc"}}</h3>
|
||||
{{#each settings.loadedNpcCompendium as |npcComp key|}}
|
||||
<label>
|
||||
<input data-setting="npc-compendium-setting" data-key="{{key}}"
|
||||
data-type="npc" type="checkbox"{{#if npcComp.load}}checked{{/if}}>
|
||||
<h4>{{localize "CMPBrowser.load"}} {{npcComp.name}}</h4>
|
||||
</label>
|
||||
{{/each}}
|
||||
</div>
|
||||
<div class="settings-group">
|
||||
<h3>{{localize "CMPBrowser.compSettingsSpell"}}</h3>
|
||||
{{#each settings.loadedSpellCompendium as |spellComp key|}}
|
||||
<label>
|
||||
<input
|
||||
data-setting="spell-compendium-setting"
|
||||
data-key="{{key}}"
|
||||
data-type="spell"
|
||||
type="checkbox"
|
||||
{{checked
|
||||
spellComp.load}}
|
||||
/>
|
||||
<h4>{{localize "CMPBrowser.load"}} {{spellComp.name}}</h4>
|
||||
</label>
|
||||
{{/each}}
|
||||
</div>
|
||||
<div class="settings-group">
|
||||
<h3>{{localize "CMPBrowser.compSettingsNpc"}}</h3>
|
||||
{{#each settings.loadedNpcCompendium as |npcComp key|}}
|
||||
<label>
|
||||
<input
|
||||
data-setting="npc-compendium-setting"
|
||||
data-key="{{key}}"
|
||||
data-type="npc"
|
||||
type="checkbox"
|
||||
{{checked
|
||||
npcComp.load}}
|
||||
/>
|
||||
<h4>{{localize "CMPBrowser.load"}} {{npcComp.name}}</h4>
|
||||
</label>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue