diff roundup/templates/classic/html/user.item @ 1003:f89b8d32291b

Hack hack hack... . Implemented security assertion idea punted to mailing list (pretty easy to back out if someone comes up with a better idea) so editing "my details" works again. Rationalised and cleaned up the actions in any case. . fixed some more display issues (stuff appearing when it should and shouldn't) . trying a nicer colouring scheme for the top level page . handle no grouping being specified . fixed journaltag so the logged-in user is journalled, not admin!
author Richard Jones <richard@users.sourceforge.net>
date Sun, 01 Sep 2002 12:18:41 +0000
parents 1798d2fa9fec
children efa19bdad6c3
line wrap: on
line diff
--- a/roundup/templates/classic/html/user.item	Sun Sep 01 04:32:30 2002 +0000
+++ b/roundup/templates/classic/html/user.item	Sun Sep 01 12:18:41 2002 +0000
@@ -25,7 +25,11 @@
  </tr>
  <tr tal:condition="python:request.user.hasPermission('Web Roles')">
   <th>Roles</th>
-  <td tal:content="structure user/roles/field">roles</td>
+  <td tal:condition="exists:item"
+      tal:content="structure user/roles/field">roles</td>
+  <td tal:condition="not:exists:item">
+   <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
+  </td>
  </tr>
  <tr>
   <th>Phone</th>
@@ -51,19 +55,22 @@
 </table>
 </form>
 
-<table class="otherinfo" tal:condition="user/queries">
- <tr><th class="header">Queries</th></tr>
- <tr tal:repeat="query user/queries">
-  <td tal:content="query">query</td>
- </tr>
-</table>
+<tal:block tal:condition="exists:item">
+ <table class="otherinfo" tal:condition="user/queries">
+  <tr><th class="header">Queries</th></tr>
+  <tr tal:repeat="query user/queries">
+   <td tal:content="query">query</td>
+  </tr>
+ </table>
 
-<table class="otherinfo">
- <tr><th class="header">History</th></tr>
- <tr>
-  <td tal:content="structure user/history">history</td>
- </tr>
-</table>
+ <table class="otherinfo">
+  <tr><th class="header">History</th></tr>
+  <tr>
+   <td tal:content="structure user/history">history</td>
+  </tr>
+ </table>
+</tal:block>
+
 </tal:block>
 
 <table class="form" tal:condition="python:viewok and not editok">

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