|
From: Chris W. <la...@us...> - 2001-11-26 06:29:34
|
Update of /cvsroot/openinteract/OpenInteract/pkg/base_page/template
In directory usw-pr-cvs1:/tmp/cvs-serv15185/template
Modified Files:
page_form.tmpl
Log Message:
updated the form to pick a storage type and enter the content location
if appropriate
Index: page_form.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/pkg/base_page/template/page_form.tmpl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** page_form.tmpl 2001/10/29 05:16:25 1.6
--- page_form.tmpl 2001/11/26 06:29:31 1.7
***************
*** 87,94 ****
[%- count = count + 1 -%]
<tr bgcolor="[% PROCESS row_color %]"><td align="center" colspan="2">
<table border="0" cellpadding="1">
<tr align="center" valign="bottom">
<td>[% PROCESS show_label( label = 'Active?') %]</td>
- <td>[% PROCESS show_label( label = 'Store as file?') %]</td>
<td>[% PROCESS show_label( label = 'Parse as template?') %]</td>
</tr>
--- 87,94 ----
[%- count = count + 1 -%]
<tr bgcolor="[% PROCESS row_color %]"><td align="center" colspan="2">
+
<table border="0" cellpadding="1">
<tr align="center" valign="bottom">
<td>[% PROCESS show_label( label = 'Active?') %]</td>
<td>[% PROCESS show_label( label = 'Parse as template?') %]</td>
</tr>
***************
*** 96,108 ****
<td>[% INCLUDE form_checkbox( name = 'is_active', value = 'yes',
picked = page.is_active ) %]</td>
- <td>[% INCLUDE form_checkbox( name = 'is_file', value = 'yes',
- picked = page.is_file ) %]</td>
<td>[% INCLUDE form_checkbox( name = 'template_parse', value = 'yes',
picked = page.template_parse ) %]</td>
</tr>
</table>
</tr>
[%- count = count + 1 -%]
<tr bgcolor="[% PROCESS row_color %]"><td align="center" colspan="2">
[% PROCESS show_label( label = 'Updates' ) %]<br>
--- 96,124 ----
<td>[% INCLUDE form_checkbox( name = 'is_active', value = 'yes',
picked = page.is_active ) %]</td>
<td>[% INCLUDE form_checkbox( name = 'template_parse', value = 'yes',
picked = page.template_parse ) %]</td>
</tr>
</table>
+
</tr>
[%- count = count + 1 -%]
+ [%- source_value = [ 'file', 'database', 'http', 'alias' ];
+ source_label = [ 'Filesystem', 'Database', 'URL', 'Local Alias' ]; -%]
+ [% INCLUDE label_form_select_row( label = 'Source',
+ name = 'storage', plain = 1,
+ first_label = 'Sources...',
+ value_list = source_value,
+ label_list = source_label,
+ picked = page.storage ) -%]
+
+ [%- count = count + 1 -%]
+ [%- cl_label = '<br>Use if you selected "URL" or "Local Alias"' -%]
+ [% INCLUDE label_form_text_row( label = 'Content Location',
+ post_label = cl_label,
+ name = content_location,
+ value = page.content_location ) -%]
+
+ [%- count = count + 1 -%]
<tr bgcolor="[% PROCESS row_color %]"><td align="center" colspan="2">
[% PROCESS show_label( label = 'Updates' ) %]<br>
***************
*** 115,119 ****
[% PROCESS table_bordered_end -%]
! [%- PROCESS form_hidden( name = 'old_location', value = page.location ) -%]
</form>
--- 131,136 ----
[% PROCESS table_bordered_end -%]
! [%- PROCESS form_hidden( name = 'old_location',
! value = page.location ) -%]
</form>
|