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


1.16
date	2001.08.24.01.39.33;	author tfahrner;	state Exp;
branches;
next	1.15;

1.15
date	2001.08.20.22.29.24;	author tfahrner;	state Exp;
branches;
next	1.14;

1.14
date	2001.08.09.16.21.10;	author jrobbins;	state Exp;
branches;
next	1.13;

1.13
date	2001.08.03.05.45.08;	author tfahrner;	state Exp;
branches;
next	1.12;

1.12
date	2001.08.03.04.44.24;	author tfahrner;	state Exp;
branches;
next	1.11;

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

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

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

1.8
date	2001.07.30.18.40.43;	author leonardr;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.27.20.17.35;	author leonardr;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.02.18.56.44;	author leonardr;	state Exp;
branches;
next	1.5;

1.5
date	2001.06.13.15.31.45;	author beril;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.12.21.54.12;	author beril;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.01.21.02.30;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.24.18.48.47;	author dlr;	state Exp;
branches;
next	1.1;

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


desc
@@


1.16
log
@removed redundant task links
@
text
@
<div id="rolelist" class="app">


<div id="hostroles">
 <h3>Host Roles</h3>

 <table border="1" cellspacing="2" cellpadding="3" width="100%"> 
  <tr>
   <th nowrap="nowrap">Name</th>
   <th nowrap="nowrap">Description</th>
   <th nowrap="nowrap">Requestable</th>
  </tr>
 #set ($rowClass="a")
 #foreach( $role in $host.getRoles() )
  <tr class="$rowClass">
   <td>
  #if( $acl.hasPermission("Role - Edit") )
   <a href="RoleEdit?roleID=$role.getID()">$role.getUnqualifiedName()</a>
  #else
   <a href="RoleView?roleID=$role.getID()">$role.getUnqualifiedName()</a>
  #end
   </td>
   <td>$role.getDescription()</td>
   <td>
  #if( $role.isRequestable() )
   X
  #else
   &nbsp;
  #end
   </td>
  </tr>

  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
#end
</table>
</div>

<div id="domainroles">
 <h3>Domain Roles</h3>

 <table border="1" cellspacing="2" cellpadding="3" width="100%"> 
  <tr>
   <th nowrap="nowrap">Name</th>
   <th nowrap="nowrap">Description</th>
   <th nowrap="nowrap">Requestable</th>
  </tr>
#set ($rowClass="a")
#foreach( $role in $currentDomain.getRoles() )
  <tr class="$rowClass">
   <td>
  #if( $acl.hasPermission("Role - Edit", $currentDomain) )
   <a href="RoleEdit?roleID=$role.getID()">$role.getUnqualifiedName()</a>
  #else
   <a href="RoleView?roleID=$role.getID()">$role.getUnqualifiedName()</a>
  #end
   </td> 
   <td>$role.getDescription()</td>
   <td> 
  #if( $role.isRequestable() )
   X
  #else
   &nbsp;
  #end
   </td>
  </tr>
  
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
 #end
 </table>
</div>

<div id="projectroles">
 <h3>Project Roles</h3>

 <table border="1" cellspacing="2" cellpadding="3" width="100%"> 
  <tr>
   <th nowrap="nowrap">Visibility</th>
   <th nowrap="nowrap">Name</th>
   <th nowrap="nowrap">Description</th>
   <th nowrap="nowrap">Requestable</th>
  </tr>
#set ($rowClass="a")
#foreach( $role in $currentProject.getRoles() )
  <tr class="$rowClass">    
   <td>
    #set ($associatedProject = $role.getProject())
    #if ($associatedProject.isHost() || $associatedProject.isDomain()) 
     All projects
    #else
     $associatedProject.getName() project
    #end    
   </td>
   <td>
  #if( $acl.hasPermission("Role - Edit", $currentProject) )
   <a href="RoleEdit?roleID=$role.getID()">$role.getUnqualifiedName()</a>
  #else
   <a href="RoleView?roleID=$role.getID()">$role.getUnqualifiedName()</a>
  #end
   </td> 
   <td>$role.getDescription()</td> 
   <td>
  #if( $role.isRequestable() )
   X
  #else
   &nbsp;
  #end
   </td>
  </tr> 
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
 #end
 </table>

</div>
</div>
@


1.15
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@a6 3
#if( $acl.hasPermission("Role - Add") )
 <p class="affordance"><a href="RoleAdd?type=Host">Add Host Role</a></p>
