[Zope-CVS] CVS: Products/CompositePage/common - changeTemplateForm.pt:1.1 edit.js:1.9 changeViewForm.pt:NONE

Shane Hathaway shane at zope.com
Wed Mar 3 11:06:52 EST 2004


Update of /cvs-repository/Products/CompositePage/common
In directory cvs.zope.org:/tmp/cvs-serv4848/common

Modified Files:
	edit.js 
Added Files:
	changeTemplateForm.pt 
Removed Files:
	changeViewForm.pt 
Log Message:
Finished renaming view to template


=== Added File Products/CompositePage/common/changeTemplateForm.pt ===
<html>
<head>
<title>Change Template</title>
</head>
<body>

<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 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/templates">
<div><strong>To:</strong></div>
<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/templates">
<em tal:condition="python: len(info['obs']) == 1">
No inline templates are available for this object.
</em>
<em tal:condition="python: len(info['obs']) > 1">
No inline templates are available for all selected objects.
Try selecting only one item at a time.
</em>
</div>

<input tal:condition="info/templates" type="submit" name="submit"
  value="Save Changes" />
<button onclick="window.close()">Cancel</button>

</form>
</div>

</body>
</html>


=== Products/CompositePage/common/edit.js 1.8 => 1.9 ===
--- Products/CompositePage/common/edit.js:1.8	Thu Feb 26 16:38:12 2004
+++ Products/CompositePage/common/edit.js	Wed Mar  3 11:06:21 2004
@@ -63,10 +63,10 @@
   f.submit();
 }
 
-function composite_change_view(elems) {
+function composite_change_template(elems) {
   var url, sources;
   sources = composite_getsources(elems);
-  url = ui_url + "/changeViewForm?paths=" + sources;
+  url = ui_url + "/changeTemplateForm?paths=" + sources;
   window.open(url, '', 'width=320, height=400, resizable, scrollbars, status');
 }
 

=== Removed File Products/CompositePage/common/changeViewForm.pt ===




More information about the Zope-CVS mailing list