aboutsummaryrefslogtreecommitdiff
path: root/internal/web/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates/index.html')
-rw-r--r--internal/web/templates/index.html16
1 files changed, 13 insertions, 3 deletions
diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html
index 4dd580f..03c0078 100644
--- a/internal/web/templates/index.html
+++ b/internal/web/templates/index.html
@@ -1,11 +1,13 @@
{{/* index.html renders the full lectio-web page: top-bar controls (date,
- lectionary, version checkboxes, all/gospel toggle, theme select), a
- passage-lookup form, and the pre-rendered reading pane (#pane).
+ lectionary, version checkboxes, all/gospel toggle, display select,
+ theme select), a passage-lookup form, and the pre-rendered reading pane
+ (#pane).
The controls form (#controls) carries hx-get="/readings" and fires on
any "change" bubbling up from its fields (htmx auto-includes an
hx-get element's enclosing form fields as the request's query
- params -- no hx-include needed). The date +/- buttons are separate
+ params -- no hx-include needed), so "display" needs no extra wiring
+ beyond living inside #controls. The date +/- buttons are separate
hx-get elements nested in the same form so their own field values are
included too; they override "date" via hx-vals. The theme <select>
has no server round trip: it swaps the #theme <link>'s href directly. */}}
@@ -48,6 +50,14 @@
<option value="1" {{if .All}}selected{{end}}>wszystkie części</option>
</select>
</label>
+
+ <label>układ
+ <select name="display">
+ <option value="horizontal" {{if eq .Display "horizontal"}}selected{{end}}>poziomo</option>
+ <option value="vertical" {{if eq .Display "vertical"}}selected{{end}}>kolumny</option>
+ <option value="interlinear" {{if eq .Display "interlinear"}}selected{{end}}>interlinearnie</option>
+ </select>
+ </label>
</form>
<label class="theme-picker">motyw