The reboot links on the Overview open the question instead of sending you to the Advanced page, where the button is out of sight. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
69 lines
3.0 KiB
HTML
69 lines
3.0 KiB
HTML
{{define "content"}}
|
|
<section class="panel">
|
|
<h2>Settings</h2>
|
|
<p>The complete settings: the <code>router</code> options of nixos-router as JSON, plus <code>system</code>.
|
|
They are checked when applied; nothing changes until then.</p>
|
|
<form method="post" action="/advanced">
|
|
<input type="hidden" name="csrf" value="{{.CSRF}}">
|
|
<textarea name="settings" rows="30" spellcheck="false">{{.Data.Settings}}</textarea>
|
|
<button>Save</button>
|
|
</form>
|
|
</section>
|
|
|
|
<div class="cols">
|
|
|
|
<section class="panel">
|
|
<h2>Appearance</h2>
|
|
<form method="post" action="/prefs" class="narrow">
|
|
<input type="hidden" name="csrf" value="{{.CSRF}}">
|
|
<label>Theme
|
|
<select name="theme">
|
|
<option value="" {{if eq .Data.Theme ""}}selected{{end}}>Automatic (follow the browser or system)</option>
|
|
<option value="light" {{if eq .Data.Theme "light"}}selected{{end}}>Light</option>
|
|
<option value="dark" {{if eq .Data.Theme "dark"}}selected{{end}}>Dark</option>
|
|
</select>
|
|
</label>
|
|
<p class="hint">Applies to everyone using this web UI, right away.</p>
|
|
<button>Save</button>
|
|
</form>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<h2>Dashboard</h2>
|
|
<form method="post" action="/prefs" class="narrow">
|
|
<input type="hidden" name="csrf" value="{{.CSRF}}">
|
|
<label>Ping targets <input name="pingTargets" value="{{.Data.PingTargets}}" spellcheck="false"></label>
|
|
<p class="hint">Up to 5 IP addresses, separated by commas. <code>gateway</code> is the provider's end of the line.
|
|
Takes effect right away; no apply needed.</p>
|
|
<button>Save</button>
|
|
</form>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<h2>Password</h2>
|
|
<p>One password for this web UI and for root on the console and over SSH.</p>
|
|
<form method="post" action="/password" class="narrow">
|
|
<input type="hidden" name="csrf" value="{{.CSRF}}">
|
|
<label>Current password <input type="password" name="current" autocomplete="current-password" required></label>
|
|
<label>New password (at least 8 characters) <input type="password" name="new" autocomplete="new-password" minlength="8" required></label>
|
|
<label>New password again <input type="password" name="confirm" autocomplete="new-password" minlength="8" required></label>
|
|
<button>Change password</button>
|
|
</form>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<h2>Reboot</h2>
|
|
<p>Restarts the router; routing stops for a minute or two. A new kernel from an update only runs after this.</p>
|
|
<form method="post" action="/reboot" data-dialog="Reboot the router now? Routing stops for a minute or two." data-dialog-ok="Reboot"><input type="hidden" name="csrf" value="{{.CSRF}}"><button>Reboot</button></form>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<h2>Backup</h2>
|
|
<p>Everything on <code>/var/lib/router</code>: settings, PPPoE password, WireGuard keys, passwords, the web UI's
|
|
certificate and the dashboard history. Keep the file safe. To restore, put it on a USB stick and run
|
|
<code>router-setup</code> from the installer: it offers to install from it.</p>
|
|
<form method="post" action="/backup"><input type="hidden" name="csrf" value="{{.CSRF}}"><button>Download backup</button></form>
|
|
</section>
|
|
</div>
|
|
{{end}}
|