forked from sympa-community/sympa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubindex.tt2
71 lines (64 loc) · 2.38 KB
/
subindex.tt2
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!-- $Id$ -->
<h2>[%|loc%]List of subscriptions to moderate[%END%]</h2>
[% IF mod_subscription %]
<form class="noborder toggleContainer" data-toggle-selector="input[name='id']"
action="[% path_cgi %]" method="POST" name="myform">
<fieldset>
<input type="hidden" name="list" value="[% list %]" />
<table class="responsive listOfItems">
<caption>[%|loc%]List of subscriptions to moderate[%END%]</caption>
<tr>
<th><a href="#"
data-tooltip aria-haspopup="true"
title="[%|loc%]Toggle Selection[%END%]"
class="toggleButton"><i class="fa fa-check-square-o"></i> </a></th>
<th colspan="2">[%|loc%]Email[%END%]</th>
<th>[%|loc%]Name[%END%]</th>
<th>[%|loc%]Date[%END%]</th>
<th>[%|loc%]Additional information[%END%]</th>
</tr>
[% IF subscriptions %]
[% FOREACH sub = subscriptions %]
[% IF dark == '1' %]
<tr>
[% ELSE %]
<tr class="color0">
[% END %]
<td>
<input type="checkbox" name="id" value="[% sub.key %]" />
</td>
<td colspan="2">
[% sub.value.email %]
</td>
<td>
[% sub.value.gecos %]
</td>
<td>
[% sub.value.date %]
</td>
<td class="text-left">
[% FOREACH ca_k IN list_conf.custom_attribute %]<b>[% ca_k.name %][%|loc%]:[%END%] </b>[% IF sub.value.custom_attribute.item(ca_k.id).value %][% sub.value.custom_attribute.item(ca_k.id).value %][% ELSE %]-[% END %]<br>[% END %]
</td>
</tr>
[% IF dark == '1' %]
[% SET dark = 0 %]
[% ELSE %]
[% SET dark = 1 %]
[% END %]
[% END %]
[% ELSE %]
<tr colspan="4"><th>[%|loc%]No subscription requests[%END%]</th></TR>
[% END %]
</table>
<input type="hidden" name="previous_action" value="subindex" />
<input type="hidden" name="previous_list" value="[% list %]" />
<input class="MainMenuLinks toggleButton" type="button"
value="[%|loc%]Toggle Selection[%END%]" />
<input class="MainMenuLinks" type="submit" name="action_add_fromsub" value="[%|loc%]Add selected addresses[%END%]" />
<input class="MainMenuLinks" type="submit" name="action_ignoresub" value="[%|loc%]Reject selected addresses[%END%]" />
</fieldset>
</form>
[% ELSE %]
<p class="small-8 small-centered columns alert-box info text-center">[%|loc%]No subscription requests[%END%]</p>
[% END %]
<!-- end subindex.tt2 -->