Fix various glitches
This commit is contained in:
@@ -57,50 +57,51 @@
|
||||
</li>
|
||||
|
||||
{{#each data.features as |feature key|}}
|
||||
<li class="flexrow">
|
||||
<label class="generic-label">{{feature.label}} ? </label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.features.{{key}}.flag" {{checked feature.flag}}/></label>
|
||||
</li>
|
||||
{{#if feature.flag}}
|
||||
<ul class="ul-level1">
|
||||
<li class="flexrow"><label class="generic-label">{{feature.label}}</label>
|
||||
{{#if (eq feature.type "statdice")}}
|
||||
<select class="competence-base flexrow" type="text" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String">
|
||||
{{#select feature.value}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "range")}}
|
||||
<select class="competence-base flexrow" type="text" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String">
|
||||
{{#select feature.value}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
||||
{{/select}}
|
||||
{{#if feature.isvalid}}
|
||||
<li class="flexrow">
|
||||
<label class="generic-label">{{feature.label}} ? </label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.features.{{key}}.flag" {{checked feature.flag}}/></label>
|
||||
</li>
|
||||
{{#if feature.flag}}
|
||||
<ul class="ul-level1">
|
||||
<li class="flexrow"><label class="generic-label">{{feature.label}}</label>
|
||||
{{#if (eq feature.type "statdice")}}
|
||||
<select class="competence-base flexrow" type="text" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String">
|
||||
{{#select feature.value}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "number")}}
|
||||
<input type="text" class="padd-right" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="Number"/>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "string")}}
|
||||
<input type="text" class="padd-right" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String"/>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "dropspec")}}
|
||||
<ul class="ul-level1">
|
||||
<li class="flexrow"><div class="drop-spec-perk" data-key={{key}}><label>Drop Specialisation here !</label></div>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "range")}}
|
||||
<select class="competence-base flexrow" type="text" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String">
|
||||
{{#select feature.value}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "number")}}
|
||||
<input type="text" class="padd-right" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="Number"/>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "string")}}
|
||||
<input type="text" class="padd-right" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String"/>
|
||||
</ul>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "text")}}
|
||||
<div class="small-editor item-text-long-line">
|
||||
{{editor content=features.value target="data.features.{{key}}.value" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
</ul>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "dropspec")}}
|
||||
<ul class="ul-level1">
|
||||
<li class="flexrow"><div class="drop-spec-perk" data-key={{key}}><label>Drop Specialisation here !</label></div>
|
||||
</li>
|
||||
<input type="text" class="padd-right" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String"/>
|
||||
</ul>
|
||||
{{/if}}
|
||||
{{#if (eq feature.type "text")}}
|
||||
<div class="small-editor item-text-long-line">
|
||||
{{editor content=features.value target="data.features.{{key}}.value" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
</ul>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
</ul>
|
||||
|
||||
<label class="generic-label">Description</label>
|
||||
|
Reference in New Issue
Block a user