Mercurial > p > roundup > code
diff templates/classic/html/_generic.index.html @ 2392:b0778b9e933c
i18n markup;
if 'is_only_view_ok', show the list of items.
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Sun, 06 Jun 2004 12:50:26 +0000 |
| parents | 3a4abf6d48c2 |
| children | 78c075d36cea |
line wrap: on
line diff
--- a/templates/classic/html/_generic.index.html Sun Jun 06 12:40:30 2004 +0000 +++ b/templates/classic/html/_generic.index.html Sun Jun 06 12:50:26 2004 +0000 @@ -7,13 +7,15 @@ tal:content="python:context._classname.capitalize()+' editing'"></span> <td class="content" metal:fill-slot="content"> -<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())"> -You are not allowed to view this page. -</span> +<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())" + tal:omit-tag="python:1" i18n:translate="" +>You are not allowed to view this page.</span> <tal:block tal:condition="context/is_edit_ok"> +<tal:block i18n:translate=""> <p class="form-help"> - You may edit the contents of the <span tal:replace="request/classname" /> + You may edit the contents of the + <span tal:replace="request/classname" i18n:name="classname"/> class using this form. Commas, newlines and double quotes (") must be handled delicately. You may include commas and newlines by enclosing the values in double-quotes ("). Double quotes themselves must be quoted by @@ -21,7 +23,7 @@ </p> <p class="form-help"> - Multilink properties have their multiple values colon (":") separated + Multilink properties have their multiple values colon (":") separated (... ,"one:two:three", ...) </p> @@ -29,7 +31,7 @@ Remove entries by deleting their line. Add new entries by appending them to the table - put an X in the id column. </p> - +</tal:block> <form onSubmit="return submit_once()" method="POST" tal:attributes="action context/designator"> <textarea rows="15" cols="60" name="rows" tal:content="context/csv"></textarea> @@ -39,9 +41,18 @@ </form> </tal:block> -<tal:block tal:condition="context/is_only_view_ok"> -view ok -</tal:block> +<table tal:condition="context/is_only_view_ok" width="100%" class="list"> + <tr> + <th tal:repeat="property context/propnames" tal:content="property"> </th> + </tr> + <tr tal:repeat="item context/list" + tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6/3]" + > + <td tal:repeat="property context/propnames" + tal:content="python: item[property] or default" + > </td> + </tr> +</table> </td>
