portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets permission-browser.vm permission-form.vm
Date Mon, 02 Jul 2001 08:01:57 GMT
taylor      01/07/02 01:01:56

  Added:       webapp/WEB-INF/templates/vm/portlets permission-browser.vm
                        permission-form.vm
  Log:
  - new browser and form for permissions
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/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/07/02 08:01:56 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/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/07/02 08:01:56 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>
          #formCell ("Permission Name" "name" $!permission.Name)
        </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>
  
  

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


Mime
View raw message