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