diff roundup/templates/classic/html/query.item @ 1136:7e193bbda38e

added generic item editing . much nicer layout of template rendering errors . added context/is_edit_ok and context/is_view_ok convenience methods and implemented use of them in the classic template
author Richard Jones <richard@users.sourceforge.net>
date Fri, 13 Sep 2002 03:31:19 +0000
parents 98f3d41f41d9
children b862bbf2067a
line wrap: on
line diff
--- a/roundup/templates/classic/html/query.item	Fri Sep 13 01:29:24 2002 +0000
+++ b/roundup/templates/classic/html/query.item	Fri Sep 13 03:31:19 2002 +0000
@@ -1,2 +1,7 @@
-<span tal:content="structure context/renderQueryForm" />
+<span tal:condition="not:context/is_edit_ok">
+You are not allowed to view this page.
+</span>
 
+<span tal:condition="context/is_edit_ok"
+      tal:content="structure context/renderQueryForm" />
+

Roundup Issue Tracker: http://roundup-tracker.org/