summaryrefslogtreecommitdiffstats
path: root/gui/views/rcparam.tpl
blob: edac5b72188253aa62d369c5ded3d1477915fe77 (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
<!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">
  </head>

  <body class="w3-container">
    <h1 class="w3-blue-grey">Remote-Control: module {{module}}</h1>
    <div class="w3-card-4"> 
      <form class="w3-container" method="post">
        <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" type="submit">Update</button>
        <p />
      </form>
    </div>
  </body>

</html>