diff options
Diffstat (limited to 'templates/web/default/admin/search_reports.html')
-rw-r--r-- | templates/web/default/admin/search_reports.html | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/templates/web/default/admin/search_reports.html b/templates/web/default/admin/search_reports.html index e2769e5ca..3c8b21a71 100644 --- a/templates/web/default/admin/search_reports.html +++ b/templates/web/default/admin/search_reports.html @@ -1,12 +1,5 @@ [% INCLUDE 'admin/header.html' title=loc('Search Reports') %] - -[% BLOCK value_or_nbsp -%] - [%- IF value %][% value | html %][% ELSE %] [% END %] -[%- END %] - -[% BLOCK format_time -%] - [%- IF time %][% time.ymd %] [% time.hms %][% ELSE %] [% END %] -[%- END %] +[% 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">Search:</label> <input type="text" name="search" size="30" id="search"> @@ -61,40 +54,8 @@ [%- END -%] </table> -<h2>Updates</h2> +[% INCLUDE 'admin/list_updates.html' %] -<table cellspacing="0" cellpadding="2" border="1"> - <tr> - <th>[% loc('ID') %]</th> - <th>[% loc('State') %]</th> - <th>[% loc('Name') %]</th> - <th>[% loc('Email') %]</th> - <th>[% loc('Created') %]</th> - <th>[% loc('Anonymous') %]</th> - <th>[% loc('Cobrand') %]</th> - <th>[% loc('Text') %]</th> - <th>[% loc('*') %]</th> - </tr> -[% FOREACH update IN updates -%] - <tr[% ' class="hidden"' IF update.state == 'hidden' || ( problem.state && problem.state == 'hidden' ) %]> - <td>[%- IF update.state == 'confirmed' -%] - [%- cobrand_data = update.cobrand_data %] - [%- cobrand_data = c.data_for_generic_update IF !update.cobrand %] - <a href="[% c.uri_for_email( '/report', update.problem.id, cobrand_data ) %]#update_[% update.id %]">[% update.id %]</a> - [%- ELSE %] - [%- update.id %] - [%- END -%]</td> - <td>[% update.state %]</td> - <td>[% update.name | html %]</td> - <td>[% update.user.email | html %]</td> - <td>[% PROCESS format_time time=update.created %]</td> - <td>[% IF update.anonymous %][% loc('Yes') %][% ELSE %][% loc('No') %][% END %]</td> - <td>[% update.cobrand %]<br>[% update.cobrand_data | html %]</td> - <td>[% update.text | html %]</td> - <td><a href="[% c.uri_for( 'update_edit', update.id ) %]">Edit</a></td> - <tr> -[% END -%] -</table> [% END %] [% INCLUDE 'admin/footer.html' %] |