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