68 lines
2.7 KiB
Handlebars
68 lines
2.7 KiB
Handlebars
<form class="sla-shift-ledger-form">
|
|
<div class="sla-shift-ledger-grid">
|
|
<div class="sla-shift-ledger-field">
|
|
<label>Current Day</label>
|
|
<input type="number" name="day" min="0" step="1" value="{{state.day}}">
|
|
</div>
|
|
<div class="sla-shift-ledger-field">
|
|
<label>Current Shift</label>
|
|
<select name="shift">
|
|
{{#each shifts}}
|
|
<option value="{{this.index}}" {{#if this.selected}}selected{{/if}}>{{this.label}}</option>
|
|
{{/each}}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sla-shift-ledger-banner-card">
|
|
<div class="sla-shift-ledger-kicker">Campaign Cadence</div>
|
|
<div class="sla-shift-ledger-state-line">Day {{state.day}} · Week {{weekNumber}} · {{currentShiftLabel}}</div>
|
|
<div class="sla-shift-ledger-shift-row">
|
|
{{#each shifts}}
|
|
<div class="sla-shift-ledger-shift-chip {{#if this.active}}is-active{{/if}}">{{this.short}}</div>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sla-shift-ledger-field">
|
|
<label>Activity Options</label>
|
|
<textarea name="activityOptions" rows="4">{{activityOptionsText}}</textarea>
|
|
<p class="notes">One option per line. These become the schedule choices on each character sheet.</p>
|
|
</div>
|
|
|
|
<div class="sla-shift-ledger-cost-panel">
|
|
<div class="sla-shift-ledger-kicker">Weekly Housing Costs</div>
|
|
<div class="sla-shift-ledger-cost-grid">
|
|
{{#each housingLevels}}
|
|
<div class="sla-shift-ledger-field">
|
|
<label>Tier {{this.tier}}</label>
|
|
<input type="text" name="housingLabel{{this.tier}}" value="{{this.label}}">
|
|
<input type="number" name="housingCost{{this.tier}}" min="0" step="1" value="{{this.cost}}">
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sla-shift-ledger-grid">
|
|
<div class="sla-shift-ledger-field">
|
|
<label>Living Cost Multiplier</label>
|
|
<input type="number" name="livingMultiplier" min="0" step="0.1" value="{{config.livingMultiplier}}">
|
|
<p class="notes">`0.5` means living costs are 50% of housing.</p>
|
|
</div>
|
|
<div class="sla-shift-ledger-field">
|
|
<label>Auto Charge Weekly</label>
|
|
<select name="autoChargeWeekly">
|
|
<option value="true" {{#if config.autoChargeWeekly}}selected{{/if}}>Enabled</option>
|
|
<option value="false" {{#unless config.autoChargeWeekly}}selected{{/unless}}>Disabled</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sla-shift-ledger-actions">
|
|
<button type="button" data-action="prev">Previous Shift</button>
|
|
<button type="button" data-action="next">Advance Shift</button>
|
|
<button type="button" data-action="bill">Run Weekly Billing Now</button>
|
|
<button type="submit">Save</button>
|
|
</div>
|
|
</form>
|