a b/web/views/assoc.tpl
1
%include('header.tpl', title="")
2
3
%include('menu.tpl', current='assoc')
4
5
%if len(active) == 0:
6
<p>No active Songcast Receivers found</p>
7
%elif  len(others) == 0:
8
<p>No inactive Songcast Receivers found</p>
9
%else:
10
11
<form action="/assoc" method="POST">
12
<table>
13
    <caption>Choose Master receiver</caption>
14
  <tr>
15
    <th>Select</th><th>Name</th><th>State</th><th>UUID</th><th>Sender URI</th>
16
  </tr>
17
%for receiver in active:
18
  <tr>
19
    <td><input type="radio" name="Master" value="{{receiver[2]}}"/></td>
20
    <td>{{receiver[0]}}</td>
21
    <td>{{receiver[1]}}</td>
22
    <td>{{receiver[2]}}</td>
23
    <td>{{receiver[3]}}</td>
24
  </tr>
25
%end
26
</table>
27
<p></p>
28
<table>
29
    <caption>Choose Associates</caption>
30
  <tr>
31
    <th>Select</th><th>Name</th><th>State</th><th>UUID</th>
32
  </tr>
33
%for receiver in others:
34
  <tr>
35
    <td><input type="checkbox" name="Assoc" value="{{receiver[2]}}"/></td>
36
    <td>{{receiver[0]}}</td>
37
    <td>{{receiver[1]}}</td>
38
    <td>{{receiver[2]}}</td>
39
  </tr>
40
%end
41
</table>
42
<p></p>
43
44
<input type="submit">
45
</form>
46
47
%end
48
49
%include('footer.tpl')