paul@0 | 1 | <!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar--> |
paul@0 | 2 | |
paul@0 | 3 | <tal:block metal:use-macro="templates/page/macros/icing"> |
paul@0 | 4 | <title metal:fill-slot="head_title" i18n:translate="" |
paul@0 | 5 | ><span tal:replace="python:context._classname.capitalize()" |
paul@0 | 6 | i18n:name="class" /> editing - <span i18n:name="tracker" |
paul@0 | 7 | tal:replace="config/TRACKER_NAME" /></title> |
paul@0 | 8 | <tal:block metal:fill-slot="body_title" i18n:translate="" |
paul@0 | 9 | ><span tal:replace="python:context._classname.capitalize()" |
paul@0 | 10 | i18n:name="class" /> editing</tal:block> |
paul@0 | 11 | |
paul@0 | 12 | <td class="content" metal:fill-slot="content"> |
paul@0 | 13 | |
paul@0 | 14 | <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok() |
paul@0 | 15 | or request.user.hasRole('Anonymous'))" |
paul@0 | 16 | tal:omit-tag="python:1" i18n:translate="" |
paul@0 | 17 | >You are not allowed to view this page.</span> |
paul@0 | 18 | |
paul@0 | 19 | <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok()) |
paul@0 | 20 | and request.user.hasRole('Anonymous')" |
paul@0 | 21 | tal:omit-tag="python:1" i18n:translate="" |
paul@0 | 22 | >Please login with your username and password.</span> |
paul@0 | 23 | |
paul@0 | 24 | <tal:block tal:condition="context/is_edit_ok"> |
paul@0 | 25 | <tal:block i18n:translate=""> |
paul@0 | 26 | <p class="form-help"> |
paul@0 | 27 | You may edit the contents of the |
paul@0 | 28 | <span tal:replace="request/classname" i18n:name="classname"/> |
paul@0 | 29 | class using this form. Commas, newlines and double quotes (") must be |
paul@0 | 30 | handled delicately. You may include commas and newlines by enclosing the |
paul@0 | 31 | values in double-quotes ("). Double quotes themselves must be quoted by |
paul@0 | 32 | doubling (""). |
paul@0 | 33 | </p> |
paul@0 | 34 | |
paul@0 | 35 | <p class="form-help"> |
paul@0 | 36 | Multilink properties have their multiple values colon (":") separated |
paul@0 | 37 | (... ,"one:two:three", ...) |
paul@0 | 38 | </p> |
paul@0 | 39 | |
paul@0 | 40 | <p class="form-help"> |
paul@0 | 41 | Remove entries by deleting their line. Add new entries by appending |
paul@0 | 42 | them to the table - put an X in the id column. If you wish to restore a |
paul@0 | 43 | removed item and you know its id then just put that id in the id column. |
paul@0 | 44 | </p> |
paul@0 | 45 | </tal:block> |
paul@0 | 46 | <form onSubmit="return submit_once()" method="POST" |
paul@0 | 47 | tal:attributes="action context/designator"> |
paul@0 | 48 | <textarea rows="15" style="width:90%" name="rows" tal:content="context/csv"></textarea> |
paul@0 | 49 | <br> |
paul@0 | 50 | <input type="hidden" name="@action" value="editCSV"> |
paul@0 | 51 | <input type="submit" value="Edit Items" i18n:attributes="value"> |
paul@0 | 52 | </form> |
paul@0 | 53 | </tal:block> |
paul@0 | 54 | |
paul@0 | 55 | <table tal:condition="context/is_only_view_ok" width="100%" class="list"> |
paul@0 | 56 | <tr> |
paul@0 | 57 | <th tal:repeat="property context/propnames" tal:content="property"> </th> |
paul@0 | 58 | </tr> |
paul@0 | 59 | <tal:block repeat="item context/list"> |
paul@0 | 60 | <tr tal:condition="item/is_view_ok" |
paul@0 | 61 | tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6/3]"> |
paul@0 | 62 | <td tal:repeat="property context/propnames" |
paul@0 | 63 | tal:content="python: item[property] or default" |
paul@0 | 64 | > </td> |
paul@0 | 65 | </tr> |
paul@0 | 66 | </tal:block> |
paul@0 | 67 | </table> |
paul@0 | 68 | |
paul@0 | 69 | </td> |
paul@0 | 70 | |
paul@0 | 71 | </tal:block> |