File:  [Repository] / ZSQLExtend / zpt / changeZSQLExtendForm.zpt
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Fri May 26 11:43:08 2006 UTC (18 years, 1 month ago) by casties
Branches: MAIN
CVS tags: HEAD
fixed bug in tal:repeat that prevented selection of other db-connectors

<html>
<body>
<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">

    <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>