aboutsummaryrefslogtreecommitdiffstats
path: root/templates/dashboard.html
blob: 040538c30b63c1c528f5ac6c36f28357ec2059a9 (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
{% include "head.html" %}
<div class="content">
  <h1>Dashboard</h1>
  <div class="section">
    <h2>ODR-DabMux</h2>
    <p>www.opendigitalradio.org</p>
  </div>
  <div class="section">
    <h2>Remote control</h2>

    {% if let Some(e) = errors %}
    <p>Error!: {{ e }}</p>
    {% endif %}

    <table>
      <tr><th>Module</th><th>Parameter</th><th>Value</th></tr>
      {% for p in params %}
      <tr><td>{{ p.module }}</td><td>{{ p.param }}</td>
        <td>
          <input class="textinput" type="text" value="{{ p.value }}">
          <button class="btn" type="button" onclick="btn_dash_update(this, '{{ p.module }}', '{{ p.param }}')">Update</button>
        </td></tr>
      {% endfor %}
    </table>
  </div>
</div>
{% include "foot.html" %}
{# vi:set et sw=2 ts=2: #}