|
5 | 5 | tal:content="python:context._classname.capitalize()+' editing'"></title> |
6 | 6 | <span metal:fill-slot="body_title" tal:omit-tag="python:1" |
7 | 7 | tal:content="python:context._classname.capitalize()+' editing'"></span> |
8 | | - |
9 | 8 | <td class="content" metal:fill-slot="content"> |
10 | 9 |
|
11 | | -<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())"> |
12 | | -You are not allowed to view this page. |
13 | | -</span> |
| 10 | +<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())" |
| 11 | + tal:omit-tag="python:1" i18n:translate="" |
| 12 | +>You are not allowed to view this page.</span> |
14 | 13 |
|
15 | 14 | <tal:block tal:condition="context/is_edit_ok"> |
| 15 | +<tal:block i18n:translate=""> |
16 | 16 | <p class="form-help"> |
17 | | - You may edit the contents of the <span tal:replace="request/classname" /> |
| 17 | + You may edit the contents of the |
| 18 | + <span tal:replace="request/classname" i18n:name="classname"/> |
18 | 19 | class using this form. Commas, newlines and double quotes (") must be |
19 | 20 | handled delicately. You may include commas and newlines by enclosing the |
20 | 21 | values in double-quotes ("). Double quotes themselves must be quoted by |
21 | 22 | doubling (""). |
22 | 23 | </p> |
23 | 24 |
|
24 | 25 | <p class="form-help"> |
25 | | - Multilink properties have their multiple values colon (":") separated |
| 26 | + Multilink properties have their multiple values colon (":") separated |
26 | 27 | (... ,"one:two:three", ...) |
27 | 28 | </p> |
28 | 29 |
|
29 | 30 | <p class="form-help"> |
30 | 31 | Remove entries by deleting their line. Add new entries by appending |
31 | 32 | them to the table - put an X in the id column. |
32 | 33 | </p> |
33 | | - |
34 | | -<form onSubmit="return submit_once()" method="POST"> |
| 34 | +</tal:block> |
| 35 | +<form onSubmit="return submit_once()" method="POST" |
| 36 | + tal:attributes="action context/designator"> |
35 | 37 | <textarea rows="15" cols="60" name="rows" tal:content="context/csv"></textarea> |
36 | 38 | <br> |
37 | 39 | <input type="hidden" name="@action" value="editCSV"> |
38 | 40 | <input type="submit" value="Edit Items"> |
39 | 41 | </form> |
40 | 42 | </tal:block> |
41 | 43 |
|
42 | | -<tal:block tal:condition="context/is_only_view_ok"> |
43 | | -view ok |
44 | | -</tal:block> |
| 44 | +<table tal:condition="context/is_only_view_ok" width="100%" class="list"> |
| 45 | + <tr> |
| 46 | + <th tal:repeat="property context/propnames" tal:content="property"> </th> |
| 47 | + </tr> |
| 48 | + <tr tal:repeat="item context/list" |
| 49 | + tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6/3]" |
| 50 | + > |
| 51 | + <td tal:repeat="property context/propnames" |
| 52 | + tal:content="python: item[property] or default" |
| 53 | + > </td> |
| 54 | + </tr> |
| 55 | +</table> |
45 | 56 |
|
46 | 57 | </td> |
47 | 58 |
|
|
0 commit comments