view roundup/templates/classic/html/user.item @ 1074:954ad22eb7d9

more doc, more cleanup
author Richard Jones <richard@users.sourceforge.net>
date Mon, 09 Sep 2002 01:59:43 +0000
parents cf30c6cdca02
children 04b44df7af1d
line wrap: on
line source

<!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar-->
<tal:block tal:define="
    editok python:request.user.hasPermission('Edit') or
           context.id == request.user.id;
    viewok python:request.user.hasPermission('View')">

<span tal:condition="python:not (viewok or editok)">
You are not allowed to view this page.
</span>

<tal:block tal:condition="editok">
<form method="POST" onSubmit="return submit_once()" enctype="multipart/form-data">

<input type="hidden" name=":required" value="username,address">

<table class="form">
 <tr>
  <th>Name</th>
  <td tal:content="structure context/realname/field">realname</td>
 </tr>
 <tr>
  <th>Login Name</th>
  <td tal:content="structure context/username/field">username</td>
 </tr>
 <tr>
  <th>Login Password</th>
  <td tal:content="structure context/password/field">password</td>
 </tr>
 <tr tal:condition="python:request.user.hasPermission('Web Roles')">
  <th>Roles</th>
  <td tal:condition="context/id"
      tal:content="structure context/roles/field">roles</td>
  <td tal:condition="not:context/id">
   <input name="roles" tal:attributes="value db/config/NEW_WEB_USER_ROLES">
  </td>
 </tr>
 <tr>
  <th>Phone</th>
  <td tal:content="structure context/phone/field">phone</td>
 </tr>
 <tr>
  <th>Organisation</th>
  <td tal:content="structure context/organisation/field">organisation</td>
 </tr>
 <tr>
  <th>E-mail address</th>
  <td tal:content="structure context/address/field">address</td>
 </tr>
 <tr>
  <th>Alternate E-mail addresses<br>One address per line</th>
  <td tal:content="structure context/alternate_addresses/multiline">alternate_addresses</td>
 </tr>

 <tr>
  <td>&nbsp;</td>
  <td tal:content="structure context/submit">submit button here</td>
 </tr>
</table>
</form>

<tal:block tal:condition="context/id">
 <table class="otherinfo" tal:condition="context/queries">
  <tr><th class="header">Queries</th></tr>
  <tr tal:repeat="query context/queries">
   <td tal:content="query">query</td>
  </tr>
 </table>

 <tal:block tal:replace="structure context/history" />

</tal:block>

</tal:block>

<table class="form" tal:condition="python:viewok and not editok">
 <tr>
  <th colspan=2 class="header" tal:content="context/realname">realname</th>
 </tr>
 <tr>
  <th>Login Name</th>
  <td tal:content="context/username">username</td>
 </tr>
 <tr>
  <th>Phone</th>
  <td tal:content="context/phone">phone</td>
 </tr>
 <tr>
  <th>Organisation</th>
  <td tal:content="context/organisation">organisation</td>
 </tr>
 <tr>
  <th>E-mail address</th>
  <td tal:content="context/address/email">address</td>
 </tr>
</table>

</tal:block>


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