Mercurial > p > roundup > code
annotate templates/classic/html/user.item.html @ 3696:790363e96852
Sorting/grouping by multiple properties.
- Implement sorting/grouping by multiple properties for the web
interface. I'm now using @sort0/@sortdir0,@sort1/@sortdir1,... and
@group0/@groupdir0,... when generating URLs from a search template.
These are converted to a list internally. When saving URLs (e.g. when
storing queries) I'm using @sort=prop1,prop2,... and @group=... with
optional '-' prepended to individual props.
This means saved URLs are backward compatible with existing trackers
(and yes, this was a design goal).
I need the clumsy version with @sort0,@sort1 etc, because I'm
currently using several selectors and checkboxes (as the classic
template does, too). I don't think there is a way around that in HTML?
- Updated (hopefully all) documentation to reflect the new URL format
and the consequences in the web-interface.
- I've set the number of sort/group properties in the classic template
to two -- this can easily be reverted by changing n_sort to 1.
Richard, would you look over these changes? I've set a tag before and
(will set) after commit, so that it would be easy to merge out.
Don't be too scared about the size of the change, most is documentation,
the guts are in cgi/templating.py and small changes in the classic
template.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Wed, 30 Aug 2006 20:28:26 +0000 |
| parents | 124dda1a2074 |
| children | 18def94e5150 |
| 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"> |
|
2395
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
3 <title metal:fill-slot="head_title"> |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
4 <tal:block condition="context/id" i18n:translate="" |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
5 >User <span tal:replace="context/id" i18n:name="id" |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
6 />: <span tal:replace="context/username" i18n:name="title" |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
7 /> - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker" |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
8 /></tal:block> |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
9 <tal:block condition="not:context/id" i18n:translate="" |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
10 >New User - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker" |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
11 /></tal:block> |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
12 </title> |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
13 <tal:block metal:fill-slot="body_title"> |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
14 <span tal:condition="python: not (context.id or context.is_edit_ok())" |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
15 tal:omit-tag="python:1" i18n:translate="">New User</span> |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
16 <span tal:condition="python: not context.id and context.is_edit_ok()" |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
17 tal:omit-tag="python:1" i18n:translate="">New User Editing</span> |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
18 <span tal:condition="python: context.id and not context.is_edit_ok()" |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
19 tal:omit-tag="python:1" i18n:translate="">User<tal:x |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
20 replace="context/id" i18n:name="id" /></span> |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
21 <span tal:condition="python: context.id and context.is_edit_ok()" |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
22 tal:omit-tag="python:1" i18n:translate="">User<tal:x |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
23 replace="context/id" i18n:name="id" /> Editing</span> |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
24 </tal:block> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
25 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
26 <td class="content" metal:fill-slot="content"> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
27 |
|
3119
c26f2ba69c78
some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents:
2395
diff
changeset
|
28 <p tal:condition="not:context/is_view_ok" i18n:translate="">You are not |
|
c26f2ba69c78
some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents:
2395
diff
changeset
|
29 allowed to view this page.</p> |
|
c26f2ba69c78
some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents:
2395
diff
changeset
|
30 |
|
c26f2ba69c78
some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents:
2395
diff
changeset
|
31 <div tal:condition="context/is_view_ok"> |
|
c26f2ba69c78
some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents:
2395
diff
changeset
|
32 |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
33 <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
|
34 enctype="multipart/form-data" |
|
1855
8b840f8626fb
Add "action" attributes to forms.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1829
diff
changeset
|
35 tal:attributes="action context/designator"> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
36 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
37 <table class="form"> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
38 <tr> |
|
2395
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
39 <th i18n:translate="">Name</th> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
40 <td tal:content="structure context/realname/field">realname</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
41 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
42 <tr> |
|
3442
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
43 <th class="required" i18n:translate="">Login Name</th> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
44 <td tal:content="structure context/username/field">username</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
45 </tr> |
|
3507
124dda1a2074
better rendering when not editable - based on patches by Tobias Herp
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3442
diff
changeset
|
46 <tr tal:condition="context/is_edit_ok"> |
|
2395
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
47 <th i18n:translate="">Login Password</th> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
48 <td tal:content="structure context/password/field">password</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
49 </tr> |
|
3507
124dda1a2074
better rendering when not editable - based on patches by Tobias Herp
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3442
diff
changeset
|
50 <tr tal:condition="context/is_edit_ok"> |
|
2395
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
51 <th i18n:translate="">Confirm Password</th> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
52 <td tal:content="structure context/password/confirm">password</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
53 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
54 <tr tal:condition="python:request.user.hasPermission('Web Roles')"> |
|
2395
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
55 <th i18n:translate="">Roles</th> |
|
2226
03bb30c5e2c3
user editing Role entry help text always appears
Richard Jones <richard@users.sourceforge.net>
parents:
2187
diff
changeset
|
56 <td> |
|
03bb30c5e2c3
user editing Role entry help text always appears
Richard Jones <richard@users.sourceforge.net>
parents:
2187
diff
changeset
|
57 <input tal:condition="context/id" |
|
03bb30c5e2c3
user editing Role entry help text always appears
Richard Jones <richard@users.sourceforge.net>
parents:
2187
diff
changeset
|
58 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
|
59 <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
|
60 tal:attributes="value db/config/NEW_WEB_USER_ROLES"> |
|
2395
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
61 <tal:block i18n:translate="">(to give the user more than one role, |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
62 enter a comma,separated,list)</tal:block> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
63 </td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
64 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
65 <tr> |
|
2395
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
66 <th i18n:translate="">Phone</th> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
67 <td tal:content="structure context/phone/field">phone</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
68 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
69 <tr> |
|
2395
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
70 <th i18n:translate="">Organisation</th> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
71 <td tal:content="structure context/organisation/field">organisation</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
72 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
73 <tr> |
|
2395
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
74 <th i18n:translate="">Timezone</th> |
|
2273
c77483d2cda4
merge from maint-0-7
Richard Jones <richard@users.sourceforge.net>
parents:
2246
diff
changeset
|
75 <td> |
|
c77483d2cda4
merge from maint-0-7
Richard Jones <richard@users.sourceforge.net>
parents:
2246
diff
changeset
|
76 <input tal:replace="structure context/timezone/field"> |
|
2395
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
77 <tal:block i18n:translate="">(this is a numeric hour offset, the default is |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
78 <span tal:replace="db/config/DEFAULT_TIMEZONE" i18n:name="zone" |
|
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
79 />)</tal:block> |
|
2245
c5fb778ec7e4
better timezone editing, also cleanup of is_edit/view_ok stuff
Richard Jones <richard@users.sourceforge.net>
parents:
2226
diff
changeset
|
80 </td> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
81 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
82 <tr> |
|
3442
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
83 <th class="required" i18n:translate="">E-mail address</th> |
|
3507
124dda1a2074
better rendering when not editable - based on patches by Tobias Herp
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3442
diff
changeset
|
84 <td tal:define="mailto context/address/field"> |
|
124dda1a2074
better rendering when not editable - based on patches by Tobias Herp
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3442
diff
changeset
|
85 <a tal:condition="not:context/is_edit_ok" |
|
124dda1a2074
better rendering when not editable - based on patches by Tobias Herp
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3442
diff
changeset
|
86 tal:attributes="href string:mailto:${mailto}" tal:content="mailto" |
|
124dda1a2074
better rendering when not editable - based on patches by Tobias Herp
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3442
diff
changeset
|
87 /><span tal:condition="context/is_edit_ok" tal:replace="structure mailto" /> |
|
124dda1a2074
better rendering when not editable - based on patches by Tobias Herp
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3442
diff
changeset
|
88 </td> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
89 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
90 <tr> |
|
2395
97f810f39d16
i18n markup
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
2273
diff
changeset
|
91 <th i18n:translate="">Alternate E-mail addresses<br>One address per line</th> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
92 <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
93 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
94 |
|
3507
124dda1a2074
better rendering when not editable - based on patches by Tobias Herp
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3442
diff
changeset
|
95 <tr tal:condition="context/is_edit_ok"> |
|
1829
4e4afbe3cd30
Move '<input type="hidden">' elements into a block.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1732
diff
changeset
|
96 <td> |
|
4e4afbe3cd30
Move '<input type="hidden">' elements into a block.
Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
parents:
1732
diff
changeset
|
97 |
|
1911
f5c804379c85
fixed ZRoundup - mostly changes to classic template
Richard Jones <richard@users.sourceforge.net>
parents:
1855
diff
changeset
|
98 <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
|
99 <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
|
100 </td> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
101 <td tal:content="structure context/submit">submit button here</td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
102 </tr> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
103 </table> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
104 </form> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
105 |
|
3442
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
106 <tal:block tal:condition="not:context/id" i18n:translate=""> |
|
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
107 <table class="form"> |
|
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
108 <tr> |
|
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
109 <td>Note: </td> |
|
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
110 <th class="required">highlighted</th> |
|
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
111 <td> fields are required.</td> |
|
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
112 </tr> |
|
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
113 </table> |
|
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
114 </tal:block> |
|
74268c847ace
mark login name and email address fields as required [SF#1392364]
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3119
diff
changeset
|
115 |
|
3119
c26f2ba69c78
some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents:
2395
diff
changeset
|
116 <tal:block tal:condition="context/id" tal:replace="structure context/history" /> |
|
c26f2ba69c78
some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents:
2395
diff
changeset
|
117 |
|
c26f2ba69c78
some bits I missed, and the next release will be beta ;)
Richard Jones <richard@users.sourceforge.net>
parents:
2395
diff
changeset
|
118 </div> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
119 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
120 </td> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
121 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
122 </tal:block> |
