comparison templates/classic/html/user.item.html @ 2395:97f810f39d16

i18n markup
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 06 Jun 2004 13:21:39 +0000
parents c77483d2cda4
children c26f2ba69c78
comparison
equal deleted inserted replaced
2394:29bfb67ba5ba 2395:97f810f39d16
1 <!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar--> 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"> 2 <tal:block metal:use-macro="templates/page/macros/icing">
3 <title metal:fill-slot="head_title"> 3 <title metal:fill-slot="head_title">
4 <span tal:condition="context/id" 4 <tal:block condition="context/id" i18n:translate=""
5 tal:replace="string:User ${context/id}: ${context/username}" /> 5 >User <span tal:replace="context/id" i18n:name="id"
6 <tal:x tal:condition="not:context/id">New User</tal:x> 6 />: <span tal:replace="context/username" i18n:name="title"
7 - <span tal:replace="config/TRACKER_NAME" /> 7 /> - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
8 </title> 8 /></tal:block>
9 <span metal:fill-slot="body_title" tal:omit-tag="python:1"> 9 <tal:block condition="not:context/id" i18n:translate=""
10 User<span tal:replace="context/id" /> 10 >New User - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
11 <tal:x tal:condition="context/is_edit_ok">Editing</tal:x> 11 /></tal:block>
12 </span> 12 </title>
13 <tal:block metal:fill-slot="body_title">
14 <span tal:condition="python: not (context.id or context.is_edit_ok())"
15 tal:omit-tag="python:1" i18n:translate="">New User</span>
16 <span tal:condition="python: not context.id and context.is_edit_ok()"
17 tal:omit-tag="python:1" i18n:translate="">New User Editing</span>
18 <span tal:condition="python: context.id and not context.is_edit_ok()"
19 tal:omit-tag="python:1" i18n:translate="">User<tal:x
20 replace="context/id" i18n:name="id" /></span>
21 <span tal:condition="python: context.id and context.is_edit_ok()"
22 tal:omit-tag="python:1" i18n:translate="">User<tal:x
23 replace="context/id" i18n:name="id" /> Editing</span>
24 </tal:block>
13 25
14 <td class="content" metal:fill-slot="content"> 26 <td class="content" metal:fill-slot="content">
15 27
16 <form method="POST" onSubmit="return submit_once()" 28 <form method="POST" onSubmit="return submit_once()"
17 enctype="multipart/form-data" 29 enctype="multipart/form-data"
18 tal:attributes="action context/designator"> 30 tal:attributes="action context/designator">
19 31
20 <table class="form"> 32 <table class="form">
21 <tr> 33 <tr>
22 <th>Name</th> 34 <th i18n:translate="">Name</th>
23 <td tal:content="structure context/realname/field">realname</td> 35 <td tal:content="structure context/realname/field">realname</td>
24 </tr> 36 </tr>
25 <tr> 37 <tr>
26 <th>Login Name</th> 38 <th i18n:translate="">Login Name</th>
27 <td tal:content="structure context/username/field">username</td> 39 <td tal:content="structure context/username/field">username</td>
28 </tr> 40 </tr>
29 <tr> 41 <tr>
30 <th>Login Password</th> 42 <th i18n:translate="">Login Password</th>
31 <td tal:content="structure context/password/field">password</td> 43 <td tal:content="structure context/password/field">password</td>
32 </tr> 44 </tr>
33 <tr> 45 <tr>
34 <th>Confirm Password</th> 46 <th i18n:translate="">Confirm Password</th>
35 <td tal:content="structure context/password/confirm">password</td> 47 <td tal:content="structure context/password/confirm">password</td>
36 </tr> 48 </tr>
37 <tr tal:condition="python:request.user.hasPermission('Web Roles')"> 49 <tr tal:condition="python:request.user.hasPermission('Web Roles')">
38 <th>Roles</th> 50 <th i18n:translate="">Roles</th>
39 <td> 51 <td>
40 <input tal:condition="context/id" 52 <input tal:condition="context/id"
41 tal:replace="structure context/roles/field"> 53 tal:replace="structure context/roles/field">
42 <input name="roles" tal:condition="not:context/id" 54 <input name="roles" tal:condition="not:context/id"
43 tal:attributes="value db/config/NEW_WEB_USER_ROLES"> 55 tal:attributes="value db/config/NEW_WEB_USER_ROLES">
44 (to give the user more than one role, enter a comma,separated,list) 56 <tal:block i18n:translate="">(to give the user more than one role,
57 enter a comma,separated,list)</tal:block>
45 </td> 58 </td>
46 </tr> 59 </tr>
47 <tr> 60 <tr>
48 <th>Phone</th> 61 <th i18n:translate="">Phone</th>
49 <td tal:content="structure context/phone/field">phone</td> 62 <td tal:content="structure context/phone/field">phone</td>
50 </tr> 63 </tr>
51 <tr> 64 <tr>
52 <th>Organisation</th> 65 <th i18n:translate="">Organisation</th>
53 <td tal:content="structure context/organisation/field">organisation</td> 66 <td tal:content="structure context/organisation/field">organisation</td>
54 </tr> 67 </tr>
55 <tr> 68 <tr>
56 <th>Timezone</th> 69 <th i18n:translate="">Timezone</th>
57 <td> 70 <td>
58 <input tal:replace="structure context/timezone/field"> 71 <input tal:replace="structure context/timezone/field">
59 (this is a numeric hour offset, the default is 72 <tal:block i18n:translate="">(this is a numeric hour offset, the default is
60 <span tal:replace="db/config/DEFAULT_TIMEZONE" />) 73 <span tal:replace="db/config/DEFAULT_TIMEZONE" i18n:name="zone"
74 />)</tal:block>
61 </td> 75 </td>
62 </tr> 76 </tr>
63 <tr> 77 <tr>
64 <th>E-mail address</th> 78 <th i18n:translate="">E-mail address</th>
65 <td tal:content="structure context/address/field">address</td> 79 <td tal:content="structure context/address/field">address</td>
66 </tr> 80 </tr>
67 <tr> 81 <tr>
68 <th>Alternate E-mail addresses<br>One address per line</th> 82 <th i18n:translate="">Alternate E-mail addresses<br>One address per line</th>
69 <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td> 83 <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
70 </tr> 84 </tr>
71 85
72 <tr> 86 <tr>
73 <td> 87 <td>

Roundup Issue Tracker: http://roundup-tracker.org/