view zpt/editRestDbInterface.zpt @ 20:0e87d5d80709

nicer edit pages.
author casties
date Fri, 11 Jan 2013 19:14:07 +0100
parents 17b19345d011
children
line wrap: on
line source

  <div tal:replace="structure here/manage_page_header">Header</div>
<!-- ZOPE management tabs -->
<h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"
    tal:replace="structure here/manage_tabs">Tabs</h2>
<!-- end of ZOPE management tabs -->
  <form method="post" action="manage_editRestDbInterface">
    <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>
    <p>
    <select name="connection_id">
      <tal:block tal:repeat="id here/getConnectionIDs">
        <option  tal:condition="python:getattr(here,'connection_id','')==id[1]"  tal:attributes="value python:id[1]" selected tal:content="python:id[0]"/>
        <option  tal:condition="not:python:getattr(here,'connection_id','')==id[1]"  tal:attributes="value python:id[1]" tal:content="python:id[0]"/>
      </tal:block>
    </select>
    </p>
    <p class="form-label">Autocommit</p>
    <p>
      <input type="checkbox" name="autocommit" tal:attributes="checked here/autocommit"/> autocommit (don't use when you want transactions)
    </p>
     <p><input type="submit" value="Change" /></p>
  </form>