diff zpt/editZDBInterfaceFolder.zpt @ 3:d70e57193731

new executeZSQL method that returns Zope Results. new ZDBInterfaceFolder that doesn't do much yet.
author casties
date Mon, 14 Feb 2011 23:20:43 +0100
parents
children 17b19345d011
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/editZDBInterfaceFolder.zpt	Mon Feb 14 23:20:43 2011 +0100
@@ -0,0 +1,17 @@
+  <div tal:replace="structure here/manage_page_header">Header</div>
+  <h2>Edit a ZDB interface folder</h2>
+  <form method="post" action="manage_editZDBInterfaceFolder">
+    <p class="form-label">Title</p>
+        <p class="form-element"><input size="80" name="title" tal:attributes="value here/title"/></p>
+    <p class="form-label">Connection ID</p>
+    <pre tal:content="python:repr(here.getConnectionIDs())"/>
+    <p>
+    <select name="connection_id">
+      <tal:block tal:repeat="id python:[i[0] for i in here.getConnectionIDs()]">
+        <option  tal:condition="python:getattr(here,'connection_id','')==id"  tal:attributes="value id" selected tal:content="id"/>
+        <option  tal:condition="not:python:getattr(here,'connection_id','')==id"  tal:attributes="value id" tal:content="id"/>
+      </tal:block>
+    </select>
+    </p>
+     <p><input type="submit" value="Change" /></p>
+  </form>