fvtt-les-heritiers/templates/partial-utile-skills.html

49 lines
2.7 KiB
HTML
Raw Normal View History

2023-03-11 12:11:27 +01:00
<div class="sheet-box color-bg-archetype">
<ul class="item-list alternate-list">
<li class="item flexrow">
2023-03-13 09:00:49 +01:00
{{#if isPNJ}}
<span class="item-field-label-long roll-style">
<a class="roll-root-competence item-field-label-short" data-attr-key="{{keyProfil}}">
<h3><label class="items-title-text">{{upperFirst keyProfil}}</label></h3>
</a>
</span>
{{else}}
<span class="item-field-label-long">
<h3><label class="items-title-text">{{upperFirst keyProfil}}</label></h3>
2023-03-11 12:11:27 +01:00
</span>
2023-03-13 09:00:49 +01:00
{{/if}}
2023-03-11 12:11:27 +01:00
<span class="item-field-label-short">
<label class="short-label">Niveau</label>
</span>
2023-03-13 09:00:49 +01:00
{{#if isPNJ}}
<span class="item-field-label-short">
<input type="text" data-dtype="Number" class="item-field-label-short" name="system.competences.{{keyProfil}}.niveau" value="{{skillDef.niveau}}">
</span>
{{/if}}
2023-03-11 12:11:27 +01:00
<div class="item-filler">&nbsp;</div>
</li>
2023-03-13 09:00:49 +01:00
{{#each skillDef.skills as |skill key|}}
2023-03-11 12:11:27 +01:00
<li class="item flexrow " data-item-id="{{skill._id}}" data-item-type="competence">
<span class="item-field-label-long roll-style"><a class="roll-competence item-field-label-short"
data-attr-key="tochoose">{{skill.name}}</a></span>
<select class="item-field-label-short edit-item-data" type="text"
data-item-field="niveau" value="{{skill.system.niveau}}" data-dtype="Number">
{{#select skill.system.niveau}}
{{> systems/fvtt-les-heritiers/templates/partial-list-niveau.html}}
{{/select}}
</select>
<input type="checkbox" class="item-field-label-short edit-item-data" data-item-field="predilection" {{checked skill.system.predilection}}/>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{#if (count skill.specList)}}
2023-12-19 22:13:26 +01:00
<span class="specialisarion-margin specialisation-label item-field-label-long2">{{skill.specList}}</span>
2023-03-11 12:11:27 +01:00
{{/if}}
{{/each}}
</ul>
</div>