You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2001/08/27 07:26:21 UTC

cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html group-browser.vm group-form.vm permission-browser.vm permission-form.vm role-browser.vm role-form.vm role-permission-form.vm user-browser.vm user-form.vm user-role-form.vm

taylor      01/08/26 22:26:21

  Added:       webapp/WEB-INF/templates/vm/portlets/html group-browser.vm
                        group-form.vm permission-browser.vm
                        permission-form.vm role-browser.vm role-form.vm
                        role-permission-form.vm user-browser.vm
                        user-form.vm user-role-form.vm
  Removed:     webapp/WEB-INF/templates/vm/portlets group-browser.vm
                        group-form.vm permission-browser.vm
                        permission-form.vm role-browser.vm role-form.vm
                        role-permission-form.vm user-browser.vm
                        user-form.vm user-role-form.vm
  Log:
  - moved security portlets to html directory.
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/group-browser.vm
  
  Index: group-browser.vm
  ===================================================================
  #**
  
  @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  @version $Id: group-browser.vm,v 1.1 2001/08/27 05:26:21 taylor Exp $
  
  *#
  
  #set ( $headings = ["Group Name", "Actions"] )
  
  <table>
  
    <tr>
      <td>
        <table border="true" cellspacing="1" cellpadding="3">
          <tr>
            #foreach ($heading in $headings)
            #headerCell ($heading)
            #end
          </tr>
  
          #foreach ($group in $groups)
          <tr>
            #entryCell ($group.Name)
            <td>
              #if ($group.Name != "Jetspeed")
                <a href="$jlink.setPanel("Group").addPathInfo("entityid",$group.Name).addQueryData("mode","delete")">Remove</a>
              #end
            </td>
          </tr>
          #end
        </table>
      </td>
    </tr>
    <tr>
      <td>
          <a href="$jlink.setPanel("Group").addQueryData("mode","insert")">Add Group</a>
      <td>
    </tr>
  </table>
  
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/group-form.vm
  
  Index: group-form.vm
  ===================================================================
  #**
  
  Display the details of a group.
  
  @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  @version $Id: group-form.vm,v 1.1 2001/08/27 05:26:21 taylor Exp $
  
  *#
  <form method="post" action="$jlink.setPanel("Group Browser").setAction("portlets.security.GroupUpdateAction")">
    <div align="left">
      <table bgcolor="#ffffff" cellpadding="5">
  
        #if ($errorTemplate)
        <tr>
          <td colspan="2">
            <table bgcolor="#ffffff">
              <tr>
                <td>
                  #parse ($errorTemplate)
                </td>
              </tr>
            </table>
          </td>
        </tr>
        #end
  
        <tr>
          #if (!$group)
            #set ($gname = "")
          #else
            #set ($gname = $group.Name)
          #end
          #formCell ("Group Name" "name" $gname)
        </tr>
        <tr>
          <td align="$ui.buttonAlignment" bgcolor="$!{skin.TitleBackgroundColor}">
            #*
              Check for a mode, the update and delete buttons
              shouldn't appear when inserting a new user.
            *#            
  
            #if ($mode == "update")
              <input type="submit" name="eventSubmit_doUpdate" value="Update Group"/>
            #elseif ($mode == "delete")
              <input type="submit" name="eventSubmit_doDelete" value="Confirm Deletion"/>
            #else
              <input type="submit" name="eventSubmit_doInsert" value="Add Group"/>
            #end
        </td>
        <td>
           $!msg         
        </td>
      </tr>
    </table>
      
    <input type="hidden" name="entityid" value="$!group.Name"/>
  </div>
  </form>
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/permission-browser.vm
  
  Index: permission-browser.vm
  ===================================================================
  #**
  
  @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  @version $Id: permission-browser.vm,v 1.1 2001/08/27 05:26:21 taylor Exp $
  
  *#
  
  #set ( $headings = ["Permission Name", "Actions"] )
  
  <table>
  
    <tr>
      <td>
        <table border="true" cellspacing="1" cellpadding="3">
          <tr>
            #foreach ($heading in $headings)
            #headerCell ($heading)
            #end
          </tr>
  
          #foreach ($permission in $permissions)
          <tr>
            #entryCell ($permission.Name)
            <td>
                <a href="$jlink.setPanel("Permission").addPathInfo("entityid",$permission.Name).addQueryData("mode","delete")">Remove</a>
            </td>
          </tr>
          #end
        </table>
      </td>
    </tr>
    <tr>
      <td>
          <a href="$jlink.setPanel("Permission").addQueryData("mode","insert")">Add Permission</a>
      <td>
    </tr>
  </table>
  
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/permission-form.vm
  
  Index: permission-form.vm
  ===================================================================
  #**
  
  Display the details of a permission.
  
  @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  @version $Id: permission-form.vm,v 1.1 2001/08/27 05:26:21 taylor Exp $
  
  *#
  <form method="post" action="$jlink.setPanel("Permission Browser").setAction("portlets.security.PermissionUpdateAction")">
    <div align="left">
      <table bgcolor="#ffffff" cellpadding="5">
  
        #if ($errorTemplate)
        <tr>
          <td colspan="2">
            <table bgcolor="#ffffff">
              <tr>
                <td>
                  #parse ($errorTemplate)
                </td>
              </tr>
            </table>
          </td>
        </tr>
        #end
  
        <tr>
          #if (!$permission)
              #set ($pname = "")
          #else
              #set ($pname = $permission.Name)
          #end
          #formCell ("Permission Name" "name" $pname)
        </tr>
        <tr>
          <td align="$ui.buttonAlignment" bgcolor="$!{skin.TitleBackgroundColor}">
            #*
              Check for a mode, the update and delete buttons
              shouldn't appear when inserting a new user.
            *#            
  
            #if ($mode == "update")
              <input type="submit" name="eventSubmit_doUpdate" value="Update Permission"/>
            #elseif ($mode == "delete")
              <input type="submit" name="eventSubmit_doDelete" value="Confirm Deletion"/>
            #else
              <input type="submit" name="eventSubmit_doInsert" value="Add Permission"/>
            #end
        </td>
        <td>
           $!msg         
        </td>
      </tr>
    </table>
      
    <input type="hidden" name="entityid" value="$!permission.Name"/>
  </div>
  </form>
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/role-browser.vm
  
  Index: role-browser.vm
  ===================================================================
  #**
  
  @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  @version $Id: role-browser.vm,v 1.1 2001/08/27 05:26:21 taylor Exp $
  
  *#
  
  #set ( $headings = ["Role Name", "Actions"] )
  
  <table>
  
    <tr>
      <td>
        <table border="true" cellspacing="1" cellpadding="3">
          <tr>
            #foreach ($heading in $headings)
            #headerCell ($heading)
            #end
          </tr>
  
          #foreach ($role in $roles)
          <tr>
            #entryCell ($role.Name)
            <td>
                <a href="$jlink.setPanel("Role Permissions").addPathInfo("entityid",$role.Name)">Permissions</a>
                <a href="$jlink.setPanel("Role").addPathInfo("entityid",$role.Name).addQueryData("mode","delete")">Remove</a>
            </td>
          </tr>
          #end
        </table>
      </td>
    </tr>
    <tr>
      <td>
          <a href="$jlink.setPanel("Role").addQueryData("mode","insert")">Add Role</a>
      <td>
    </tr>
  </table>
  
  
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/role-form.vm
  
  Index: role-form.vm
  ===================================================================
  #**
  
  Display the details of a role.
  
  @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  @version $Id: role-form.vm,v 1.1 2001/08/27 05:26:21 taylor Exp $
  
  *#
  <form method="post" action="$jlink.setPanel("Security Role Browser").setAction("portlets.security.RoleUpdateAction")">
    <div align="left">
      <table bgcolor="#ffffff" cellpadding="5">
  
        #if ($errorTemplate)
        <tr>
          <td colspan="2">
            <table bgcolor="#ffffff">
              <tr>
                <td>
                  #parse ($errorTemplate)
                </td>
              </tr>
            </table>
          </td>
        </tr>
        #end
  
        <tr>
          #if (!$role)
              #set ($rname = "")
          #else
              #set ($rname = $role.Name)
          #end
          #formCell ("Role Name" "name" $rname)
        </tr>
        <tr>
          <td align="$ui.buttonAlignment" bgcolor="$!{skin.TitleBackgroundColor}">
            #*
              Check for a mode, the update and delete buttons
              shouldn't appear when inserting a new user.
            *#            
  
            #if ($mode == "update")
              <input type="submit" name="eventSubmit_doUpdate" value="Update Role"/>
            #elseif ($mode == "delete")
              <input type="submit" name="eventSubmit_doDelete" value="Confirm Deletion"/>
            #else
              <input type="submit" name="eventSubmit_doInsert" value="Add Role"/>
            #end
        </td>
        <td>
           $!msg         
        </td>
      </tr>
    </table>
      
    <input type="hidden" name="entityid" value="$!role.Name"/>
  </div>
  </form>
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/role-permission-form.vm
  
  Index: role-permission-form.vm
  ===================================================================
  #**
  
  @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  @version $Id: role-permission-form.vm,v 1.1 2001/08/27 05:26:21 taylor Exp $
  
  *#
  
  <h3>Permissions for Role: $role.Name<h3>
  #set ( $headings = ["Permission Name", "Assign"] )
  
  <form method="post" action="$jlink.setPanel("Role Permissions").setAction("portlets.security.RolePermissionUpdateAction")">
  
  <table>
  
    <tr>
      <td>
        <table border="true" cellspacing="1" cellpadding="3">
          <tr>
            #foreach ($heading in $headings)
            #headerCell ($heading)
            #end
          </tr>
  
          #foreach ($permission in $permissions)
          <tr>
            #entryCell ($permission.Name)
            #formCheckBox ($permission.Name $selected.elementAt($velocityCount).booleanValue())
          </tr>
          #end
        </table>
      </td>
    </tr>
    <tr>
      <td>
         <input type="submit" name="eventSubmit_doUpdate" value="Update"/>
      <td>
        <td>
           $!msg         
        </td>
    </tr>
  </table>
  <input type="hidden" name="entityid" value="$!role.Name"/>
  </form>
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/user-browser.vm
  
  Index: user-browser.vm
  ===================================================================
  #**
  
  @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  @version $Id: user-browser.vm,v 1.1 2001/08/27 05:26:21 taylor Exp $
  
  *#
  
  #set ( $headings = ["Username","First Name", "Last Name", "Email", "Actions"] )
  
  <table>
  
    <tr>
      <td>
        <table border="true" cellspacing="1" cellpadding="3">
          <tr>
            #foreach ($heading in $headings)
            #headerCell ($heading)
            #end
          </tr>
  
          #foreach ($user in $users)
          <tr>
            #entryCell ($!user.UserName)
            #entryCell ($!user.FirstName)
            #entryCell ($!user.LastName)
            #entryCell ("<a href=mailto:$!user.Email>$!user.Email</a>")
            <td>
                <a href="$jlink.setPanel("User").addPathInfo("entityid",$user.UserName).addQueryData("mode","update")">Edit</a> &nbsp;
                <a href="$jlink.setPanel("User Roles").addPathInfo("entityid",$user.UserName)">Roles</a>
                <a href="$jlink.setPanel("User").addPathInfo("entityid",$user.UserName).addQueryData("mode","delete")">Remove</a>
            </td>
          </tr>
          #end
        </table>
      </td>
    </tr>
    <tr>
      <td>
          <a href="$jlink.setPanel("User")">Add User</a>
      <td>
    </tr>
  </table>
  
  
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/user-form.vm
  
  Index: user-form.vm
  ===================================================================
  #**
  
  Display the details of a user.
  
  @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  @version $Id: user-form.vm,v 1.1 2001/08/27 05:26:21 taylor Exp $
  *#
  
  <form method="post" action="$jlink.setPanel("User Browser").setAction("portlets.security.UserUpdateAction")">
    <div align="left">
      <table bgcolor="#ffffff" cellpadding="5">
  
        #if ($errorTemplate)
        <tr>
          <td colspan="2">
            <table bgcolor="#ffffff">
              <tr>
                <td>
                  #parse ($errorTemplate)
                </td>
              </tr>
            </table>
          </td>
        </tr>
        #end
  
        <tr>
          #if (!$user)
            #set ($name = "")
            #set ($pw = "")
            #set ($fname = "")
            #set ($lname = "")
            #set ($email = "")
          #else
            #set ($name = $user.UserName)
            #set ($pw = $user.Password)
            #set ($fname = $user.FirstName)
            #set ($lname = $user.LastName)
            #set ($email = $user.Email)
          #end 
          #formCell ("Username" "username" $name)
        </tr>
        <tr>        
          #formPasswordCell ("Password" "password" $pw)
        </tr>
        <tr>
          #formCell ("First Name" "firstname" $fname)
        </tr>
        <tr>
          #formCell ("Last Name" "lastname" $lname)
        </tr>
        <tr>
          #formCell ("Email" "email" $email)
        </tr>
  
        <tr>
          <td align="$ui.buttonAlignment" bgcolor="$!{skin.TitleBackgroundColor}">
            #*
              Check for a mode, the update and delete buttons
              shouldn't appear when inserting a new user.
            *#            
  
            #if ($mode == "update")
              <input type="submit" name="eventSubmit_doUpdate" value="Update User"/>
            #elseif ($mode == "delete")
              <input type="submit" name="eventSubmit_doDelete" value="Confirm Deletion"/>
            #else
              <input type="submit" name="eventSubmit_doInsert" value="Add User"/>
            #end
        </td>
        <td>
           $!msg         
        </td>
      </tr>
    </table>
      
    <input type="hidden" name="entityid" value="$!user.UserName"/>
  </div>
  </form>
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/user-role-form.vm
  
  Index: user-role-form.vm
  ===================================================================
  #**
  
  @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  @version $Id: user-role-form.vm,v 1.1 2001/08/27 05:26:21 taylor Exp $
  
  *#
  
  <h3>Roles for $user.FirstName $user.LastName<h3>
  #set ( $headings = ["Role Name", "Assign"] )
  
  <form method="post" action="$jlink.setPanel("User Roles").setAction("portlets.security.UserRoleUpdateAction")">
  
  <table>
  
    <tr>
      <td>
        <table border="true" cellspacing="1" cellpadding="3">
          <tr>
            #foreach ($heading in $headings)
            #headerCell ($heading)
            #end
          </tr>
  
          #foreach ($role in $roles)
          <tr>
            #entryCell ($role.Name)
            #formCheckBox ($role.Name $selected.elementAt($velocityCount).booleanValue())
          </tr>
          #end
        </table>
      </td>
    </tr>
    <tr>
      <td>
         <input type="submit" name="eventSubmit_doUpdate" value="Update"/>
      <td>
        <td>
           $!msg         
        </td>
    </tr>
  </table>
  <input type="hidden" name="entityid" value="$!user.UserName"/>
  </form>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org