Files
fvtt-celestopol/templates/armure.hbs

52 lines
2.2 KiB
Handlebars

<div class="item-sheet armure">
<header class="item-header">
<div class="item-portrait" data-action="editImage">
<img src="{{item.img}}" alt="{{item.name}}">
</div>
<div class="item-header-fields">
<input type="text" name="name" value="{{item.name}}" {{#unless isEditable}}disabled{{/unless}}>
</div>
</header>
<div class="anomaly-body">
<div class="armure-stats">
<div class="armure-stat-box equipped-box">
<label>{{localize "CELESTOPOL.Armure.equipped"}}</label>
<div class="armure-stat-value">
<label class="equipped-switch">
<input type="checkbox" name="system.equipped" {{#if system.equipped}}checked{{/if}} {{#unless isEditable}}disabled{{/unless}}>
<span class="switch-label {{#if system.equipped}}on{{/if}}">
{{#if system.equipped}}{{localize "CELESTOPOL.Armure.equippedYes"}}{{else}}{{localize "CELESTOPOL.Armure.equippedNo"}}{{/if}}
</span>
</label>
</div>
</div>
<div class="armure-stat-box">
<label>{{localize "CELESTOPOL.Armure.protection"}}</label>
<div class="armure-stat-value">
{{#if isEditable}}
<input type="number" name="system.protection" value="{{system.protection}}" min="1" max="2">
{{else}}
<span>{{system.protection}}</span>
{{/if}}
</div>
<div class="armure-stat-hint">{{localize "CELESTOPOL.Armure.protectionHint"}}</div>
</div>
<div class="armure-stat-box">
<label>{{localize "CELESTOPOL.Armure.malus"}}</label>
<div class="armure-stat-value">
<input type="hidden" name="system.malus" value="{{system.protection}}">
<span data-armure-malus-value>{{system.protection}}</span>
</div>
<div class="armure-stat-hint">{{localize "CELESTOPOL.Armure.malusHint"}}</div>
</div>
</div>
<div class="anomaly-section">
<div class="anomaly-section-title">{{localize "CELESTOPOL.Actor.description"}}</div>
<div class="anomaly-editor-wrap">
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</div>
</div>
</div>
</div>