|
From: Chris W. <la...@us...> - 2001-10-24 23:08:04
|
Update of /cvsroot/openinteract/OpenInteract/pkg/base_page/template
In directory usw-pr-cvs1:/tmp/cvs-serv22705/template
Modified Files:
edit_document_box.tmpl page_directory_list.tmpl page_form.tmpl
Log Message:
more updates (stability! functionality!)
Index: edit_document_box.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/pkg/base_page/template/edit_document_box.tmpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** edit_document_box.tmpl 2001/10/20 15:14:30 1.2
--- edit_document_box.tmpl 2001/10/24 23:04:19 1.3
***************
*** 1,7 ****
[%- DEFAULT theme = OI.theme_properties;
! SET new_url = OI.make_url( base = '/BasePage/show/', edit = 1 );
! SET edit_url = OI.make_url( base = '/BasePage/show/', edit = 1,
location = location );
! SET remove_url = OI.make_url( base = '/BasePage/remove/',
location = location ); -%]
<font size="-1"">
--- 1,7 ----
[%- DEFAULT theme = OI.theme_properties;
! SET new_url = OI.make_url( base = '/Page/create/' );
! SET edit_url = OI.make_url( base = '/Page/show/', edit = 1,
location = location );
! SET remove_url = OI.make_url( base = '/Page/remove/',
location = location ); -%]
<font size="-1"">
Index: page_directory_list.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/pkg/base_page/template/page_directory_list.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** page_directory_list.tmpl 2001/10/20 15:14:30 1.1
--- page_directory_list.tmpl 2001/10/24 23:04:21 1.2
***************
*** 18,23 ****
[%- MACRO create_expand_choice BLOCK -%]
- [%- SET is_chosen = ( dir_info.0 == selected_dir ) ? 1 : 0 -%]
- [%- SET is_last = ( dir_info.0 == last_dir ) ? 1 : 0 -%]
[%- IF is_chosen -%]
[%- ( is_last ) ? '/images/file_minus_collapse_last.gif'
--- 18,21 ----
***************
*** 32,36 ****
[% MACRO show_files_in_directory BLOCK -%]
[%- WHILE ( page = children_files.get_next ) -%]
! [%- edit_url = OI.make_url( base = '/BasePage/show/', edit = 1,
location = page.location ) -%]
<tr bgcolor="[% PROCESS row_color %]">
--- 30,34 ----
[% MACRO show_files_in_directory BLOCK -%]
[%- WHILE ( page = children_files.get_next ) -%]
! [%- edit_url = OI.make_url( base = '/Page/show/', edit = 1,
location = page.location ) -%]
<tr bgcolor="[% PROCESS row_color %]">
***************
*** 52,56 ****
[%- DEFAULT theme = OI.theme_properties -%]
-
[%- PROCESS error_message -%]
--- 50,53 ----
***************
*** 62,66 ****
<div align="center">
! [% INCLUDE table_bordered_begin( table_width = '90%' ) -%]
[%- last_dir_index = dir_list.max;
--- 59,63 ----
<div align="center">
! [% INCLUDE table_bordered_begin( internal_padding = 1, table_width = '90%' ) -%]
[%- last_dir_index = dir_list.max;
***************
*** 68,74 ****
[% FOREACH dir_info = dir_list -%]
! [%- expand_choice = create_expand_choice();
! dir_url = OI.make_url( base = '/BasePage/listing/',
! selected_dir = dir_info.0 -%]
<tr bgcolor="[% PROCESS row_color( count = loop.count ) %]">
<td align="right">
--- 65,73 ----
[% FOREACH dir_info = dir_list -%]
! [%- is_chosen = ( dir_info.0 == selected_dir ) ? 1 : 0;
! is_last = ( dir_info.0 == last_dir ) ? 1 : 0;
! expand_choice = create_expand_choice();
! dir_url = OI.make_url( base = '/Page/directory_list/',
! selected_dir = dir_info.0 ) -%]
<tr bgcolor="[% PROCESS row_color( count = loop.count ) %]">
<td align="right">
Index: page_form.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/pkg/base_page/template/page_form.tmpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** page_form.tmpl 2001/10/24 20:53:51 1.2
--- page_form.tmpl 2001/10/24 23:04:21 1.3
***************
*** 1,7 ****
[%- DEFAULT theme = OI.theme_properties; count = 0 -%]
! [%- OI.box_add( 'edit_document_box', location = page.location );
[%- PROCESS error_message -%]
! [%- PROCESS static_message -%]
<div align="center">
--- 1,7 ----
[%- DEFAULT theme = OI.theme_properties; count = 0 -%]
! [%- OI.box_add( 'edit_document_box', location = page.location ); -%]
[%- PROCESS error_message -%]
! [%- PROCESS status_message -%]
<div align="center">
***************
*** 23,27 ****
[%- count = count + 1 -%]
! [%- location_plabel = '<br><font size="-1">(must be unique)</font>' -%]
[% INCLUDE label_form_text_row( label = 'Location', is_required = 1,
required_display = theme.required,
--- 23,27 ----
[%- count = count + 1 -%]
! [%- location_plabel = '<br><font size="-1"><em>must be unique</em></font>' -%]
[% INCLUDE label_form_text_row( label = 'Location', is_required = 1,
required_display = theme.required,
***************
*** 46,50 ****
[%- count = count + 1 -%]
! [%- box_plabel = '<font size="-1"><em>Separate each box by whitespace; order is not important</em></font>' -%]
[% INCLUDE label_form_text_row( label = 'Boxes', post_label = box_plabel,
name = 'boxes', value = page.boxes,
--- 46,50 ----
[%- count = count + 1 -%]
! [%- box_plabel = '<br><font size="-1"><em>Separate each box by whitespace; order is not important</em></font>' -%]
[% INCLUDE label_form_text_row( label = 'Boxes', post_label = box_plabel,
name = 'boxes', value = page.boxes,
***************
*** 52,56 ****
[%- count = count + 1 -%]
! [%- template_plabel = '<font size="-1"><em>main template to use; blank uses the default</em></font>' -%]
[% INCLUDE label_form_text_row( label = 'Main Template', post_label = template.plabel,
name = 'main_template', value = page.main_template,
--- 52,56 ----
[%- count = count + 1 -%]
! [%- template_plabel = '<br><font size="-1"><em>main template to use; blank uses the default</em></font>' -%]
[% INCLUDE label_form_text_row( label = 'Main Template', post_label = template.plabel,
name = 'main_template', value = page.main_template,
***************
*** 72,76 ****
[%- count = count + 1 -%]
! <tr bgcolor="[% PROCESS row_color %]"><td align="center">
<table border="0" cellpadding="1">
<tr align="center" valign="bottom">
--- 72,76 ----
[%- count = count + 1 -%]
! <tr bgcolor="[% PROCESS row_color %]"><td align="center" colspan="2">
<table border="0" cellpadding="1">
<tr align="center" valign="bottom">
***************
*** 91,100 ****
[%- count = count + 1 -%]
! [% INCLUDE label_row_begin( label = 'Updates' ) -%]
! <td>[%- PROCESS object_updates -%]</td>
! </tr>
[%- count = count + 1 -%]
! [% INCLUDE label_form_submit_row( value = 'Modify', reset = 1 ) -%]
[% PROCESS table_bordered_end -%]
--- 91,101 ----
[%- count = count + 1 -%]
! <tr bgcolor="[% PROCESS row_color %]"><td align="center" colspan="2">
! [% PROCESS show_label( label = 'Updates' ) %]<br>
! [%- PROCESS object_updates -%]
! </td></tr>
[%- count = count + 1 -%]
! [% INCLUDE form_submit_row( value = 'Modify', reset = 1 ) -%]
[% PROCESS table_bordered_end -%]
|