2020-06-24 14:31:52 -04:00
|
|
|
<form id="short-rest-hd" class="dialog-content" onsubmit="event.preventDefault();">
|
|
|
|
<p>{{ localize "SW5E.ShortRestHint" }}</p>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>{{ localize "SW5E.ShortRestSelect" }}</label>
|
|
|
|
<div class="form-fields">
|
|
|
|
<select name="hd">
|
|
|
|
{{#select denomination}}
|
|
|
|
{{#each availableHD as |num denom|}}
|
|
|
|
<option value="{{denom}}">{{denom}} ({{num}} {{ localize "SW5E.available" }})</option>
|
|
|
|
{{/each}}
|
|
|
|
{{/select}}
|
|
|
|
</select>
|
|
|
|
<button id="roll-hd" {{#unless canRoll}}disabled{{/unless}}>
|
2021-06-23 02:53:39 -04:00
|
|
|
<i class="fas fa-dice-d20"></i> {{ localize "SW5E.Roll" }}
|
2020-06-24 14:31:52 -04:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{{#unless canRoll}}
|
|
|
|
<p class="notes">{{ localize "SW5E.ShortRestNoHD" }}</p>
|
|
|
|
{{/unless}}
|
|
|
|
</div>
|
2020-09-11 17:11:11 -04:00
|
|
|
|
|
|
|
{{#if promptNewDay}}
|
|
|
|
<div class="form-group">
|
2021-06-23 02:53:39 -04:00
|
|
|
<label>{{ localize "SW5E.NewDay" }}</label>
|
2020-09-11 17:11:11 -04:00
|
|
|
<input type="checkbox" name="newDay" {{checked newDay}}/>
|
2021-06-23 02:53:39 -04:00
|
|
|
<p class="hint">{{ localize "SW5E.NewDayHint" }}</p>
|
2020-09-11 17:11:11 -04:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2020-06-24 14:31:52 -04:00
|
|
|
<div class="dialog-buttons">
|
|
|
|
{{#each buttons as |button id|}}
|
|
|
|
<button class="dialog-button" data-button="{{id}}">
|
|
|
|
{{{button.icon}}}
|
|
|
|
{{{button.label}}}
|
|
|
|
</button>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</form>
|