[Zope-CVS] CVS: Products/CompositePage/common -
changeViewForm.pt:1.2
Shane Hathaway
shane at zope.com
Tue Mar 2 18:41:17 EST 2004
Update of /cvs-repository/Products/CompositePage/common
In directory cvs.zope.org:/tmp/cvs-serv25987/common
Modified Files:
changeViewForm.pt
Log Message:
Template selection in the manual UI is now functional.
=== Products/CompositePage/common/changeViewForm.pt 1.1 => 1.2 ===
--- Products/CompositePage/common/changeViewForm.pt:1.1 Sat Dec 27 17:56:44 2003
+++ Products/CompositePage/common/changeViewForm.pt Tue Mar 2 18:40:47 2004
@@ -1,40 +1,40 @@
<html>
<head>
-<title>Change View</title>
+<title>Change Template</title>
</head>
<body>
-<div tal:define="info python: here.getViewChangeInfo(request['paths'])">
-<form action="changeView" method="POST">
+<div tal:define="info python: here.getTemplateChangeInfo(request['paths'])">
+<form action="changeTemplate" method="POST">
<input type="hidden" name="paths" tal:attributes="value request/paths" />
-<div><strong>Change inline view for:</strong></div>
+<div><strong>Change template for:</strong></div>
<div style="margin-left: 1em;" tal:repeat="ob info/obs">
<img tal:define="icon ob/getIcon|ob/icon|nothing" tal:condition="icon"
tal:attributes="src icon" width="16" height="16" />
<span tal:replace="ob/title_and_id" />
</div>
-<div tal:condition="info/views">
+<div tal:condition="info/templates">
<div><strong>To:</strong></div>
-<div tal:repeat="view info/views">
- <input type="radio" name="view" tal:attributes="
- value view; id view; checked python: view == info['current_view']" />
- <label tal:attributes="for view" tal:content="view" />
+<div tal:repeat="template info/templates/keys">
+ <input type="radio" name="template" tal:attributes="
+ value template; id template; checked python: template == info['current_template']" />
+ <label tal:attributes="for template" tal:content="template" />
</div>
</div>
-<div tal:condition="not:info/views">
+<div tal:condition="not:info/templates">
<em tal:condition="python: len(info['obs']) == 1">
-No inline views are available for this object.
+No inline templates are available for this object.
</em>
<em tal:condition="python: len(info['obs']) > 1">
-No inline views are available for all selected objects.
+No inline templates are available for all selected objects.
Try selecting only one item at a time.
</em>
</div>
-<input tal:condition="info/views" type="submit" name="submit"
+<input tal:condition="info/templates" type="submit" name="submit"
value="Save Changes" />
<button onclick="window.close()">Cancel</button>
More information about the Zope-CVS
mailing list