Files
foundryvtt-mgt2/templates/roll-prompt.html

96 lines
4.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<form class="{{cssClass}} flexcol" autocomplete="off" style="padding: 0 6px;">
{{!-- Hidden fields for healing --}}
{{#if showHeal}}
<input type="hidden" name="healType" value="{{healType}}" />
{{/if}}
{{!-- ── Mode CRÉATURE : sélecteur de compétence de la créature ── --}}
{{#if isCreature}}
{{#if showSkillSelector}}
<div class="form-group">
<label>{{ localize 'MGT2.RollPrompt.CreatureSkill' }}</label>
<select name="creatureSkillIndex">
<option value="-1">— {{ localize 'MGT2.RollPrompt.NoSkill' }} —</option>
{{#each creatureSkills}}
<option value="{{@index}}" {{#if (eq @index ../selectedSkillIndex)}}selected{{/if}}>{{name}} ({{showDM level}})</option>
{{/each}}
</select>
</div>
{{else}}
<div class="form-group roll-prompt-info">
<span class="roll-prompt-skill-name">{{skillName}}</span>
<span class="roll-prompt-skill-level">{{showDM skillLevel}}</span>
</div>
{{/if}}
{{!-- ── Mode PERSONNAGE : caractéristique + compétence + états ── --}}
{{else}}
<div class="form-group">
<label>{{ localize 'MGT2.RollPrompt.CharacteristicDM' }}</label>
<select name="characteristic">
{{selectOptions characteristics selected=characteristic valueAttr="_id" labelAttr="name"}}
</select>
</div>
<div class="form-group">
<label>{{ localize 'MGT2.RollPrompt.SkillDM' }}</label>
<select name="skill">
<option></option>
{{selectOptions skills selected=skill valueAttr="_id" labelAttr="name"}}
</select>
</div>
<div class="form-group">
<label>{{ localize 'MGT2.RollPrompt.Timeframes' }}</label>
<select name="timeframes">
{{selectOptions config.Timeframes selected = timeframe localize = true}}
</select>
</div>
<fieldset>
<legend>{{ localize 'MGT2.RollPrompt.States' }}</legend>
<div class="form-group">
<label class="mgt2-checkbox"><input type="checkbox" name="encumbrance" data-dtype="Boolean" {{checked encumbrance}} />{{ localize 'MGT2.RollPrompt.EncumbranceDM' }}</label>
<label class="mgt2-checkbox"><input type="checkbox" name="fatigue" data-dtype="Boolean" {{checked fatigue}} />{{ localize 'MGT2.RollPrompt.FatigueDM' }}</label>
</div>
</fieldset>
{{/if}}
<div class="form-group">
<label>{{ localize 'MGT2.RollPrompt.CustomDM' }}</label>
<select name="customDM">
<option value="-8">8</option>
<option value="-7">7</option>
<option value="-6">6</option>
<option value="-5">5</option>
<option value="-4">4</option>
<option value="-3">3</option>
<option value="-2">2</option>
<option value="-1">1</option>
<option value="0" selected>0</option>
<option value="1">+1</option>
<option value="2">+2</option>
<option value="3">+3</option>
<option value="4">+4</option>
<option value="5">+5</option>
<option value="6">+6</option>
<option value="7">+7</option>
<option value="8">+8</option>
</select>
</div>
<div class="form-group">
<label>{{ localize 'MGT2.RollPrompt.Difficulty' }}</label>
<select name="difficulty">
<option value=""></option>
{{selectOptions config.Difficulty selected = difficulty localize = true}}
</select>
</div>
<div class="form-group">
<label>{{ localize 'MGT2.RollPrompt.RollMode' }}</label>
<select name="rollMode">
<option value="publicroll" selected="">{{ localize 'MGT2.RollPrompt.PublicRoll' }}</option>
<option value="gmroll">{{ localize 'MGT2.RollPrompt.PrivateGMRoll' }}</option>
<option value="blindroll">{{ localize 'MGT2.RollPrompt.BlindGMRoll' }}</option>
<option value="selfroll">{{ localize 'MGT2.RollPrompt.SelfRoll' }}</option>
</select>
</div>
</form>