Code

svn repository setup
[roundup.git] / templates / classic / html / _generic.index.html
1 <!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
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>
12 <td class="content" metal:fill-slot="content">
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>
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>
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>
35 <p class="form-help">
36  Multilink properties have their multiple values colon (":") separated
37  (... ,"one:two:three", ...)
38 </p>
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.
43 </p>
44 </tal:block>
45 <form onSubmit="return submit_once()" method="POST"
46       tal:attributes="action context/designator">
47 <textarea rows="15" style="width:90%" name="rows" tal:content="context/csv"></textarea>
48 <br>
49 <input type="hidden" name="@action" value="editCSV">
50 <input type="submit" value="Edit Items" i18n:attributes="value">
51 </form>
52 </tal:block>
54 <table tal:condition="context/is_only_view_ok" width="100%" class="list">
55  <tr>
56   <th tal:repeat="property context/propnames" tal:content="property">&nbsp;</th>
57  </tr>
58  <tal:block repeat="item context/list">
59  <tr tal:condition="item/is_view_ok"
60      tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6/3]">
61   <td tal:repeat="property context/propnames"
62    tal:content="python: item[property] or default"
63   >&nbsp;</td>
64  </tr>
65  </tal:block>
66 </table>
68 </td>
70 </tal:block>