paul@0 | 1 | <!-- dollarId: keyword.item,v 1.3 2002/05/22 00:32:34 richard Exp dollar--> |
paul@0 | 2 | <tal:block metal:use-macro="templates/page/macros/icing"> |
paul@0 | 3 | <title metal:fill-slot="head_title" i18n:translate="">Keyword editing - <span |
paul@0 | 4 | i18n:name="tracker" tal:replace="config/TRACKER_NAME" /></title> |
paul@0 | 5 | <span metal:fill-slot="body_title" tal:omit-tag="python:1" |
paul@0 | 6 | i18n:translate="">Keyword editing</span> |
paul@0 | 7 | <td class="content" metal:fill-slot="content"> |
paul@0 | 8 | |
paul@0 | 9 | <table class="otherinfo" tal:define="keywords db/keyword/list" |
paul@0 | 10 | tal:condition="keywords"> |
paul@0 | 11 | <tr><th colspan="4" class="header" i18n:translate="">Existing Keywords</th></tr> |
paul@0 | 12 | <tr tal:repeat="start python:range(0, len(keywords), 4)"> |
paul@0 | 13 | <td width="25%" tal:define="batch python:utils.Batch(keywords, 4, start)" |
paul@0 | 14 | tal:repeat="keyword batch"> |
paul@0 | 15 | <a tal:attributes="href string:keyword${keyword/id}" |
paul@0 | 16 | tal:content="keyword/name">keyword here</a> |
paul@0 | 17 | </td> |
paul@0 | 18 | </tr> |
paul@0 | 19 | <tr> |
paul@0 | 20 | <td colspan="4" style="border-top: 1px solid gray" i18n:translate=""> |
paul@0 | 21 | To edit an existing keyword (for spelling or typing errors), |
paul@0 | 22 | click on its entry above. |
paul@0 | 23 | </td> |
paul@0 | 24 | </tr> |
paul@0 | 25 | </table> |
paul@0 | 26 | |
paul@0 | 27 | <p class="help" tal:condition="not:context/id" i18n:translate=""> |
paul@0 | 28 | To create a new keyword, enter it below and click "Submit New Entry". |
paul@0 | 29 | </p> |
paul@0 | 30 | |
paul@0 | 31 | <form method="POST" onSubmit="return submit_once()" |
paul@0 | 32 | enctype="multipart/form-data" |
paul@0 | 33 | tal:attributes="action context/designator"> |
paul@0 | 34 | |
paul@0 | 35 | <table class="form"> |
paul@0 | 36 | <tr> |
paul@0 | 37 | <th i18n:translate="">Keyword</th> |
paul@0 | 38 | <td tal:content="structure context/name/field">name</td> |
paul@0 | 39 | </tr> |
paul@0 | 40 | |
paul@0 | 41 | <tr> |
paul@0 | 42 | <td> |
paul@0 | 43 | |
paul@0 | 44 | <input type="hidden" name="@required" value="name"> |
paul@0 | 45 | <input type="hidden" name="@template" value="item"> |
paul@0 | 46 | </td> |
paul@0 | 47 | <td colspan=3 tal:content="structure context/submit"> |
paul@0 | 48 | submit button will go here |
paul@0 | 49 | </td> |
paul@0 | 50 | </tr> |
paul@0 | 51 | </table> |
paul@0 | 52 | </form> |
paul@0 | 53 | </td> |
paul@0 | 54 | |
paul@0 | 55 | </tal:block> |