Files

77 lines
3.1 KiB
Handlebars

<div class="les-oublies-roll-dialog">
<section class="sheet-card">
<h2>{{title}}</h2>
<div class="field-row">
<label>{{localize "LESOUBLIES.rolls.rollMode"}}</label>
<select name="rollMode">
{{#each rollModes as |mode|}}
<option value="{{mode.value}}" {{#if (eq mode.value @root.values.rollMode)}}selected{{/if}}>{{mode.label}}</option>
{{/each}}
</select>
</div>
<div class="field-row">
<label>{{localize "LESOUBLIES.rolls.extraDie"}}</label>
<select name="extraDie">
{{#each extraDieModes as |mode|}}
<option value="{{mode.value}}" {{#if (eq mode.value @root.values.extraDie)}}selected{{/if}}>{{mode.label}}</option>
{{/each}}
</select>
</div>
{{#if showMovementOptions}}
<div class="field-row">
<label>Circonstance</label>
<select name="difficultyPreset">
<option value="0">Aucune (0)</option>
{{#each difficultyOptions as |entry|}}
<option value="{{entry.value}}">{{entry.label}}</option>
{{/each}}
</select>
</div>
<div class="field-row">
<label>Destination</label>
<input name="targetLabel" type="text" value="{{values.targetLabel}}" />
</div>
{{/if}}
{{#if showEncourageOptions}}
<div class="field-row">
<label>Allié</label>
<input name="targetLabel" type="text" value="{{values.targetLabel}}" />
</div>
<div class="field-row">
<label>Effet</label>
<select name="outcomeChoice">
<option value="initiative" {{#if (eq values.outcomeChoice "initiative")}}selected{{/if}}>+4 initiative</option>
<option value="action" {{#if (eq values.outcomeChoice "action")}}selected{{/if}}>+3 prochaine action</option>
<option value="reaction" {{#if (eq values.outcomeChoice "reaction")}}selected{{/if}}>+3 prochaine réaction</option>
</select>
</div>
{{/if}}
<div class="field-row">
<label>Ajustement libre</label>
<input name="customDifficulty" type="number" value="{{values.customDifficulty}}" />
</div>
<div class="field-row">
<label>Prime</label>
<select name="primeId">
{{#each primeOptions as |option|}}
<option value="{{option.value}}" {{#if (eq option.value @root.values.primeId)}}selected{{/if}}>{{option.label}}</option>
{{/each}}
</select>
</div>
<div class="field-row">
<label>Pénalité</label>
<select name="penaltyId">
{{#each penaltyOptions as |option|}}
<option value="{{option.value}}" {{#if (eq option.value @root.values.penaltyId)}}selected{{/if}}>{{option.label}}</option>
{{/each}}
</select>
</div>
<div class="field-row">
<label>Notes</label>
<input name="notes" type="text" value="{{values.notes}}" />
</div>
<p class="help-text">{{hint}}</p>
<p class="help-text">{{localize "LESOUBLIES.rolls.resourceState"}} : Songes {{resources.songesPoints}} / {{resources.songesValue}} · Cauchemar {{resources.cauchemarPoints}} / {{resources.cauchemarValue}}</p>
</section>
</div>