75 lines
No EOL
2.9 KiB
HTML
75 lines
No EOL
2.9 KiB
HTML
{{ define "config" }}
|
|
|
|
<body>
|
|
<div class="container mt-5">
|
|
<div class="row">
|
|
<div class="col">
|
|
<table class="table">
|
|
<form action="/save_config/" method="post">
|
|
<tr>
|
|
<td>Interfaces</td>
|
|
<td><input name="iface" type="text" class="form-control" value="{{ .Config.Iface }}"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Path to DB</td>
|
|
<td><input name="dbpath" type="text" class="form-control" value="{{ .Config.DbPath }}"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Host</td>
|
|
<td><input name="host" type="text" class="form-control" value="{{ .Config.GuiIP }}"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Port</td>
|
|
<td><input name="port" type="text" class="form-control" value="{{ .Config.GuiPort }}"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Timeout (seconds)</td>
|
|
<td><input name="timeout" type="text" class="form-control" value="{{ .Config.Timeout }}"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Shoutrrr URL</td>
|
|
<td><input name="shout" type="text" class="form-control" value="{{ .Config.ShoutURL }}"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Theme</td>
|
|
<td><select name="theme" class="form-select">
|
|
<option selected>{{ .Config.Theme }}</option>
|
|
{{ range .Themes }}
|
|
<option value="{{ . }}">{{ . }}</option>
|
|
{{ end }}
|
|
</select></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Ignore IP</td>
|
|
<td>
|
|
<select name="ignoreip" class="form-select">
|
|
<option selected value="{{ .Config.IgnoreIP }}">{{ .Config.IgnoreIP }}</option>
|
|
<option value="yes">yes</option>
|
|
<option value="no">no</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><button type="submit" class="btn btn-primary">Save</button></td>
|
|
<td></td>
|
|
</tr>
|
|
</form>
|
|
</table>
|
|
</div>
|
|
<div class="col">
|
|
<p>{{ .Version }}</p>
|
|
<div class="alert alert-info" role="alert">
|
|
<h4 class="alert-heading">Warning!</h4>
|
|
<p>After changing <b>Host</b> or <b>Port</b> you need to restart the app</p>
|
|
</div>
|
|
<br>
|
|
<form action="/clear/" method="post">
|
|
<button type="submit" class="btn btn-danger">Clear table</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{{ template "footer" }}
|
|
{{ end }} |