fvtt-pegasus-rpg/templates/item-perk-sheet.html

96 lines
5.0 KiB
HTML
Raw Normal View History

2021-12-02 07:38:59 +01:00
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="tab" data-group="primary">
2021-12-03 18:31:43 +01:00
<ul>
<li class="flexrow"><label class="generic-label">Active ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.active" {{checked data.active}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Level</label>
<input type="text" class="input-numeric-short padd-right" name="data.level" value="{{data.level}}" data-dtype="Number"/>
</li>
2021-12-05 20:36:34 +01:00
<li class="flexrow"><label class="generic-label">Remaining round</label>
<select class="competence-base flexrow" type="text" name="data.roundcount" value="{{data.roundcount}}" data-dtype="Number">
{{#select data.roundcount}}
<option value="3">Ready</option>
<option value="2">Activated</option>
<option value="1">2 Rounds left</option>
<option value="0">1 Round left</option>
{{/select}}
</select>
</li>
2021-12-03 18:31:43 +01:00
<li class="flexrow"><label class="generic-label">Number of use during activation</label>
<select class="competence-base flexrow" type="text" name="data.nbuse" value="{{data.nbuse}}" data-dtype="Number">
{{#select data.nbuse}}
2021-12-05 20:36:34 +01:00
<option value="perkduration">For Duration of Perk</option>
<option value="next1action">Next 1 Stated Action</option>
<option value="next2action">Next 2 Stated Action</option>
<option value="next3action">Next 3 Stated Action</option>
2021-12-03 18:31:43 +01:00
{{/select}}
</select>
</li>
2021-12-19 15:35:54 +01:00
{{#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>
2021-12-03 18:31:43 +01:00
</li>
2021-12-19 15:35:54 +01:00
{{#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}}
</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}}
2021-12-23 15:31:56 +01:00
{{#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}}
2021-12-19 15:35:54 +01:00
{{#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}}
{{/each}}
2021-12-03 18:31:43 +01:00
</ul>
2021-12-05 20:36:34 +01:00
2021-12-02 07:38:59 +01:00
<label class="generic-label">Description</label>
<div class="small-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</div>
</section>
</form>