Mercurial > p > roundup > code
annotate templates/classic/html/user.item.html @ 2245:c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 03 May 2004 00:28:43 +0000 |
| parents | 03bb30c5e2c3 |
| children | 9db7d2842222 |
| rev | line source |
|---|---|
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1 <!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar--> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
2 <tal:block metal:use-macro="templates/page/macros/icing"> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
3 <title metal:fill-slot="head_title"> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
4 <span tal:condition="context/id" |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
5 tal:replace="string:User ${context/id}: ${context/username}" /> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
6 <tal:x tal:condition="not:context/id">New User</tal:x> |
|
2187
3b92a1b7a056
tracker name at end of page title (rfe [SF#926840])
Richard Jones <richard@users.sourceforge.net>
parents:
2136
diff
changeset
|
7 - <span tal:replace="config/TRACKER_NAME" /> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
8 </title> |
|
1976
3a4abf6d48c2
body_title improvement
Richard Jones <richard@users.sourceforge.net>
parents:
1911
diff
changeset
|
9 <span metal:fill-slot="body_title" tal:omit-tag="python:1"> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
10 User<span tal:replace="context/id" /> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
11 <tal:x tal:condition="context/is_edit_ok">Editing</tal:x> |
|
1976
3a4abf6d48c2
body_title improvement
Richard Jones <richard@users.sourceforge.net>
parents:
1911
diff
changeset
|
12 </span> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
13 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
14 <td class="content" metal:fill-slot="content"> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
15 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
16 <form method="POST" onSubmit="return submit_once()" |
|
2245
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
17 enctype="multipart/form-data" |
|
1855
8b840f8626fb
Add "action" attributes to forms.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1829
diff
changeset
|
18 tal:attributes="action context/designator"> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
19 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
20 <table class="form"> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
21 <tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
22 <th>Name</th> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
23 <td tal:content="structure context/realname/field">realname</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
24 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
25 <tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
26 <th>Login Name</th> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
27 <td tal:content="structure context/username/field">username</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
28 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
29 <tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
30 <th>Login Password</th> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
31 <td tal:content="structure context/password/field">password</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
32 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
33 <tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
34 <th>Confirm Password</th> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
35 <td tal:content="structure context/password/confirm">password</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
36 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
37 <tr tal:condition="python:request.user.hasPermission('Web Roles')"> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
38 <th>Roles</th> |
|
2226
03bb30c5e2c3
user editing Role entry help text always appears
Richard Jones <richard@users.sourceforge.net>
parents:
2187
diff
changeset
|
39 <td> |
|
03bb30c5e2c3
user editing Role entry help text always appears
Richard Jones <richard@users.sourceforge.net>
parents:
2187
diff
changeset
|
40 <input tal:condition="context/id" |
|
03bb30c5e2c3
user editing Role entry help text always appears
Richard Jones <richard@users.sourceforge.net>
parents:
2187
diff
changeset
|
41 tal:replace="structure context/roles/field"> |
|
03bb30c5e2c3
user editing Role entry help text always appears
Richard Jones <richard@users.sourceforge.net>
parents:
2187
diff
changeset
|
42 <input name="roles" tal:condition="not:context/id" |
|
03bb30c5e2c3
user editing Role entry help text always appears
Richard Jones <richard@users.sourceforge.net>
parents:
2187
diff
changeset
|
43 tal:attributes="value db/config/NEW_WEB_USER_ROLES"> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
44 (to give the user more than one role, enter a comma,separated,list) |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
45 </td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
46 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
47 <tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
48 <th>Phone</th> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
49 <td tal:content="structure context/phone/field">phone</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
50 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
51 <tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
52 <th>Organisation</th> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
53 <td tal:content="structure context/organisation/field">organisation</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
54 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
55 <tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
56 <th>Timezone</th> |
|
2245
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
57 <td tal:define="timezone request/form/timezone/value | python:''; |
|
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
58 timezone python:timezone |
|
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
59 or db._db.user.get(request.user.id, 'timezone') |
|
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
60 or config.DEFAULT_TIMEZONE"> |
|
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
61 <input tal:condition="context/is_edit_ok" name="timezone" |
|
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
62 tal:attributes="value timezone"> |
|
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
63 <span tal:condition="context/is_only_view_ok" tal:content="timezone" /> |
|
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
64 (this is a numeric hour offset) |
|
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
65 </td> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
66 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
67 <tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
68 <th>E-mail address</th> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
69 <td tal:content="structure context/address/field">address</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
70 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
71 <tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
72 <th>Alternate E-mail addresses<br>One address per line</th> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
73 <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
74 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
75 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
76 <tr> |
|
1829
4e4afbe3cd30
Move '<input type="hidden">' elements into a block.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1732
diff
changeset
|
77 <td> |
|
4e4afbe3cd30
Move '<input type="hidden">' elements into a block.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1732
diff
changeset
|
78 |
|
1911
f5c804379c85
fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents:
1855
diff
changeset
|
79 <input type="hidden" name="@template" value="item"> |
|
f5c804379c85
fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents:
1855
diff
changeset
|
80 <input type="hidden" name="@required" value="username,address"> |
|
1829
4e4afbe3cd30
Move '<input type="hidden">' elements into a block.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1732
diff
changeset
|
81 </td> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
82 <td tal:content="structure context/submit">submit button here</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
83 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
84 </table> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
85 </form> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
86 |
|
2245
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
87 <tal:block tal:replace="structure context/history" /> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
88 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
89 </td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
90 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
91 </tal:block> |
