comparison zpt/editRestDbInterface.zpt @ 8:17b19345d011

added autocommit option.
author casties
date Thu, 17 Feb 2011 19:25:16 +0100
parents d70e57193731
children 0e87d5d80709
comparison
equal deleted inserted replaced
7:917e28a08c58 8:17b19345d011
4 <p class="form-label">Title</p> 4 <p class="form-label">Title</p>
5 <p class="form-element"><input size="80" name="title" tal:attributes="value here/title"/></p> 5 <p class="form-element"><input size="80" name="title" tal:attributes="value here/title"/></p>
6 <p class="form-label">Connection ID</p> 6 <p class="form-label">Connection ID</p>
7 <p> 7 <p>
8 <select name="connection_id"> 8 <select name="connection_id">
9 <tal:block tal:repeat="id python:[i[0] for i in here.getConnectionIDs()]"> 9 <tal:block tal:repeat="id here/getConnectionIDs">
10 <option tal:condition="python:getattr(here,'connection_id','')==id" tal:attributes="value id" selected tal:content="id"/> 10 <option tal:condition="python:getattr(here,'connection_id','')==id[1]" tal:attributes="value python:id[1]" selected tal:content="python:id[0]"/>
11 <option tal:condition="not:python:getattr(here,'connection_id','')==id" tal:attributes="value id" tal:content="id"/> 11 <option tal:condition="not:python:getattr(here,'connection_id','')==id[1]" tal:attributes="value python:id[1]" tal:content="python:id[0]"/>
12 </tal:block> 12 </tal:block>
13 </select> 13 </select>
14 </p> 14 </p>
15 <p class="form-label">Autocommit</p>
16 <p>
17 <input type="checkbox" name="autocommit" tal:attributes="checked here/autocommit"/> autocommit (don't use when you want transactions)
18 </p>
15 <p><input type="submit" value="Change" /></p> 19 <p><input type="submit" value="Change" /></p>
16 </form> 20 </form>