Files

25 lines
2.3 KiB
Handlebars

<section class="{{cssClass}} les-oublies-sheet item-sheet" autocomplete="off">
<header class="sheet-header hero-banner">
<img class="profile-img" data-edit="img" data-action="editImage" src="{{item.img}}" title="{{item.name}}" />
<div class="header-fields hero-copy">
<p class="sheet-kicker">Protection</p>
<h1 class="sheet-title"><input name="name" type="text" value="{{item.name}}" placeholder="Nom" {{#if isPlayMode}}disabled{{/if}} /></h1>
<button class="mode-button" type="button" data-action="toggleSheet">{{#if isEditMode}}{{localize "LESOUBLIES.ui.playMode"}}{{else}}{{localize "LESOUBLIES.ui.editMode"}}{{/if}}</button>
</div>
</header>
<section class="sheet-card summary-card">
<div class="field-row"><label>État</label><select name="system.state" {{#if isPlayMode}}disabled{{/if}}>{{#each choiceSets.armorStateOptions as |option|}}<option value="{{option.value}}" {{#if (eq option.value @root.system.state)}}selected{{/if}}>{{option.label}}</option>{{/each}}</select></div>
<div class="field-row"><label>Protection</label><input name="system.protection" type="number" value="{{system.protection}}" {{#if isPlayMode}}disabled{{/if}} /></div>
<div class="field-row"><label>Malus physique</label><input name="system.physicalPenalty" type="number" value="{{system.physicalPenalty}}" {{#if isPlayMode}}disabled{{/if}} /></div>
<div class="field-row"><label>Malus initiative</label><input name="system.initiativePenalty" type="number" value="{{system.initiativePenalty}}" {{#if isPlayMode}}disabled{{/if}} /></div>
<div class="field-row"><label>{{localize "LESOUBLIES.labels.prix"}}</label><input name="system.price" type="number" value="{{system.price}}" {{#if isPlayMode}}disabled{{/if}} /></div>
<div class="field-row"><label>{{localize "LESOUBLIES.labels.equipe"}}</label><input name="system.equipped" type="checkbox" {{checked system.equipped}} {{#if isPlayMode}}disabled{{/if}} /></div>
</section>
<section class="sheet-card notes-card">
<h2>{{localize "LESOUBLIES.labels.description"}}</h2>
{{formInput systemFields.description enriched=enriched.description value=system.description name="system.description" toggled=true}}
<h2>{{localize "LESOUBLIES.labels.notes"}}</h2>
{{formInput systemFields.notes enriched=enriched.notes value=system.notes name="system.notes" toggled=true}}
</section>
</section>