Update of /cvsroot/openinteract/OpenInteract/pkg/base_page/template
In directory usw-pr-cvs1:/tmp/cvs-serv28359/template
Modified Files:
page_form.tmpl
Log Message:
works with non-html files now, so you can upload PDFs (or whatever) to
your site in the same tree as everything else
Index: page_form.tmpl
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/pkg/base_page/template/page_form.tmpl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** page_form.tmpl 2001/10/25 14:58:28 1.4
--- page_form.tmpl 2001/10/25 15:21:32 1.5
***************
*** 59,66 ****
--- 59,71 ----
[%- count = count + 1 -%]
+ [% IF non_editable %]
+ [% INCLUDE label_text_row( label = 'Document',
+ text = 'This is a non-editable document. To modify the content, upload a new version.' ) -%]
+ [% ELSE -%]
[% INCLUDE label_form_textarea_row( label = 'Document', name = 'content',
value = OI.html_encode( page.content ),
cols = 70, rows = 18,
colspan = 2, wrap = 'virtual' ) -%]
+ [% END -%]
[%- count = count + 1 -%]
|