|
From: Chris W. <la...@us...> - 2001-10-14 20:41:10
|
Update of /cvsroot/openinteract/OpenInteract/pkg/classified/template
In directory usw-pr-cvs1:/tmp/cvs-serv3295/template
Modified Files:
classified_detail.tmpl classified_form.tmpl
classified_list.tmpl classified_tools_box.tmpl
Added Files:
classified_search_form.meta classified_search_form.tmpl
classified_search_results.meta classified_search_results.tmpl
Log Message:
updated templates to use template widgets
--- NEW FILE: classified_search_form.meta ---
name: classified_search_form
title: Classified search form
package: classified
Form for searching classified ads
--- NEW FILE: classified_search_form.tmpl ---
[%- DEFAULT theme = OI.theme_properties;
SET count = 0;
OI.box_add( 'classified_tools_box' ); -%]
[%- PROCESS error_message -%]
[%- PROCESS status_message -%]
<div align="center">
<h2>Search Classified Ads</h2>
<p align="left">Enter criteria below to search classified ads. The
more criteria you enter, the more restrictive your search and the
fewer results you will retrieve.</p>
<form name="classified_search" method="GET" action="/Classified/search/">
[% INCLUDE table_bordered_begin( table_width = '75%' ) -%]
[%- count = count + 1 -%]
[% INCLUDE label_form_text_row( label = 'Keywords', name = 'keyword' ) -%]
[%- count = count + 1 -%]
[% INCLUDE label_form_date_row( label = 'Posted After Date', name = 'posted_after' ) -%]
[%- count = count + 1 -%]
[% INCLUDE form_submit_row( value = 'Search' ) -%]
[% INCLUDE table_bordered_end() -%]
</form>
</div>
--- NEW FILE: classified_search_results.meta ---
name: classified_search_results
title: Classified search results
package: classified
Search results for classifieds, with surrounding goop along with the
actual listing
--- NEW FILE: classified_search_results.tmpl ---
[%- DEFAULT theme = OI.theme_properties;
OI.box_add( 'classified_tools_box' ) -%]
[%- PROCESS error_message -%]
[%- PROCESS status_message -%]
<div align="center">
<h2 align="left">Classified Listings</h2>
<div align="center">
[% IF iterator AND iterator.has_next -%]
<p>Following are the classifieds that match your criteria.</p>
[% PROCESS classified::classified_list -%]
[% ELSE -%]
<p align="left">No classifieds matching your criteria are currently in
the database.</p>
[% END -%]
</div>
Index: classified_detail.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/pkg/classified/template/classified_detail.tmpl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** classified_detail.tmpl 2001/08/13 16:10:15 1.4
--- classified_detail.tmpl 2001/10/14 20:41:07 1.5
***************
*** 1,18 ****
! [%- th = OI.theme_properties -%]
! [% OI.comp( 'showerror', error_msg = error_msg ) %]
! [% OI.box_add( 'classified_tools_box', object = classified, view = 'static' ) %]
<div align="center">
<h2>Classified Ad: [% classified.title %]</h2>
! <table border="0" bgcolor="[% th.border_color %]" cellpadding="1" cellspacing="0" width="80%">
! <tr><td>
!
! <table border="0" cellpadding="5" cellspacing="0"
! width="100%" bgcolor="[% th.bgcolor %]">
! <tr><td bgcolor="[% th.border_color %]">
! <font size="+1" color="[% th.label_font_color %]"><b>[% classified.title %]</b></font>
</td></tr>
--- 1,25 ----
! [% MACRO label_text_two_row BLOCK -%]
! <tr><td bgcolor="[% theme.even_color %]">
! <b>[% label %]</b>
! </td></tr>
! <tr><td>
! [% text %]
! </td></tr>
! [% END -%]
+ [%- OI.box_add( 'classified_tools_box', object = classified, view = 'static' );
+ DEFAULT theme = OI.theme_properties -%]
+
+ [%- PROCESS error_message -%]
+ [%- PROCESS status_message -%]
+
<div align="center">
<h2>Classified Ad: [% classified.title %]</h2>
! [% INCLUDE table_bordered_begin( table_width = '80%', border_width = 1 ) -%]
! <tr><td bgcolor="[% theme.border_color %]">
! <font size="+1" color="[% theme.label_font_color %]"><b>[% classified.title %]</b></font>
</td></tr>
***************
*** 31,79 ****
[% IF classified.deadline %]
! <tr><td bgcolor="[% th.even_color %]">
! <b>Deadline</b>
! </td></tr>
! <tr><td>
! [% classified.deadline %]
! </td></tr>
[% END %]
[% IF classified.required_skills %]
! <tr><td bgcolor="[% th.even_color %]">
! <b>Required Skills</b>
! </td></tr>
! <tr><td>
! [% classified.required_skills %]
! </td></tr>
[% END %]
[% IF classified.recommended_skills %]
! <tr><td bgcolor="[% th.even_color %]">
! <b>Recommended Skills</b>
! </td></tr>
! <tr><td>
! [% classified.recommended_skills %]
! </td></tr>
[% END %]
[% IF classified.location %]
! <tr><td bgcolor="[% th.even_color %]">
! <b>Location</b>
! </td></tr>
! <tr><td>
! [% classified.location %]
! </td></tr>
[% END %]
[% IF classified.application_info %]
! <tr><td bgcolor="[% th.even_color %]">
! <b>Application Information</b>
! </td></tr>
! <tr><td>
! [% classified.application_info %]
! </td></tr>
[% END %]
! <tr><td bgcolor="[% th.even_color %]">
<b>Contact Information</b>
</td></tr>
--- 38,66 ----
[% IF classified.deadline %]
! [% label_text_two_row( label = 'Deadline',
! text = classified.deadline ) -%]
[% END %]
[% IF classified.required_skills %]
! [% label_text_two_row( label = 'Required Skills',
! text = classified.required_skills ) -%]
[% END %]
[% IF classified.recommended_skills %]
! [% label_text_two_row( label = 'Recommended Skills',
! text = classified.recommended_skills ) -%]
[% END %]
[% IF classified.location %]
! [% label_text_two_row( label = 'Location',
! text = classified.location ) -%]
[% END %]
[% IF classified.application_info %]
! [% label_text_two_row( label = 'Appliction Information',
! text = classified.application_info ) -%]
[% END %]
! <tr><td bgcolor="[% theme.even_color %]">
<b>Contact Information</b>
</td></tr>
***************
*** 87,92 ****
</td></tr>
! </table>
!
! </td></tr>
! </table>
--- 74,76 ----
</td></tr>
! [% PROCESS table_bordered_end -%]
\ No newline at end of file
Index: classified_form.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/pkg/classified/template/classified_form.tmpl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** classified_form.tmpl 2001/08/15 13:38:05 1.6
--- classified_form.tmpl 2001/10/14 20:41:07 1.7
***************
*** 1,202 ****
! [%- th = OI.theme_properties -%]
! [% OI.comp( 'showerror', error_msg = error_msg ) %]
! [% OI.box_add( 'classified_tools_box', object = classified, view = 'form' ) %]
<div align="center">
! <h2>Add/Update Classified Ad</h2>
! <form name="classified" action="[% main_script %]/edit/" method="post"
onsubmit="return data_check( this )">
-
- <table border="0" bgcolor="[% th.border_color %]" width="80%"
- cellpadding="1" cellspacing="0">
- <tr><td>
! <table border="0" bgcolor="[% th.bgcolor %]" width="100%"
! cellpadding="5" cellspacing="0">
! <tr valign="top" bgcolor="[% th.head_bgcolor %]">
<th colspan="2">
! <font color="[% th.head_font_color %]">
! [% IF classified.classified_id %]Edit a Classified Item[% ELSE %]Create a New Classified Item[% END %]
</font>
</th>
</tr>
! <tr valign="top" bgcolor="[% th.even_color %]">
! <td align="right"><b>Title</b>[% th.required %]</td>
! <td><font size="-1">
! <input type="text" size="20" maxlength="50" name="title"
! value="[% classified.title %]">
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.odd_color %]">
! <td align="right"><b>Description</b>[% th.required %]</td>
! <td><font size="-1">
! <textarea rows="4" cols="30" wrap="virtual"
! name="description">[% OI.html_encode( classified.description ) %]</textarea>
! <br>HTML ok, but no funny stuff...
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.even_color %]">
! <td align="right"><b>Required Skills</b></td>
! <td><font size="-1">
! <textarea rows="4" cols="30" wrap="virtual"
! name="required_skills">[% OI.html_encode( classified.required_skills ) %]</textarea>
! <br>HTML ok, but no funny stuff...
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.odd_color %]">
! <td align="right"><b>Recommended Skills</b></td>
! <td><font size="-1">
! <textarea rows="4" cols="30" wrap="virtual"
! name="recommended_skills">[% OI.html_encode( classified.recommended_skills ) %]</textarea>
! <br>HTML ok, but no funny stuff...
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.even_color %]">
! <td align="right"><b>Location</b></td>
! <td><font size="-1">
! <input type="text" size="20" maxlength="50" name="location"
! value="[% classified.location %]">
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.odd_color %]">
! <td align="right"><b>Application Instructions</b></td>
! <td><font size="-1">
! <textarea rows="4" cols="30" wrap="virtual"
! name="application_info">[% OI.html_encode( classified.application_info ) %]</textarea>
! <br>HTML ok, but no funny stuff...
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.even_color %]">
! <td align="right"><b>Contact Person</b></td>
! <td><font size="-1">
! <input type="text" size="20" maxlength="50" name="contact"
! value="[% classified.contact %]">
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.odd_color %]">
! <td align="right"><b>Organization</b></td>
! <td><font size="-1">
! <input type="text" size="20" maxlength="50" name="organization"
! value="[% classified.organization %]">
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.even_color %]">
! <td align="right"><b>Phone</b></td>
! <td><font size="-1">
! <input type="text" size="20" maxlength="50" name="phone"
! value="[% classified.phone %]">
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.odd_color %]">
! <td align="right"><b>Fax</b></td>
! <td><font size="-1">
! <input type="text" size="20" maxlength="50" name="fax"
! value="[% classified.fax %]">
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.even_color %]">
! <td align="right"><b>E-Mail</b></td>
! <td><font size="-1">
! <input type="text" size="20" maxlength="50" name="email"
! value="[% classified.email %]">
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.odd_color %]">
! <td align="right"><b>Website URL</b></td>
! <td><font size="-1">
! <input type="text" size="20" maxlength="50" name="url"
! value="[% classified.url %]">
! </font></td>
! </tr>
! <tr valign="top" bgcolor="[% th.even_color %]">
! <td align="right"><b>Deadline</b></td>
! <td><font size="-1">
! [%- deadline_info = OI.date_into_object( classified.deadline ) -%]
! [%- OI.comp( 'dateselect', month_value = deadline_info.month,
! day_value = deadline_info.day,
! year_value = deadline_info.year, blank = 1,
! field_prefix = 'deadline' ) -%]
! </font> </td>
! </tr>
[% IF classified.tmp_security_level >= OI.security_level.write -%]
[%- active_choice = classified.active || 'no' -%]
! <tr bgcolor="[% th.admin_color %]">
! <td align="right"><b>Active?</b></td>
! <td><font size="-1">
! <select name="active">
! <option value="yes"[% ' SELECTED' IF active_choice == 'yes' %]>Yes</option>
! <option value="no"[% ' SELECTED' IF active_choice == 'no' %]>no</option>
! </select>
! </font></td>
! </tr>
!
[% END -%]
! <tr valign="top" bgcolor="[% th.odd_color %]">
! <td colspan="2" align="right"><input type="submit" value="Modify"></td>
! </tr>
! <tr valign="top" bgcolor="[% th.head_bgcolor %]"><td colspan="2"> </td></tr>
!
! </table>
! </td></tr>
! </table>
! <input type="hidden" name="classified_id"
! value="[% classified.classified_id %]">
</form>
-
- </div>
! <script language="Javascript">
!
! var default_value_fields = new Array( 'title', 'description', 'deadline' );
! var date_fields = new Array( 'deadline' );
! var field_titles = new Object;
! field_titles[ 'title' ] = 'Title';
! field_titles[ 'description' ] = 'Classified';
! field_titles[ 'deadline' ] = 'Deadline';
!
! function data_check ( form ) {
! var i;
!
! // Check to see that all .value fields have info
! for ( i = 0; i < default_value_fields.length; i++ ) {
! var field = default_value_fields[ i ];
! var value = form[ field ].value;
! if ( value == '' || value == null ) {
! alert( 'Please enter information in ' + field_titles[ field ] + '. Form not submitted.' );
! return false;
! }
! }
! return true;
! }
!
! function confirm_remove( classified_id ) {
! if ( confirm( 'Are you sure you want to remove classified item ' + classified_id + '?' ) ) {
! var URL = '[% main_script %]/remove/?classified_id=' + classified_id;
! self.location = URL;
! }
! }
!
! </script>
\ No newline at end of file
--- 1,115 ----
! [%- DEFAULT theme = OI.theme_properties;
! OI.box_add( 'classified_tools_box', object = classified, view = 'form' ) -%]
!
! [% PROCESS error_message %]
<div align="center">
! [%- display_action = ( classified.id ) ? 'Update' : 'Create' -%]
! <h2>[% display_action %] a Classified Ad</h2>
! <form name="classified" action="/Classified/edit/" method="post"
onsubmit="return data_check( this )">
! [% INCLUDE table_bordered_begin( table_width = '80%', border_width = 1 ) -%]
! <tr valign="top" bgcolor="[% theme.head_bgcolor %]">
<th colspan="2">
! <font color="[% theme.head_font_color %]">
! [% display_action %] a Classified Item
</font>
</th>
</tr>
! [%- count = 0 -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_text_row( label = 'Title', is_required = 1,
! name = 'title', value = classified.title,
! size = 20, maxlength = 50 ) -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_textarea_row( label = 'Description', is_required = 1,
! name = 'description', rows = 4,
! cols = 30, wrap = virtual,
! value = OI.html_encode( classified.description ) ) -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_textarea_row( label = 'Required Skills',
! name = 'required_skills', rows = 4,
! cols = 30, wrap = virtual,
! value = OI.html_encode( classified.required_skills ) ) -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_textarea_row( label = 'Recommended Skills',
! name = 'recommended_skills', rows = 4,
! cols = 30, wrap = virtual,
! value = OI.html_encode( classified.recommended_skills ) ) -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_text_row( label = 'Location',
! name = 'location', value = classified.location,
! size = 20, maxlength = 50 ) -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_textarea_row( label = 'Application Instructions',
! name = 'application_info', rows = 4,
! cols = 30, wrap = virtual,
! value = OI.html_encode( classified.application_info ) ) -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_text_row( label = 'Contact Person',
! name = 'contact', value = classified.contact,
! size = 20, maxlength = 50 ) -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_text_row( label = 'Organization',
! name = 'organization', value = classified.organization,
! size = 20, maxlength = 50 ) -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_text_row( label = 'Phone',
! name = 'phone', value = classified.phone,
! size = 20, maxlength = 50 ) -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_text_row( label = 'Fax',
! name = 'fax', value = classified.fax,
! size = 20, maxlength = 50 ) -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_text_row( label = 'E-Mail',
! name = 'email', value = classified.email,
! size = 20, maxlength = 50 ) -%]
+ [%- count = count + 1 -%]
+ [% INCLUDE label_form_text_row( label = 'Website URL',
+ name = 'url', value = classified.url,
+ size = 20, maxlength = 50 ) -%]
! [%- count = count + 1 -%]
! [% INCLUDE label_form_date_row( label = 'Deadline',
! name = 'deadline', value = classified.deadline ) -%]
[% IF classified.tmp_security_level >= OI.security_level.write -%]
[%- active_choice = classified.active || 'no' -%]
! [% INCLUDE label_form_select_row( color = theme.admin_color,
! label = 'Active?',
! picked = active_choice,
! name = 'active', plain = 1,
! value_list = [ 'yes', 'no' ],
! label_list = [ 'Yes', 'No' ] ) -%]
[% END -%]
! [%- count = count + 1 -%]
! [% INCLUDE form_submit_row( value = 'Modify' ) -%]
! <tr valign="top" bgcolor="[% theme.head_bgcolor %]"><td colspan="2"> </td></tr>
! [% PROCESS table_bordered_end -%]
! [% PROCESS form_hidden( name = 'classified_id', value = classified.id ) -%]
</form>
! </div>
\ No newline at end of file
Index: classified_list.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/pkg/classified/template/classified_list.tmpl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** classified_list.tmpl 2001/08/13 16:10:15 1.6
--- classified_list.tmpl 2001/10/14 20:41:07 1.7
***************
*** 1,75 ****
- [%- th = OI.theme_properties -%]
- [%- OI.comp( 'showerror', error_msg = error_msg ) -%]
- [%- OI.box_add( 'classified_tools_box' ) -%]
-
- <div align="center">
-
- <h2 align="left">Classified Listings</h2>
-
- [% IF classified_iterator AND classified_iterator.has_next -%]
-
- <table border="0" bgcolor="[% th.border_color %]"
- cellspacing="0" cellpadding="1">
- <tr><td>
-
- <table border="0" bgcolor="[% th.classified_border_color %]" width="100%"
- cellspacing="0" cellpadding="5">
- <tr align="center" bgcolor="[% th.head_bgcolor %]" >
- <td><font color="[% th.head_font_color %]"><b>Posted on</b></font></td>
- <td><font color="[% th.head_font_color %]"><b>By</b></font></td>
- <td><font color="[% th.head_font_color %]"><b>Title</b></font></td>
- <td><font color="[% th.head_font_color %]"><b>Deadline</b></font></td>
- <td><font color="[% th.head_font_color %]"><b>Actions</b></font></td></tr>
! [%- count = 0 -%]
! [% WHILE ( classified = classified_iterator.get_next ) -%]
! [%- SET row_color = th.odd_color -%]
! [%- SET row_color = th.even_color IF count mod 2 == 0 -%]
! <tr bgcolor="[% row_color %]" valign="top">
<td align="center"><font size="-1">[% classified.posted_on %]</font></td>
<td align="center"><font size="-1">
! [%- poster = classified.posted_by_user -%]
! [%- IF poster -%]
! [%- poster_oi = poster.object_description -%]
! <a href="[% poster_oi.url %]">[% poster.login_name %]</a>
! [%- ELSE -%]
! public
! [%- END -%]
! </font></td>
<td><font size="-1">[% classified.title %]</font></td>
! <td align="center"><font size="-1">
! [% classified.deadline %]
! </font></td>
! <td><font size="-1">
! <a href="[% main_script %]/show/?classified_id=[% classified.classified_id %]">Detail</a>
! | <a href="javascript:notify( '[% classified.classified_id %]' )">Notify</a>
[%- IF classified.tmp_security_level == OI.security_level.write -%]
! | <a href="[% main_script %]/show/?edit=1;classified_id=[% classified.classified_id %]">Edit</a>
[% END -%]
</font></td>
</tr>
! [%- count = count + 1 -%]
! [% END %]
! </table>
!
! </td></tr>
! </table>
- [% ELSE %]
- <p align="left">No classifieds are currently in the database.</p>
- [% END %]
! </div>
! <script language="Javascript">
! function notify ( classified_id ) {
! var email = prompt( 'Who should receive this classified object? (e-mail address only)' );
! if ( email != '' && email != null ) {
! var URL = '/Popup[% main_script %]/notify/?classified_id=' + classified_id + ';email=' + escape( email );
! var notifyWin = window.open( URL, 'notifyWin', 'width=200,height=200' );
! notifyWin.focus();
! }
! }
! </script>
\ No newline at end of file
--- 1,36 ----
! [% BLOCK classified_row -%]
! [%- SET poster = classified.posted_by_user;
! SET poster_oi = poster.object_description IF poster;
! SET view_url = OI.make_url( base = '/Classified/show/',
! classified_id = classified.id );
! SET edit_url = OI.make_url( base = '/Classified/show/', edit = 1,
! classified_id = classified.id );
! -%]
! <tr valign="top" align="center" bgcolor="[% PROCESS row_color %]">
<td align="center"><font size="-1">[% classified.posted_on %]</font></td>
<td align="center"><font size="-1">
! [%- IF poster %]<a href="[% poster_oi.url %]">[% poster.login_name %]</a>
! [%- ELSE %]public[% END %]</font></td>
<td><font size="-1">[% classified.title %]</font></td>
! <td align="center"><font size="-1">[% classified.deadline %] </font></td>
! <td><font size="-1"><a href="[% view_url %]">Detail</a>
[%- IF classified.tmp_security_level == OI.security_level.write -%]
! | <a href="[% edit_url %]">Edit</a>
[% END -%]
</font></td>
</tr>
! [% END -%]
! [% INCLUDE table_bordered_begin() -%]
! [% INCLUDE header_row( labels = [ 'Posted On', 'By', 'Title', 'Deadline', 'Actions'] ) -%]
! [% count = 1 -%]
! [% WHILE ( classified = iterator.get_next ) -%]
! [% PROCESS classified_row -%]
! [%- count = count + 1 -%]
! [% END -%]
! [% PROCESS table_bordered_end() -%]
\ No newline at end of file
Index: classified_tools_box.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/pkg/classified/template/classified_tools_box.tmpl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** classified_tools_box.tmpl 2001/08/13 16:10:15 1.4
--- classified_tools_box.tmpl 2001/10/14 20:41:07 1.5
***************
*** 1,11 ****
! [%- th = OI.theme_properties -%]
<font size="-1">
! [% th.bullet %] <a href="/Classified/listing/">List classified ads</a><br>
! [% th.bullet %] <a href="/Classified/show/?edit=1">Create a new classified ad</a><br>
[%- IF object and object.id and object.tmp_security_level == OI.security_level.write -%]
! [% th.bullet %] <a href="/Classified/remove/?classified_id=[% object.id %]">Remove this classified ad</a><br>
! [% th.bullet %] <a href="/Classified/show/?edit=1;classified_id=[% object.id %]">Edit this classified ad</a><br>
! [% th.bullet %] <a href="/Classified/show/?classified_id=[% object.id %]">View this classified ad</a><br>
! [% END -%]
</font>
--- 1,18 ----
! [%- DEFAULT theme = OI.theme_properties;
! search_url = OI.make_url( base = '/Classified/search_form/' );
! new_url = OI.make_url( base = '/Classified/show/', edit = 1 ); -%]
<font size="-1">
! [% theme.bullet %] <a href="[% search_url %]">Search classified ads</a><br>
! [% theme.bullet %] <a href="[% new_url %]">Create a new classified ad</a>
[%- IF object and object.id and object.tmp_security_level == OI.security_level.write -%]
! [%- remove_url = OI.make_url( base = '/Classified/remove/', classified_id = classified.id );
! view_url = OI.make_url( base = '/Classified/show/', classified_id = classified.id );
! edit_url = OI.make_url( base = '/Classified/show/', edit = 1, classified_id = classified.id ); -%]
! <br>
! [%- theme.bullet %] <a href="[% remove_url %]">Remove this classified ad</a><br>
! [%- theme.bullet %] <a href="[% edit_url %]">Edit this classified ad</a><br>
! [%- theme.bullet %] <a href="[% view_url %]">View this classified ad</a>
! [%- END -%]
!
</font>
|