Code

more installation doc cleanups
[roundup.git] / roundup / templates / classic / html / user.item
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">
24 <input type="hidden" name=":required" value="username,address">
26 <table class="form">
27  <tr>
28   <th>Name</th>
29   <td tal:content="structure context/realname/field">realname</td>
30  </tr>
31  <tr>
32   <th>Login Name</th>
33   <td tal:content="structure context/username/field">username</td>
34  </tr>
35  <tr>
36   <th>Login Password</th>
37   <td tal:content="structure context/password/field">password</td>
38  </tr>
39  <tr>
40   <th>Confirm Password</th>
41   <td tal:content="structure context/password/confirm">password</td>
42  </tr>
43  <tr tal:condition="python:request.user.hasPermission('Web Roles')">
44   <th>Roles</th>
45   <td tal:condition="context/id"
46       tal:content="structure context/roles/field">roles</td>
47   <td tal:condition="not:context/id">
48    <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
49    (to give the user more than one role, enter a comma,separated,list)
50   </td>
51  </tr>
52  <tr>
53   <th>Phone</th>
54   <td tal:content="structure context/phone/field">phone</td>
55  </tr>
56  <tr>
57   <th>Organisation</th>
58   <td tal:content="structure context/organisation/field">organisation</td>
59  </tr>
60  <tr>
61   <th>Timezone</th>
62   <td tal:content="structure context/timezone/field">timezone</td>
63  </tr>
64  <tr>
65   <th>E-mail address</th>
66   <td tal:content="structure context/address/field">address</td>
67  </tr>
68  <tr>
69   <th>Alternate E-mail addresses<br>One address per line</th>
70   <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
71  </tr>
73  <tr>
74   <td>&nbsp;</td>
75   <td tal:content="structure context/submit">submit button here</td>
76  </tr>
77 </table>
78 </form>
80 <table class="otherinfo" tal:condition="context/queries">
81  <tr><th colspan="3" class="header">Queries</th></tr>
82  <tr><th>Name</th><th colspan="2">Actions</th></tr>
83  <tr tal:repeat="query context/queries">
84   <td><a tal:attributes="href string:query${query/id}"
85          tal:content="query/name"></a></td>
86   <td>
87    <a tal:attributes="href python:'%s%s'%(query['klass'], query['url'])">display</a>
88   </td>
89   <td>
90    <a tal:attributes="href string:?:remove:queries=${query/id}&:action=edit">remove</a>
91   </td>
92  </tr>
93 </table>
95 <table class="form" tal:condition="context/is_only_view_ok">
96  <tr>
97   <th colspan=2 class="header" tal:content="context/realname">realname</th>
98  </tr>
99  <tr>
100   <th>Login Name</th>
101   <td tal:content="context/username">username</td>
102  </tr>
103  <tr>
104   <th>Phone</th>
105   <td tal:content="context/phone">phone</td>
106  </tr>
107  <tr>
108   <th>Organisation</th>
109   <td tal:content="context/organisation">organisation</td>
110  </tr>
111  <tr>
112   <th>Timezone</th>
113   <td tal:content="context/timezone">timezone</td>
114  </tr>
115  <tr>
116   <th>E-mail address</th>
117   <td tal:content="context/address/email">address</td>
118  </tr>
119 </table>
121 <tal:block tal:condition="python:context.id and context.is_view_ok()"
122            tal:replace="structure context/history" />
124 </td>
126 </tal:block>