blob: 369e8c9c01bf2c6c722474d9116e8e5d2f3c9a58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<!DOCTYPE html>
<html>
<head>
<title>ODR-DabMux Configuration</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<script type="text/javascript" src="/static/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/static/intercooler-1.0.1.min.js"></script>
</head>
<body class="w3-container">
<h1 class="w3-blue-grey">Remote-Control: module {{module}}</h1>
<div class="w3-card-4">
<form class="w3-container" ic-on-error="alert(str)" ic-post-to="/rc/{{module}}/{{param}}">
<p />
{% if not list %}
<label>{{param}}:</label>
<input name="newvalue" type="text" value="{{value.decode()}}" autofocus>
{% else %}
<label>{{label}}:</label>
<select id="newvalue" name="newvalue">
{% for l in list %}
{% if (l["value"] == value.decode()) %}
<option selected value={{l["value"]}}>{{l["desc"]}}</option>
{% else %}
<option value={{l["value"]}}>{{l["desc"]}}</option>
{% endif %}
{% endfor %}
</select>
{% endif %}
<p />
<button class="w3-button w3-blue-grey">Update</button>
<p />
</form>
</div>
</body>
</html>
|