Code

more installation doc cleanups
[roundup.git] / roundup / templates / minimal / 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">User editing</title>
4 <td class="page-header-top" metal:fill-slot="body_title">
5  <h2>User editing</h2>
6 </td>
7 <td class="content" metal:fill-slot="content">
8 <span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())">
9 You are not allowed to view this page.
10 </span>
12 <form method="POST" onSubmit="return submit_once()"
13       enctype="multipart/form-data" tal:condition="context/is_edit_ok">
15 <input type="hidden" name=":required" value="username,address">
17 <table class="form">
18  <tr>
19   <th>Login Name</th>
20   <td tal:content="structure context/username/field">username</td>
21  </tr>
22  <tr>
23   <th>Login Password</th>
24   <td tal:content="structure context/password/field">password</td>
25  </tr>
26  <tr>
27   <th>Confirm Password</th>
28   <td tal:content="structure context/password/confirm">password</td>
29  </tr>
30  <tr tal:condition="python:request.user.hasPermission('Web Roles')">
31   <th>Roles</th>
32   <td tal:condition="context/id"
33       tal:content="structure context/roles/field">roles</td>
34   <td tal:condition="not:context/id">
35    <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
36   </td>
37  </tr>
38  <tr>
39   <th>E-mail address</th>
40   <td tal:content="structure context/address/field">address</td>
41  </tr>
42  <tr>
43   <th>Alternate E-mail addresses<br>One address per line</th>
44   <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
45  </tr>
47  <tr>
48   <td>&nbsp;</td>
49   <td tal:content="structure context/submit">submit button here</td>
50  </tr>
51 </table>
52 </form>
54 <table class="form" tal:condition="context/is_only_view_ok">
55  <tr>
56   <th>Login Name</th>
57   <td tal:content="context/username">username</td>
58  </tr>
59  <tr>
60   <th>E-mail address</th>
61   <td tal:content="context/address/email">address</td>
62  </tr>
63 </table>
65 <tal:block tal:condition="python:context.id and context.is_view_ok()"
66            tal:replace="structure context/history" />
68 </td>
70 </tal:block>