view templates/classic/html/user.item.html @ 2365:3a80831ecebe

If the target platform is win32, create .bat files... ...instead of *nix shell scripts. Target platform is set to "win32" if main command is 'bdist_wininst' or if the command is 'bdist' and it has the list of formats (from command line or config file) and the first item on that list is wininst. Otherwise target platform is set to current (build) platform.
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Wed, 26 May 2004 10:00:53 +0000
parents c77483d2cda4
children 97f810f39d16
line wrap: on
line source

<!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar-->
<tal:block metal:use-macro="templates/page/macros/icing">
<title metal:fill-slot="head_title"> 
<span tal:condition="context/id"
      tal:replace="string:User ${context/id}: ${context/username}" />
<tal:x tal:condition="not:context/id">New User</tal:x> 
- <span tal:replace="config/TRACKER_NAME" />
</title> 
<span metal:fill-slot="body_title" tal:omit-tag="python:1">
  User<span tal:replace="context/id" />
   <tal:x tal:condition="context/is_edit_ok">Editing</tal:x>
 </span>

<td class="content" metal:fill-slot="content">

<form method="POST" onSubmit="return submit_once()"
      enctype="multipart/form-data"
      tal:attributes="action context/designator">

<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>
  <th>Confirm Password</th>
  <td tal:content="structure context/password/confirm">password</td>
 </tr>
 <tr tal:condition="python:request.user.hasPermission('Web Roles')">
  <th>Roles</th>
  <td>
   <input tal:condition="context/id"
          tal:replace="structure context/roles/field">
   <input name="roles" tal:condition="not:context/id"
          tal:attributes="value db/config/NEW_WEB_USER_ROLES">
   (to give the user more than one role, enter a comma,separated,list)
  </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>Timezone</th>
  <td>
   <input tal:replace="structure context/timezone/field">
   (this is a numeric hour offset, the default is
   <span tal:replace="db/config/DEFAULT_TIMEZONE" />)
  </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;
   <input type="hidden" name="@template" value="item">
   <input type="hidden" name="@required" value="username,address">
  </td>
  <td tal:content="structure context/submit">submit button here</td>
 </tr>
</table>
</form>

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

</td>

</tal:block>

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