Update of /cvsroot/openinteract/OpenInteract/pkg/object_activity/template
In directory usw-pr-cvs1:/tmp/cvs-serv26763/template
Added Files:
listing.meta listing.tmpl search_form.meta search_form.tmpl
search_results.meta search_results.tmpl
Log Message:
added module to browse through object activity logs
--- NEW FILE: listing.meta ---
name: listing
title: List object activity
package: object_activity
Simple table that displays object_activity
--- NEW FILE: listing.tmpl ---
[%########################################
listing( activity_list, object_info, user_info )
Display activity records.
########################################-%]
[%- MACRO show_with_url( text, url ) BLOCK -%]
[%- IF url %]<a href="[% url %]">[% END %][% text %][% IF url %]</a>[% END -%]
[%- END -%]
[%- MACRO activity_row BLOCK -%]
<tr bgcolor="[% PROCESS row_color %]" valign="middle">
<td>[% record.action_on %]</td>
<td>[% record.action %]</td>
<td>[% record.object_type %]</td>
<td>[% show_with_url( record.title, record.display_url ) %]</td>
<td>[% show_with_url( record.login_name, record.user_display_url ) %]</td>
</tr>
[%- END -%]
[%- DEFAULT table_width = '75%' -%]
[% INCLUDE table_bordered_begin -%]
[% INCLUDE header_row( labels = [ 'Date', 'Action', 'Type', 'Title', 'User' ] ) -%]
[% FOREACH record = activity_list -%]
[% activity_row( count = loop.count ) -%]
[% END -%]
[% PROCESS table_bordered_end -%]
--- NEW FILE: search_form.meta ---
name: search_form
title: Enter criteria for activity
package: object_activity
Search form for users to enter criteria to find object activity
--- NEW FILE: search_form.tmpl ---
[%########################################
DISPLAY START
########################################-%]
[%- DEFAULT theme = OI.theme_properties;
SET count = 0; -%]
[%- PROCESS error_message -%]
<div align="center">
<h2>Search Object Activity</h2>
<p align="left">Enter criteria below to search the object activity
logs. The more criteria you enter, the more restrictive your search
and the fewer results you will retrieve.</p>
<form name="activity_search" method="GET" action="/ObjectActivity/search/">
[% INCLUDE table_bordered_begin( width = '75%' ) -%]
[%- count = count + 1 -%]
[% INCLUDE label_form_login_row( label = 'Activity By', name = 'action_by',
valign = 'top', size = 5 ) -%]
[%- count = count + 1 -%]
[% INCLUDE label_form_date_row( label = 'Activity On', name = 'action_on' ) %]
[%- count = count + 1 -%]
[% INCLUDE label_form_select_row( label = 'Activity Type', plain = 1,
name = 'action',
first_label = 'Actions...',
value_list = [ 'create', 'update', 'remove' ],
label_list = [ 'Create', 'Update', 'Remove' ] ) %]
[%- count = count + 1 -%]
[% INCLUDE label_form_select_row( label = 'Object Type', plain = 1,
name = 'class',
first_label = 'Types...',
value_list = class_list,
label_list = class_name_list ) -%]
[%- count = count + 1 -%]
[% INCLUDE label_form_text_row( label = 'Object ID', name = 'object_id' ) -%]
[%- count = count + 1 -%]
[% INCLUDE form_submit_row( value = 'Search' ) -%]
[% INCLUDE table_bordered_end() -%]
</form>
</div>
--- NEW FILE: search_results.meta ---
name: search_results
title: Activity search results
package: object_activity
Results page for object activity search
--- NEW FILE: search_results.tmpl ---
<div align="center">
<h2>Activity Search Results</h2>
<p align="left">Following are the results matching your search of
object activity.</p>
[% INCLUDE object_activity::listing %]
</div>
|