blob: 3809965f66521bc6f399cf7340b6e6478e987d05 (
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
|
[% INCLUDE 'admin/header.html' title=loc('Search Reports') %]
[% PROCESS 'admin/report_blocks.html' %]
<form method="get" action="[% c.uri_for('search_reports') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
<label for="search">[% loc('Search:') %]</label> <input type="text" name="search" size="30" id="search">
</form>
[% IF searched %]
<table cellspacing="0" cellpadding="2" border="1">
<tr>
<th>[% loc('ID') %]</th>
<th>[% loc('Title') %]</th>
<th>[% loc('Name') %]</th>
<th>[% loc('Email') %]</th>
<th>[% loc('Council') %]</th>
<th>[% loc('Category') %]</th>
<th>[% loc('Anonymous') %]</th>
<th>[% loc('Cobrand') %]</th>
<th>[% loc('Created') %]</th>
<th>[% loc('State') %]</th>
<th>[% loc('When sent') %]</th>
<th>*</th>
</tr>
[%- FOREACH problem IN problems %]
<tr[% ' class="hidden"' IF problem.state == 'hidden' %]>
<td>[%- IF problem.state == 'confirmed' || problem.state == 'fixed' -%]
[%- cobrand_data = problem.cobrand_data %]
[%- cobrand_data = c.data_for_generic_problem IF !problem.cobrand %]
<a href="[% c.uri_for_email( '/report', problem.id, cobrand_data ) %]">[% problem.id %]</a>
[%- ELSE %]
[%- problem.id %]
[%- END -%]</td>
<td>[% PROCESS value_or_nbsp value=problem.title %]</td>
<td>[% PROCESS value_or_nbsp value=problem.name %]</td>
<td>[% PROCESS value_or_nbsp value=problem.user.email %]</td>
<td>[%- IF edit_council_contacts -%]
<a href="[% c.uri_for('council_contacts', problem.council ) %]">[% PROCESS value_or_nbsp value=problem.council %]</a>
[%- ELSE -%]
[%- PROCESS value_or_nbsp value=problem.council -%]
[%- END -%]</td>
<td>[% PROCESS value_or_nbsp value=problem.category %]</td>
<td>[% IF problem.anonymous %][% loc('Yes') %][% ELSE %][% loc('No') %][% END %]</td>
<td>[% problem.cobrand %]<br>[% problem.cobrand_data | html %]</td>
<td>[% PROCESS format_time time=problem.created %]</td>
<td>[% problem.state %]<small>
[%- IF problem.state == 'fixed' || problem.state == 'confirmed' %]<br>[% loc('Confirmed:' ) %] [% PROCESS format_time time=problem.confirmed %][% END -%]
[%- IF problem.state == 'fixed' %]<br>[% loc('Fixed:') %] [% PROCESS format_time time=problem.lastupdate %][% END -%]
[%- IF problem.state == 'confirmed' %]<br>[% loc('Last update:') %] [% PROCESS format_time time=problem.lastupdate %][% END -%]</small>
</td>
<td>[% PROCESS format_time time=problem.whensent %]</td>
<td><a href="[% c.uri_for( 'report_edit', problem.id ) %]">[% loc('Edit') %]</a></td>
</tr>
[%- END -%]
</table>
[% INCLUDE 'admin/list_updates.html' %]
[% END %]
[% INCLUDE 'admin/footer.html' %]
|