Code

access controls in the user page
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 16 Aug 2002 04:29:04 +0000 (04:29 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 16 Aug 2002 04:29:04 +0000 (04:29 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@958 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/templates/classic/html/user.item

index baaf52614abf0cb70096ae32ffa57d4f7b9d70ac..25a0261eda2533b69d8846f9ada1e2468295e821 100644 (file)
@@ -1,65 +1,81 @@
-<!-- $Id: user.item,v 1.6 2002-07-30 05:27:02 richard Exp $-->
-<table border=0 cellspacing=0 cellpadding=2>
+<!-- $Id: user.item,v 1.7 2002-08-16 04:29:04 richard Exp $-->
+<require permission="Edit" id="$userid">
 
-<tr class="strong-header">
+ <table border=0 cellspacing=0 cellpadding=2>
+ <tr class="strong-header">
   <td colspan=2>Your Details</td>
-</td>
+ </td>
+ <tr  bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">Name</span></td>
+  <td class="form-text"><display call="field('realname', size=40)"></td>
+ </tr>
+ <tr  bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">Login Name</span></td>
+  <td class="form-text"><display call="field('username', size=40)"></td>
+ </tr>
+ <tr  bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">Login Password</span></td>
+  <td class="form-text"><display call="field('password', size=10)"></td>
+ </tr>
+ <require permission="Web Roles">
+  <tr bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">Roles</span></td>
+  <td class="form-text"><display call="field('roles', size=40)"></td>
+  </tr>
+ </require>
+ <tr  bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">Phone</span></td>
+  <td class="form-text"><display call="field('phone', size=40)"></td>
+ </tr>
+ <tr  bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">Organisation</span></td>
+  <td class="form-text"><display call="field('organisation', size=40)"></td>
+ </tr>
+ <tr  bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">E-mail address</span></td>
+  <td class="form-text"><display call="field('address', size=40)"></td>
+ </tr>
+ <tr bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">Alternate
+   E-mail addresses</span><br>
+  <span class="form-help">One address per line</span></td>
+  <td class="form-text"><display call="multiline('alternate_addresses')"></td>
+ </tr>
 
-<tr  bgcolor="ffffea">
-    <td width=1% nowrap align=right><span class="form-label">Name</span></td>
-    <td class="form-text"><display call="field('realname', size=40)"></td>
-</tr>
-<tr  bgcolor="ffffea">
-    <td width=1% nowrap align=right><span class="form-label">Login Name</span></td>
-    <td class="form-text"><display call="field('username', size=40)"></td>
-</tr>
-<tr  bgcolor="ffffea">
-    <td width=1% nowrap align=right><span class="form-label">Login Password</span></td>
-    <td class="form-text"><display call="field('password', size=10)"></td>
-</tr>
-<require permission="Web Roles">
  <tr bgcolor="ffffea">
-    <td width=1% nowrap align=right><span class="form-label">Roles</span></td>
-    <td class="form-text"><display call="field('roles', size=40)"></td>
+  <td>&nbsp;</td>
+  <td class="form-text"><display call="submit()"></td>
  </tr>
-</require>
-<tr  bgcolor="ffffea">
-    <td width=1% nowrap align=right><span class="form-label">Phone</span></td>
-    <td class="form-text"><display call="field('phone', size=40)"></td>
-</tr>
-<tr  bgcolor="ffffea">
-    <td width=1% nowrap align=right><span class="form-label">Organisation</span></td>
-    <td class="form-text"><display call="field('organisation', size=40)"></td>
-</tr>
-<tr  bgcolor="ffffea">
-    <td width=1% nowrap align=right><span class="form-label">E-mail address</span></td>
-    <td class="form-text"><display call="field('address', size=40)"></td>
-</tr>
-<tr bgcolor="ffffea">
-    <td width=1% nowrap align=right><span class="form-label">Alternate
-    E-mail addresses</span><br>
-     <span class="form-help">One address per line</span></td>
-    <td class="form-text"><display call="multiline('alternate_addresses')"></td>
-</tr>
 
-<tr bgcolor="ffffea">
-    <td>&nbsp;</td>
-    <td class="form-text"><display call="submit()"></td>
-</tr>
+ <tr class="strong-header"><td colspan=2><b>Queries</b></td></tr>
+ <tr><td colspan=2><display call="list('queries')"></td></tr>
 
-<tr class="strong-header">
-    <td colspan=2><b>Queries</b></td>
-</tr>
-<tr>
-    <td colspan=2><display call="list('queries')"></td>
-</tr>
+ <tr class="strong-header"><td colspan=2><b>History</b></td></tr>
+ <tr><td colspan=2><display call="history()"></td></tr>
+ </table>
 
-<tr class="strong-header">
-    <td colspan=2><b>History</b></td>
-</tr>
-<tr>
-    <td colspan=2><display call="history()"></td>
-</tr>
+<else>
 
-</table>
+ <table border=0 cellspacing=0 cellpadding=2>
+ <tr class="strong-header">
+  <td colspan=2><display call="plain('realname')"></td>
+ </td>
+ <tr  bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">Login Name</span></td>
+  <td class="form-text"><display call="plain('username')"></td>
+ </tr>
+ <tr  bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">Phone</span></td>
+  <td class="form-text"><display call="plain('phone')"></td>
+ </tr>
+ <tr  bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">Organisation</span></td>
+  <td class="form-text"><display call="plain('organisation')"></td>
+ </tr>
+ <tr  bgcolor="ffffea">
+  <td width=1% nowrap align=right><span class="form-label">E-mail address</span></td>
+  <td class="form-text"><display call="email('address')"></td>
+ </tr>
+ </table>
 
+</require>