Refactor web server and release workflow

This commit is contained in:
2026-07-14 18:35:24 +01:00
parent 9070ded66d
commit 4e0e87c86c
76 changed files with 616 additions and 84 deletions
+48
View File
@@ -0,0 +1,48 @@
<form method="post" action="/admin/playlists/{{playlist.id}}/slides/{{playlistSlide.id}}/config">
<input type="hidden" name="playlist_slide_id" value="{{playlistSlide.id}}" />
<input type="hidden" name="row_key" value="{{rowKey}}" />
<label class="schedule-type-field">
<select name="schedule_mode" id="schedule-mode-select">
<option value="always" {{#if isAlwaysMode}}selected{{/if}}>Always visible</option>
<option value="dates" {{#if isDatesMode}}selected{{/if}}>Between two datetimes</option>
<option value="times" {{#if isTimesMode}}selected{{/if}}>Between times on selected days</option>
</select>
</label>
<div class="card" id="schedule-dates-panel">
<h3>Date range</h3>
<div class="row">
<label style="flex: 1;">Start datetime
<input type="datetime-local" name="schedule_start_datetime" value="{{startDateTimeValue}}" />
</label>
<label style="flex: 1;">End datetime
<input type="datetime-local" name="schedule_end_datetime" value="{{endDateTimeValue}}" />
</label>
</div>
</div>
<div class="card" id="schedule-times-panel">
<h3>Time range</h3>
<div class="row">
<label style="flex: 1;">Start time
<input type="time" name="schedule_start_time" value="{{startTimeValue}}" />
</label>
<label style="flex: 1;">End time
<input type="time" name="schedule_end_time" value="{{endTimeValue}}" />
</label>
</div>
<div class="schedule-day-grid">
{{#each dayOptions}}
<label class="schedule-day-option switch-control">
<input type="checkbox" name="schedule_days" value="{{value}}" {{#if checked}}checked{{/if}} />
<span class="switch-ui" aria-hidden="true"></span>
<span class="schedule-day-label">{{label}}</span>
</label>
{{/each}}
</div>
</div>
<div class="schedule-save-actions">
<button type="submit">Save schedule</button>
</div>
</form>