comparison website/issues/html/keyword.item.html @ 4024:c2d0d3e9099d website

svn repository setup
author Stefan Seefeld <stefan@users.sourceforge.net>
date Fri, 06 Feb 2009 13:16:31 +0000
parents
children eff9c5435acc
comparison
equal deleted inserted replaced
4023:86c38b5aed66 4024:c2d0d3e9099d
1 <tal:doc metal:use-macro="templates/page/macros/icing"
2 define="edit_ok context/is_edit_ok"
3 >
4 <title metal:fill-slot="head_title">
5 <tal:if condition="context/id" i18n:translate=""
6 >Keyword <span tal:replace="context/id" i18n:name="id"
7 />: <span tal:replace="context/name" i18n:name="title"
8 /> - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
9 /></tal:if>
10 <tal:if condition="not:context/id" i18n:translate=""
11 >New Keyword - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
12 /></tal:if>
13 </title>
14 <metal:slot fill-slot="more-javascript">
15 <script type="text/javascript" src="@@file/help_controls.js"></script>
16 </metal:slot>
17 <tal:block metal:fill-slot="body_title"
18 define="edit_ok context/is_edit_ok">
19 <span tal:condition="python: not (context.id or edit_ok)"
20 tal:omit-tag="python:1" i18n:translate="">New Keyword</span>
21 <span tal:condition="python: not context.id and edit_ok"
22 tal:omit-tag="python:1" i18n:translate="">New Keyword Editing</span>
23 <span tal:condition="python: context.id and not edit_ok"
24 tal:omit-tag="python:1" i18n:translate="">Keyword<tal:x
25 replace="context/id" i18n:name="id" /></span>
26 <span tal:condition="python: context.id and edit_ok"
27 tal:omit-tag="python:1" i18n:translate="">Keyword<tal:x
28 replace="context/id" i18n:name="id" /> Editing</span>
29 </tal:block>
30
31 <td class="content" metal:fill-slot="content">
32
33 <p tal:condition="python:not (context.is_view_ok()
34 or request.user.hasRole('Anonymous'))" i18n:translate="">
35 You are not allowed to view this page.</p>
36
37 <p tal:condition="python:not context.is_view_ok()
38 and request.user.hasRole('Anonymous')" i18n:translate="">
39 Please login with your username and password.</p>
40
41 <div tal:condition="context/is_view_ok">
42
43 <form method="POST"
44 tal:define="required python:'name description'.split()"
45 enctype="multipart/form-data"
46 tal:attributes="action context/designator;">
47
48 <table class="form">
49
50 <tr>
51 <th class="required" i18n:translate="">Keyword:</th>
52 <td tal:content="structure
53 python:context.name.field(size=60)">title</td>
54 </tr>
55
56 <tr>
57 <th class="required" i18n:translate="">Description:</th>
58 <td tal:content="structure python:context.description.field(size=60)">description</td>
59
60 </tr>
61
62 <tr tal:condition="context/is_edit_ok">
63 <td>
64 &nbsp;
65 <input type="hidden" name="@template" value="item">
66 <input type="hidden" name="@required" value="name,description"
67 tal:attributes="value python:','.join(required)">
68 </td>
69 <td><input type="submit" value="save" tal:replace="structure context/submit"><!--submit button here-->
70 <input type="reset">
71 </td>
72 </tr>
73
74 </table>
75 </form>
76 </div>
77 </td>
78 </tal:doc>

Roundup Issue Tracker: http://roundup-tracker.org/