Code

e0cb51a13d521c0aeebf63d4a3cefbe1377d5c06
[roundup.git] / templates / classic / html / user.item.html
1 <!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar-->
2 <tal:block metal:use-macro="templates/page/macros/icing">
3 <title metal:fill-slot="head_title"> 
4 <span tal:replace="config/TRACKER_NAME" />: 
5 <span tal:condition="context/id"
6       tal:replace="string:User ${context/id}: ${context/username}" />
7 <tal:x tal:condition="not:context/id">New User</tal:x> 
8 </title> 
9 <td class="page-header-top" metal:fill-slot="body_title">
10  <h2>
11   User<span tal:replace="context/id" />
12    <tal:x tal:condition="context/is_edit_ok">Editing</tal:x>
13  </h2>
14 </td>
16 <td class="content" metal:fill-slot="content">
17 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
18 You are not allowed to view this page.
19 </span>
21 <form method="POST" onSubmit="return submit_once()"
22       enctype="multipart/form-data" tal:condition="context/is_edit_ok"
23       tal:attributes="action context/designator">
25 <table class="form">
26  <tr>
27   <th>Name</th>
28   <td tal:content="structure context/realname/field">realname</td>
29  </tr>
30  <tr>
31   <th>Login Name</th>
32   <td tal:content="structure context/username/field">username</td>
33  </tr>
34  <tr>
35   <th>Login Password</th>
36   <td tal:content="structure context/password/field">password</td>
37  </tr>
38  <tr>
39   <th>Confirm Password</th>
40   <td tal:content="structure context/password/confirm">password</td>
41  </tr>
42  <tr tal:condition="python:request.user.hasPermission('Web Roles')">
43   <th>Roles</th>
44   <td tal:condition="context/id"
45       tal:content="structure context/roles/field">roles</td>
46   <td tal:condition="not:context/id">
47    <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
48    (to give the user more than one role, enter a comma,separated,list)
49   </td>
50  </tr>
51  <tr>
52   <th>Phone</th>
53   <td tal:content="structure context/phone/field">phone</td>
54  </tr>
55  <tr>
56   <th>Organisation</th>
57   <td tal:content="structure context/organisation/field">organisation</td>
58  </tr>
59  <tr>
60   <th>Timezone</th>
61   <td tal:content="structure context/timezone/field">timezone</td>
62  </tr>
63  <tr>
64   <th>E-mail address</th>
65   <td tal:content="structure context/address/field">address</td>
66  </tr>
67  <tr>
68   <th>Alternate E-mail addresses<br>One address per line</th>
69   <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
70  </tr>
72  <tr>
73   <td>
74    &nbsp;
75    <input type="hidden" name="@template" value="item">
76    <input type="hidden" name="@required" value="username,address">
77   </td>
78   <td tal:content="structure context/submit">submit button here</td>
79  </tr>
80 </table>
81 </form>
83 <table class="otherinfo" tal:condition="python:context.queries and context.is_view_ok()">
84  <tr><th colspan="3" class="header">Queries</th></tr>
85  <tr><th>Name</th><th colspan="2">Actions</th></tr>
86  <tr tal:repeat="query context/queries">
87   <td><a tal:attributes="href string:query${query/id}"
88          tal:content="query/name"></a></td>
89   <td>
90    <a tal:attributes="href string:${query/klass}?${query/url}">display</a>   
91   </td>
92   <td>
93    <a tal:attributes="href string:?@remove@queries=${query/id}&@action=edit">remove</a>
94   </td>
95  </tr>
96 </table>
98 <table class="form" tal:condition="context/is_only_view_ok">
99  <tr>
100   <th colspan=2 class="header" tal:content="context/realname">realname</th>
101  </tr>
102  <tr>
103   <th>Login Name</th>
104   <td tal:content="context/username">username</td>
105  </tr>
106  <tr>
107   <th>Phone</th>
108   <td tal:content="context/phone">phone</td>
109  </tr>
110  <tr>
111   <th>Organisation</th>
112   <td tal:content="context/organisation">organisation</td>
113  </tr>
114  <tr>
115   <th>Timezone</th>
116   <td tal:content="context/timezone">timezone</td>
117  </tr>
118  <tr>
119   <th>E-mail address</th>
120   <td tal:content="context/address/email">address</td>
121  </tr>
122 </table>
124 <tal:block tal:condition="python:context.id and context.is_view_ok()"
125            tal:replace="structure context/history" />
127 </td>
129 </tal:block>