[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - adduser.pt:1.1 edituser.pt:1.1

R. David Murray bitz@bitdance.com
Thu, 26 Dec 2002 18:23:26 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv23216

Added Files:
	adduser.pt edituser.pt 
Log Message:
Two templates accidentally got crunched into one in the grand renaming.
Split them back up.


=== Added File Zope3/src/zope/app/browser/services/adduser.pt ===
<html metal:use-macro="views/standard_macros/page">
<head>
  <title>Add User</title>
</head>
<body>

  <div metal:fill-slot="body">

    <form action="." method="post" enctype="multipart/form-data">
    
      <table>      
    	<tbody>   
    	
    	  <tr>
    	    <th>Id:</th>
    	    <td>
	      <input type="text" name="id" size="40" value="">  
            </td>
    	  </tr>
    	  <tr>
    	    <th>Title:</th>
    	    <td>
	      <input type="text" name="title" size="40" value="">  
            </td>
    	  </tr>
    	  <tr>
    	    <th>Description:</th>
    	    <td>
	      <input type="text" name="description" size="40" value="">  
            </td>
    	  </tr>
    	  <tr>
    	    <th>Login:</th>
    	    <td>
	      <input type="text" name="login" size="40" value="">  
            </td>
    	  </tr>
    	  <tr>
    	    <th>Password:</th>
    	    <td>
	      <input type="password" name="password" size="40" value="">  
            </td>
    	  </tr>
    	  <tr>
    	    <th>Roles:</th>
    	    <td>
	      <select name="roles:list">
	        <option value="Manager">Manager</option>
              </select>
            </td>
    	  </tr>
    	    	
    	</tbody>     
      </table>
    
      <input type="submit" name="action.html:method" value="Add" />
    
    </form> 

  </div>

</body>
</html>

=== Added File Zope3/src/zope/app/browser/services/edituser.pt ===
<html metal:use-macro="views/standard_macros/page">
<head>
  <title>Edit User</title>
</head>
<body>

  <div metal:fill-slot="body">

    <h1>User id: <span tal:replace="context/getId">12</span></h1>

    <form action="." method="post" enctype="multipart/form-data">
    
      <table>      
    	<tbody>   
    	
    	  <tr>
    	    <th>Title:</th>
    	    <td>
	      <input type="text" name="title" size="40" value="" 
                  tal:attributes="value context/getTitle">  
            </td>
    	  </tr>
    	  <tr>
    	    <th>Description:</th>
    	    <td>
	      <input type="text" name="description" size="40" value=""  
                  tal:attributes="value context/getDescription">  
            </td>
    	  </tr>
    	  <tr>
    	    <th>Login:</th>
    	    <td>
	      <input type="text" name="login" size="40" value=""
                  tal:attributes="value context/getLogin">  
            </td>
    	  </tr>
    	  <tr>
    	    <th>Password:</th>
    	    <td>
	      <input type="password" name="password" size="40" value="DEFAULT">
            </td>
    	  </tr>
    	  <tr>
    	    <th>Roles:</th>
    	    <td>
	      <select name="roles:list" size="5" multiple>
              	<tal:block tal:repeat="role view/getAvailableRoles"
              	           tal:define="user_roles context/getRoles"> 
              	  <option value=""
              		  tal:condition="python: role.getId() not in user_roles"
              	    tal:attributes="value role/getId"
              	    tal:content="role/getTitle" />
              	  <option value="" selected=""
              		  tal:condition="python: role.getId() in user_roles"
              	    tal:attributes="value role/getId"
              	    tal:content="role/getTitle" />
              	</tal:block>
              </select>
            </td>
    	  </tr>
    	    	
    	</tbody>     
      </table>
    
      <input type="submit" name="edit.html:method" value="Edit" />
    
    </form> 

  </div>

</body>
</html>