view roundup/templates/classic/html/keyword.item @ 1120:c26471971d18

Exposed the Batch mechanism through the top-level "utils" variable. See the keyword.item template for an example of how it can be used.
author Richard Jones <richard@users.sourceforge.net>
date Wed, 11 Sep 2002 23:54:26 +0000
parents 0bdb322f2b88
children e42c045015fd
line wrap: on
line source

<!-- dollarId: keyword.item,v 1.3 2002/05/22 00:32:34 richard Exp dollar-->

<table class="otherinfo">
<tr><th colspan="4" class="header">Existing Keywords</th></tr>
<tal:block tal:define="keywords db/keyword/list"
           tal:repeat="start python:range(0, len(keywords), 4)">
 <tr tal:define="batch python:utils.Batch('keyword', keywords, 4, start)">
  <td tal:repeat="keyword batch" tal:content="keyword/name">
   keyword goes here
  </td>
 </tr>
</tal:block>
<tr><td colspan="4" style="border-top: 1px solid gray">&nbsp;</td></tr>
</table>

<p class="help" tal:condition="not:context/id">
 To create a new keyword, enter it below and click "Submit New Entry".
</p>

<form method="POST" onSubmit="return submit_once()"
      enctype="multipart/form-data">

 <input type="hidden" name=":required" value="name">

 <table class="form">
  <tr>
   <th nowrap>Keyword</th>
   <td tal:content="structure context/name/field">name</td>
  </tr>

  <tr>
   <td>&nbsp;</td>
   <td colspan=3 tal:content="structure context/submit">
    submit button will go here
   </td>
  </tr>
 </table>
</form>

Roundup Issue Tracker: http://roundup-tracker.org/