Parent: [b38fe7] (diff)

Child: [7a19cd] (diff)

Download this file

assoc.tpl    50 lines (43 with data), 1.1 kB

 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
40
41
42
43
44
45
46
47
48
49
%include('header.tpl', title="", refresh=10)
%include('menu.tpl', current='assoc')
%if len(active) == 0:
<p>No active Songcast Receivers found</p>
%elif len(others) == 0:
<p>No inactive Songcast Receivers found</p>
%else:
<form action="/assoc" method="POST">
<table>
<caption>Choose Master receiver</caption>
<tr>
<th>Select</th><th>Name</th><th>State</th><th>UUID</th><th>Sender URI</th>
</tr>
%for receiver in active:
<tr>
<td><input type="radio" name="Master" value="{{receiver[2]}}"/></td>
<td>{{receiver[0]}}</td>
<td>{{receiver[1]}}</td>
<td>{{receiver[2]}}</td>
<td>{{receiver[3]}}</td>
</tr>
%end
</table>
<p></p>
<table>
<caption>Choose Associates</caption>
<tr>
<th>Select</th><th>Name</th><th>State</th><th>UUID</th>
</tr>
%for receiver in others:
<tr>
<td><input type="checkbox" name="Assoc" value="{{receiver[2]}}"/></td>
<td>{{receiver[0]}}</td>
<td>{{receiver[1]}}</td>
<td>{{receiver[2]}}</td>
</tr>
%end
</table>
<p></p>
<input type="submit">
</form>
%end
%include('footer.tpl')