Add update of timezone setting

This commit is contained in:
Magnus Åhall 2024-06-27 10:02:11 +02:00
parent 65c0984348
commit 22f6b6a413
3 changed files with 33 additions and 1 deletions

View file

@ -95,11 +95,17 @@
</div>
<h1>Theme</h1>
<form action="/configuration/theme" id="theme-set">
<form action="/configuration/theme">
<select name="theme" onchange="console.log(this.form.submit())">
<option value="default_light" {{ if eq "default_light" .CONFIG.THEME }}selected{{ end }}>Default light</option>
<option value="gruvbox" {{ if eq "gruvbox" .CONFIG.THEME }}selected{{ end }}>Gruvbox</option>
</select>
</form>
<h1>Timezone</h1>
<form action="/configuration/timezone" method="post">
<input name="timezone" type="text" value="{{ .CONFIG.TIMEZONE }}">
<button style="margin-left: 8px;">Update</button>
</form>
{{ end }}