#end
a44 3
#if( $acl.hasPermission("Role - Add", $currentDomain) )
 <p class="affordance"><a href="RoleAdd?type=Domain">Add Domain Role</a></p>
#end
a82 3
#if( $acl.hasPermission("Role - Add", $currentProject) )
 <p class="affordance"><a href="RoleAdd?type=Project">Add Project Role</a></p>
#end
@


1.14
log
@made each "Add" link label say the type of thing it will create
@
text
@a0 1
#parse( "Admin_Nav.vm" )
a2 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d6 1
a6 1
 <h3>Host Roles:</h3>
d47 1
a47 1
 <h3>Domain Roles:</h3>
d88 1
a88 1
 <h3>Project Roles:</h3>
@


1.13
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@d12 1
a12 1
 <p class="affordance"><a href="RoleAdd?type=Host">Add New Role</a></p>
d53 1
a53 1
 <p class="affordance"><a href="RoleAdd?type=Domain">Add New Role</a></p>
d94 1
a94 1
 <p class="affordance"><a href="RoleAdd?type=Project">Add New Role</a></p>
@


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


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


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


1.9
log
@html usage revision to synch with scarab
@
text
@a0 1
#parse( "Admin_Nav.vm" )
d3 3
a5 1
 <h3>Role List</h3>
d7 2
a8 2
<div id="hostroles" class="app">
 <h4>Host Roles:</h4>
d48 2
a49 2
<div id="domainroles" class="app">
 <h4>Domain Roles:</h4>
d89 2
a90 2
<div id="projectroles" class="app">
 <h4>Project Roles:</h4>
d138 1
a138 1
</div>@


1.8
log
@Action cleanup. Some role actions, and Audit Log - View, had three actions apiece when one would do. We're now down to 76 actions.
@
text
@d3 1
a3 1
<div id="rolelist">
d6 1
a6 1
<div id="hostroles">
d12 1
a12 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%"> 
d47 1
a47 1
<div id="domainroles">
d53 1
a53 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%"> 
d88 1
a88 1
<div id="projectroles">
d94 1
a94 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%"> 
@


1.7
log
@Check role editing ability on the project level, not on the domain level.
@
text
@d8 1
a8 1
#if( $acl.hasPermission("Host Role - Add") )
d22 1
a22 1
  #if( $acl.hasPermission("Host Role - Edit") )
d49 1
a49 1
#if( $acl.hasPermission("Domain Role - Add", $currentDomain) )
d63 1
a63 1
  #if( $acl.hasPermission("Domain Role - Edit", $currentDomain) )
d90 1
a90 1
#if( $acl.hasPermission("Project Role - Add", $currentProject) )
d113 1
a113 1
  #if( $acl.hasPermission("Project Role - Edit", $currentProject) )
@


1.6
log
@Implemented project-scoped roles.
@
text
@d113 1
a113 1
  #if( $acl.hasPermission("Project Role - Edit", $currentDomain) )
@


1.5
log
@fixed alternating rows
@
text
@d19 1
a19 1
 #foreach( $role in $host.getHostRoles() )
d23 1
a23 1
   <a href="RoleEdit?roleID=$role.getID()">$role.getName()</a>
d25 1
a25 1
   <a href="RoleView?roleID=$role.getID()">$role.getName()</a>
d60 1
a60 1
#foreach( $role in $host.getDomainRoles() )
d64 1
a64 1
   <a href="RoleEdit?roleID=$role.getID()">$role.getName()</a>
d66 1
a66 1
   <a href="RoleView?roleID=$role.getID()">$role.getName()</a>
d90 1
a90 1
#if( $acl.hasPermission("Project Role - Add", $currentDomain) )
d96 1
d102 10
a111 2
#foreach( $role in $host.getProjectRoles() )
  <tr class="$rowClass"> 
d114 1
a114 1
   <a href="RoleEdit?roleID=$role.getID()">$role.getName()</a>
d116 1
a116 1
   <a href="RoleView?roleID=$role.getID()">$role.getName()</a>
@


1.4
log
@recoded according to new html/css standards
@
text
@d59 1
d100 1
@


1.3
log
@Corrected permission check.
@
text
@d3 2
a4 4
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" WIDTH="100%">
 <TR>
  <TD colspan="2" class="Header">Role List</TD>
 </TR>
