head	1.11;
access;
symbols;
locks; strict;
comment	@# @;


1.11
date	2001.08.20.22.29.24;	author tfahrner;	state Exp;
branches;
next	1.10;

1.10
date	2001.08.03.05.45.08;	author tfahrner;	state Exp;
branches;
next	1.9;

1.9
date	2001.08.03.04.44.24;	author tfahrner;	state Exp;
branches;
next	1.8;

1.8
date	2001.07.31.01.18.40;	author tfahrner;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.31.00.01.57;	author tfahrner;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.30.21.59.24;	author tfahrner;	state Exp;
branches;
next	1.5;

1.5
date	2001.07.27.22.36.07;	author leonardr;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.17.03.39.03;	author jefflove;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.13.15.31.45;	author beril;	state Exp;
branches;
next	1.2;

1.2
date	2001.06.12.21.54.12;	author beril;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.23.02.03.15;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.11
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@<div id="acldump" class="app">
#set( $userACL = $currentUser.getACL() )
 <h3>Roles for <a href="/servlets/UserEdit?userID=$currentUser.getID()">$currentUser.getRealName()</a></h3>

<div id="directroles">
<h4>Direct Roles</h4>

<table border="1" cellspacing="2" cellpadding="3" width="100%">
 <tr>
  <th>Project</th>
  <th>Role(s)</th>
 </tr>
#set ($rowClass="a")
#set( $oldName = "" )
#foreach( $project in $userACL.getProjectsWithOriginalRole() )
 #set( $first = true )
 #foreach( $role in $userACL.getOriginalRolesInProject($project) )
 <tr class="$rowClass">
  <td>
  #if( $first )
   $project.getName()
   #set( $first = false )
  #else
   &nbsp;
  #end 
   </td>
  <td><a href="RoleView?roleID=$role.getID()">$role.getFullName()</a></td>
 </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
 #end
#end
</table>
</div>

<form name="ShowHideDerivedRolesForm" action="ACLDump?userID=$currentUser.getID()" method="post" enctype="application/x-www-form-urlencoded">
#if( !$action.equals("Show Derived Roles") )
 <p><input type="submit" name="Button" value="Show Derived Roles" /></p>

#else

<div id="derivedroles">

 <h4>Derived Roles</h4>
 <p><input type="submit" name="Button" value="Hide" /></p>

<table border="1" cellspacing="2" cellpadding="3" width="100%">
 <tr>
  <th>Project</th>
  <th>Role(s)</th>
 </tr>
#set ($rowClass="a")
#set( $oldName = "" )
#foreach( $project in $userACL.getProjectsWithDerivedRole() )
 #set( $first = true )
 #foreach( $role in $userACL.getDerivedRolesInProject($project) )
 <tr class="$rowClass">
  <td>
   #if( $first )
    $project.getName()
    #set( $first = false )
   #else
    &nbsp;
   #end 
  </td>
  <td><a href="RoleView?roleID=$role.getID()">$role.getFullName()</a></td>
 </tr>
   #if ($rowClass.equals("a"))
    #set ($rowClass="b")
   #else 
    #set ($rowClass="a")
   #end
  #end
 #end
 </table>

</div>
#end
</form>
</div>
@


1.10
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a0 2
#parse( "Admin_Nav.vm" )

a1 5
<h2>
 #parse( "Nomen.vm" )
</h2>


d3 1
a3 1
 <h3>Roles for <a href="/servlets/UserEdit?userID=$currentUser.getID()">$currentUser.getRealName()</a>:</h3>
d5 2
a6 5
<div id="directroles" class="app">
<h2>
 #parse( "Nomen.vm" )
</h2> 
<h4>Direct Roles:</h4>
d47 1
a47 1
 <h4>Derived Roles:</h4>
@


1.9
log
@restoring admin options nav, fixing html in ProjectAdd
@
text
@a6 3
#if( !$loginUser.isAnonymous() && $servletTaskBar.available($servletName))
#parse("$servletTaskBar.getPath($servletName)")
#end
@


1.8
log
@included "task nav" below headlines
@
text
@d1 1
@


