blob: 32484b13fdf622100a6edec85334938a9c571afd (
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
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
72
73
74
75
|
[%# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#%]
[% PROCESS global/header.html.tmpl
title = "Group Membership Report"
yui = [ 'autocomplete' ]
style_urls = [ "extensions/BMO/web/styles/reports.css" ]
javascript_urls = [ "js/field.js" ]
%]
<form method="GET" action="page.cgi">
<input type="hidden" name="id" id="id" value="group_membership.html">
<table id="parameters">
<tr>
<th>User(s):</th>
<td>
[% INCLUDE global/userselect.html.tmpl
id => "who"
name => "who"
value => who.join(', ')
size => 40
classes => ["bz_userfield"]
multiple => 5
field_title => "One or more email address (comma delimited)"
%]
</td>
<td> </td>
<td>
<select name="output"
onchange="document.getElementById('id').value = 'group_membership.' + this.value">
<option value="html" [% 'selected' IF output == 'html' %]>HTML</option>
<option value="txt" [% 'selected' IF output == 'txt' %]>Text</option>
</select>
</td>
<td>
<input type="submit" value="Generate">
</td>
</tr>
</table>
</form>
[% IF users.size %]
<table border="0" cellspacing="0" id="report" class="hover" width="100%">
[% FOREACH u = users %]
<tr>
<th colspan="3">[% u.user.identity FILTER html %]</th>
</tr>
[% FOREACH g = u.groups %]
<tr>
<td> </td>
<td>[% g.name FILTER html %]</td>
<td>[% g.desc FILTER html %]</td>
<td>
[% IF g.via == '' %]
direct
[% ELSE %]
<i>[% g.via FILTER html %]</i>
[% END %]
</td>
</tr>
[% END %]
[% END %]
</table>
[% END %]
[% INCLUDE global/footer.html.tmpl %]
|