Mercurial > p > roundup > code
changeset 3507:124dda1a2074
better rendering when not editable - based on patches by Tobias Herp
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Thu, 26 Jan 2006 06:31:05 +0000 |
| parents | cf0f007dd807 |
| children | 927759deb5ec |
| files | templates/classic/html/user.item.html |
| diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/templates/classic/html/user.item.html Wed Jan 25 03:51:21 2006 +0000 +++ b/templates/classic/html/user.item.html Thu Jan 26 06:31:05 2006 +0000 @@ -43,11 +43,11 @@ <th class="required" i18n:translate="">Login Name</th> <td tal:content="structure context/username/field">username</td> </tr> - <tr> + <tr tal:condition="context/is_edit_ok"> <th i18n:translate="">Login Password</th> <td tal:content="structure context/password/field">password</td> </tr> - <tr> + <tr tal:condition="context/is_edit_ok"> <th i18n:translate="">Confirm Password</th> <td tal:content="structure context/password/confirm">password</td> </tr> @@ -81,14 +81,18 @@ </tr> <tr> <th class="required" i18n:translate="">E-mail address</th> - <td tal:content="structure context/address/field">address</td> + <td tal:define="mailto context/address/field"> + <a tal:condition="not:context/is_edit_ok" + tal:attributes="href string:mailto:${mailto}" tal:content="mailto" + /><span tal:condition="context/is_edit_ok" tal:replace="structure mailto" /> + </td> </tr> <tr> <th i18n:translate="">Alternate E-mail addresses<br>One address per line</th> <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td> </tr> - <tr> + <tr tal:condition="context/is_edit_ok"> <td> <input type="hidden" name="@template" value="item">