1.7
log
@pulled admin options, added headlines
@
text
@d6 4
@


1.6
log
@html usage revision to synch with scarab
@
text
@a0 1
#parse( "Admin_Nav.vm" )
d3 3
d10 4
a13 1
<div id="directroles" class="app"> 
d53 1
a53 1
<div id="derivedroles" class="app">
d91 1
a91 1
</div>@


1.5
log
@Made Role.getName() get unqualified role name; this was neccessary because BaseRolePeer calls Role.getName(), which was causing roles to be created with their fully-qualified names being stored where their unqualified names should be. Templates which used to use Role.getName() now need to use Role.getFullName()
@
text
@d3 1
a3 1
<div id="acldump">
d8 1
a8 1
<div id="directroles"> 
d11 1
a11 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
d48 1
a48 1
<div id="derivedroles">
d53 1
a53 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.4
log
@html usage revisions
@
text
@d30 1
a30 1
  <td><a href="RoleView?roleID=$role.getID()">$role.getName()</a></td>
d72 1
a72 1
  <td><a href="RoleView?roleID=$role.getID()">$role.getName()</a></td>
@


1.3
log
@fixed alternating rows
@
text
@a4 2
<div id="directroles">

d7 3
a9 1
 <h4>Direct Roles:</h4>
d13 2
a14 2
  <th nowrap="nowrap">Project</th>
  <th nowrap="nowrap">Role(s)</th>
a39 1

d45 1
d55 2
a56 2
  <th nowrap="nowrap">Project</th>
  <th nowrap="nowrap">Role(s)</th>
@


1.2
log
@recoded according to new html/css standards
@
text
@d58 1
@


1.1
log
@Adding Velocity templates.
@
text
@d1 6
d8 2
d11 6
a16 13
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">  
  <TR>  
    <TD class="Header">Roles for <a href="/servlets/UserEdit?userID=$currentUser.getID()">$currentUser.getRealName()</a>:</TD> 
  </TR>  
</TABLE>

 <p class="SmallHeader">Direct Roles:</p>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" >
<TR>
  <TD class="ProjectDownloadHeader"  bgcolor="#efefef">Project</TD>
  <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
  <TD class="ProjectDownloadHeader"  bgcolor="#efefef">Role(s)</TD>
</TR>
d21 2
a22 2
  <TR>
    <TD class="PlainText">
d26 2
d29 8
a36 4
   </TD>
   <td></td>
   <TD class="PlainText"><a href="RoleView?roleID=$role.getID()">$role.getName()</a></td>
  </TR>
a37 9
  <TR>
   <TD COLSPAN="3">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
     <TR>
      <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
     </TR>
    </TABLE>
   </TD>
  </TR>
d39 1
a39 2
</TABLE>

d41 1
a41 1
<FORM NAME="ShowHideDerivedRolesForm" ACTION="ACLDump?userID=$currentUser.getID()" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
d43 1
d45 1
a45 1
 <INPUT TYPE="submit" NAME="Button" VALUE="Show Derived Roles">
a46 2
 <p class="SmallHeader">Derived Roles:
 <INPUT TYPE="submit" NAME="Button" VALUE="Hide"> </p>
d48 16
a63 12
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" >
  <TR>
   <TD class="ProjectDownloadHeader" bgcolor="#efefef">Project</TD> 
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
   <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
  </TR>
 #set( $oldName = "" )
 #foreach( $project in $userACL.getProjectsWithDerivedRole() )
  #set( $first = true )
  #foreach( $role in $userACL.getDerivedRolesInProject($project) )
  <TR>
    <TD class="PlainText">
d67 2
d70 8
a77 5
    </TD>
    <TD></TD>
    <TD class="PlainText"><a href="RoleView?roleID=$role.getID()">$role.getName()</a>
    </TD>
  </TR>
d79 2
a80 9
  <TR>
   <TD COLSPAN="3">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
     <TR>
      <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
     </TR>
    </TABLE>
   </TD>
  </TR>
d82 1
a82 2
 #end
 </TABLE>
d84 2
@