d6 2
a7 6

<TR><TD valign="TOP" COLSPAN="5">&nbsp;</TD></TR>


##Host roles
<TR><TD colspan="2" class="SmallHeader">Host Roles:</TD>
d9 1
a9 1
      <TD ALIGN="RIGHT" colspan="3" CLASS="PlainText"><A HREF="RoleAdd?type=Host">Add New Role</a></TD>
a10 1
</TR>
d12 10
a21 11
  <TR>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Name</TD>
  <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Description</TD>
  <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Requestable</TD>
  </TR>

#foreach( $role in $host.getHostRoles() )
 <TR> 
  <TD class="PlainText" VALIGN="top">
d23 1
a23 1
   <A HREF="RoleEdit?roleID=$role.getID()">$role.getName()</A>
d25 1
a25 1
   <A HREF="RoleView?roleID=$role.getID()">$role.getName()</A>
d27 3
a29 5
  </TD> 
  <td></td>
  <TD class="PlainText">$role.getDescription()</TD> 
  <td></td>
  <TD class="PlainText"> 
d32 10
a42 11
  </TD>
 </TR> 
  <TR>
   <TD COLSPAN="5">
    <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>
d44 2
d47 2
a48 6
<TR><TD valign="TOP" COLSPAN="5"><HR size="1" noshade></TD></TR>
<TR><TD valign="TOP" COLSPAN="5">&nbsp;</TD></TR>

##Domain roles
<TR>
<TD colspan="2" class="SmallHeader">Domain Roles:</TD>
d50 1
a50 1
      <TD ALIGN="RIGHT" colspan="3" CLASS="PlainText"><A HREF="RoleAdd?type=Domain">Add New Role</A></TD>
a51 9
</TR>

  <TR>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Name</TD>
  <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Description</TD>
  <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Requestable</TD>
  </TR>
d53 6
d60 2
a61 2
 <TR> 
  <TD class="PlainText" VALIGN="top">
d63 1
a63 1
   <A HREF="RoleEdit?roleID=$role.getID()">$role.getName()</A>
d65 1
a65 1
   <A HREF="RoleView?roleID=$role.getID()">$role.getName()</A>
d67 3
a69 5
  </TD> 
  <td></td>
  <TD class="PlainText">$role.getDescription()</TD> 
  <td></td>
  <TD class="PlainText"> 
d72 2
d75 11
a85 12
  </TD>
 </TR> 
  <TR>
   <TD COLSPAN="5">
    <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>
#end
d87 2
a88 6
<TR><TD valign="TOP" COLSPAN="5"><HR size="1" noshade></TD></TR>
<TR><TD valign="TOP" COLSPAN="5">&nbsp;</TD></TR>

##Project roles
<TR>
<TD colspan="2" class="SmallHeader">Project Roles:</TD>
d90 1
a90 1
      <TD ALIGN="RIGHT" colspan="3" CLASS="PlainText"><A HREF="RoleAdd?type=Project">Add New Role</A></TD>
a91 9
</TR>

  <TR>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Name</TD>
  <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Description</TD>
  <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Requestable</TD>
  </TR>
d93 6
d100 2
a101 2
 <TR> 
  <TD class="PlainText" VALIGN="top">
d103 1
a103 1
   <A HREF="RoleEdit?roleID=$role.getID()">$role.getName()</A>
d105 1
a105 1
   <A HREF="RoleView?roleID=$role.getID()">$role.getName()</A>
d107 3
a109 5
  </TD> 
  <td></td>
  <TD class="PlainText">$role.getDescription()</TD> 
  <td></td>
  <TD class="PlainText"> 
d112 2
d115 9
a123 24
  </TD>
 </TR> 
  <TR>
   <TD COLSPAN="5">
    <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>
#end

</TABLE>

</FORM>








d125 2
@


1.2
log
@Removed BRAND_TEMPLATE_ROOT, SERVLET_TEMPLATE_ROOT, and SANDBOX from use in #include and #parse directives (deprecated by multiple template paths).
@
text
@d30 1
a30 1
  #if( $acl.hasPermission("Host Role - Edit", $currentDomain) )
@


1.1
log
@Adding Velocity templates.
@
text
@d1 1
a1 1
#parse( "$BRAND_TEMPLATE_ROOT/Admin_Nav.vm" )
@

