|
7 | 7 | tal:content="python:context._classname.capitalize()+' editing'"></span> |
8 | 8 | <td class="content" metal:fill-slot="content"> |
9 | 9 |
|
10 | | -<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())"> |
11 | | -You are not allowed to view this page. |
12 | | -</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> |
13 | 13 |
|
14 | 14 | <tal:block tal:condition="context/is_edit_ok"> |
| 15 | +<tal:block i18n:translate=""> |
15 | 16 | <p class="form-help"> |
16 | | - 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"/> |
17 | 19 | class using this form. Commas, newlines and double quotes (") must be |
18 | 20 | handled delicately. You may include commas and newlines by enclosing the |
19 | 21 | values in double-quotes ("). Double quotes themselves must be quoted by |
20 | 22 | doubling (""). |
21 | 23 | </p> |
22 | 24 |
|
23 | 25 | <p class="form-help"> |
24 | | - Multilink properties have their multiple values colon (":") separated |
| 26 | + Multilink properties have their multiple values colon (":") separated |
25 | 27 | (... ,"one:two:three", ...) |
26 | 28 | </p> |
27 | 29 |
|
28 | 30 | <p class="form-help"> |
29 | 31 | Remove entries by deleting their line. Add new entries by appending |
30 | 32 | them to the table - put an X in the id column. |
31 | 33 | </p> |
32 | | - |
| 34 | +</tal:block> |
33 | 35 | <form onSubmit="return submit_once()" method="POST" |
34 | 36 | tal:attributes="action context/designator"> |
35 | 37 | <textarea rows="15" cols="60" name="rows" tal:content="context/csv"></textarea> |
|
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