view roundup/templates/classic/html/user.item @ 1079:04b44df7af1d

removed some property name clashes
author Richard Jones <richard@users.sourceforge.net>
date Mon, 09 Sep 2002 05:28:48 +0000
parents 954ad22eb7d9
children 7e193bbda38e
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 colspan="2" class="header">Queries</th></tr>
  <tr><th>Name</th><th>Display</th></tr>
  <tr tal:repeat="query context/queries">
   <td><a tal:attributes="href string:query${query/id}"
          tal:content="query/name"></a></td>
   <td>
    <a tal:attributes="href python:'%s%s'%(query['klass'], query['url'])">display</a>
   </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/