File:  [Repository] / ZSQLExtend / zpt / changeZSQLExtendForm.zpt
Revision 1.7: download - view: text, annotated - select for diffs - revision graph
Mon Feb 7 10:28:48 2011 UTC (13 years, 3 months ago) by casties
Branches: MAIN
CVS tags: HEAD
try to adapt to new SQLConnectionIDs

<html>
<body>
<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 -->
<h2>Change ZSQL Extend</h2>
<form method="post" action="changeZSQLExtend">

<table>
<tr>
    <td align="left" valign="top">
    <div class="form-label">
    Label (for linking):
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="label" size="80" tal:attributes="value here/getLabel" />
    </td>
  </tr>

<tr>
    <td align="left" valign="top">
    <div class="form-label">
    Description:
    </div>
    </td>
    <td align="left" valign="top">
    <textarea name="description" cols=50 rows=20  tal:content="here/getDescription"></textarea>
    </td>
  </tr>
<tr>
    <td align="left" valign="top">
    <div class="form-label">
    Connection Id
    </div>
    </td>
    <td align="left" valign="top">
    <div class="form-element">

  <pre tal:content="python:repr(here.SQLConnectionIDs())"/>
    <select name="connection_id">
      <tal:block tal:repeat="id python:[i[0] for i in here.SQLConnectionIDs()]">
        <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>
    </div>
    </td>
  </tr>

<tr>
    <td align="left" valign="top">
    <div class="form-label">
    Weight <br>(for sorting <br>within ECHO environment):
    </div>
    </td>
    <td align="left" valign="top">
    <input type="text" name="weight" size="80" tal:attributes="value here/getWeight" />
    </td>
  </tr>

</table>
<input type="submit">
</form>
</body>
</html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>