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


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

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

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

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

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

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

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

1.3
date	2001.06.13.21.22.23;	author beril;	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.10
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@
<div id="rolepermissionadd" class="app">

 <h3>Add Permission to Role: <a href="/servlets/RoleEdit?roleID=$currentRole.getID()">$currentRole.getFullName()</a></h3>

<form action="RolePermissionAdd?roleID=$currentRole.getID()" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="roleID" value="$currentRole.getID()" />
<div id="hostactions">
#if( $currentRole.getType().equals("Host") )
 <h4>Host Actions</h4>
 <table border="1" cellspacing="2" cellpadding="3" width="100%"> 
  <tr>
   <th nowrap="nowrap">Add</th>
   <th nowrap="nowrap">Action</th>
  </tr>
 #set ($rowClass="a")
 #foreach( $action in $host.getHostActions() )
  <tr class="$rowClass">
    <td><input type="checkbox" name="Add $action.getID()" /></td>
    <td>$action.getName()</td>
  </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end

 #end
 </table>
#end
</div>
<div id="domainactions">
#if( $currentRole.getType().equals("Host") || $currentRole.getType().equals("Domain") )
 <h4>Domain Actions</h4>
 <table border="1" cellspacing="2" cellpadding="3" width="100%">
  <tr>
   <th nowrap="nowrap">Add</th>
   <th nowrap="nowrap">Action</th>
  </tr>
 #set ($rowClass="a")   
 #foreach( $action in $host.getDomainActions() )
  <tr class="$rowClass">
   <td><input type="checkbox" name="Add $action.getID()" /></td>
   <td>$action.getName()</td>
  </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end

 #end
 </table>
#end
</div>
<div id="projectactions">
 <h4>Project Actions</h4>
 <table border="1" cellspacing="2" cellpadding="3" width="100%">
  <tr>
   <th nowrap="nowrap">Add</th>
   <th nowrap="nowrap">Action</th>
  </tr>
#set ($rowClass="a")   
#foreach( $action in $host.getProjectActions() )
  <tr class="$rowClass">
   <td><input type="checkbox" name="Add $action.getID()" /></td>
   <td>$action.getName()</td>
  </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end

#end
 </table>
</div>
<div id="permissionscope">
 <h4>Permission Scope</h4>
 <p>Choose a resource to which the selected actions will be granted in the role.</p>

#set( $default = true )
#foreach( $resource in $host.getResources() )
 <p><input type="radio" name="resource" value="$resource.getID()"
 #if( $default )
  #set( $default = false )
  checked="checked"
 #end />
 $resource.getDescription(): $resource.getPattern()</p>
#end
<p><input type="submit" name="Button" value="Add Permissions" /></p>
</div>
</form>
</div>
@


1.9
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a0 1
#parse( "Admin_Nav.vm" )
a2 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d10 1
a10 1
 <h4>Host Actions:</h4>
d34 1
a34 1
 <h4>Domain Actions:</h4>
d57 1
a57 1
 <h4>Project Actions:</h4>
d79 1
a79 1
 <h4>Permission Scope:</h4>
@


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


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


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


1.5
log
@html usage revision to synch with scarab
@
text
@a0 1
#parse( "Admin_Nav.vm" )
d3 3
d10 1
a10 1
<div id="hostactions" class="app">
d34 1
a34 1
<div id="domainactions" class="app">
d58 1
a58 1
<div id="projectactions" class="app">
d80 1
a80 1
<div id="permissionscope" class="app">
d96 1
a96 1
</div>@


1.4
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="rolepermissionadd">
d8 1
a8 1
<div id="hostactions">
d11 1
a11 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%"> 
d32 1
a32 1
<div id="domainactions">
d35 1
a35 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
d56 1
a56 1
<div id="projectactions">
d58 1
a58 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
d78 1
a78 1
<div id="permissionscope">
@


1.3
log
@xhtml cleanup
@
text
@d4 1
a4 1
 <h3>Add Permission to Role: <a href="/servlets/RoleEdit?roleID=$currentRole.getID()">$currentRole.getName()</a></h3>
@


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
@d3 2
a4 5
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%"> 
  <TR> 
    <TD class="Header">Add Permission to Role: <a href="/servlets/RoleEdit?roleID=$currentRole.getID()">$currentRole.getName()</a></TD>
  </TR> 
</TABLE>
d6 3
a8 3
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" width="100%">
<FORM ACTION="RolePermissionAdd?roleID=$currentRole.getID()" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<INPUT TYPE="hidden" NAME="roleID" VALUE="$currentRole.getID()">
d10 7
a16 8
  <TR>
    <TD class="SmallHeader" colspan="3">Host Actions:</TD>
  </TR>
  <TR>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Add</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Action</TD>
  </TR>
d18 10
a27 5
  <TR>
    <TD><input type="checkbox" name="Add $action.getID()"></TD>
    <td></td>
    <TD class="PlainText">$action.getName()</TD>
  </TR>
d29 1
d31 2
a32 1

d34 7
a40 8
  <TR>
    <TD class="SmallHeader" colspan="3">Domain Actions:</TD>
  </TR>
  <TR>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Add</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Action</TD>
  </TR>
d42 10
a51 5
  <TR>
    <TD><input type="checkbox" name="Add $action.getID()"></TD>
    <td></td>
    <TD class="PlainText">$action.getName()</TD>
  </TR>
d53 1
d55 19
a74 14
  <TR>
    <TD class="SmallHeader" colspan="3">Project Actions:</TD>
  </TR>
  <TR>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Add</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="BLOCK" WIDTH="10"></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Action</TD>
  </TR>
#foreach( $action in $host.getProjectActions() )
 <TR>
   <TD><input type="checkbox" name="Add $action.getID()"></TD>
   <td></td>
   <TD class="PlainText">$action.getName()</TD>
 </TR>
d76 5
a80 10

  <TR>
    <TD colspan="3">&nbsp;</TD>
  </TR>
  <TR>
    <TD class="SmallHeader" colspan="3">Permission Scope:</TD>
  </TR>
<TR>
  <TD colspan="3" class="PlainText">Choose a resource to which the selected actions will be granted in the role.</TD>
</TR>
d84 1
a84 2
 <TR>
   <TD colspan="3" class="PlainText"><input type="radio" name="resource" value="$resource.getID()"
d87 3
a89 5
  checked
 #end>
 $resource.getDescription(): $resource.getPattern()
   </TD>
 </TR>
d91 4
a94 5

<TR>
  <TD colspan="3"><input type="submit" name="Button" value="Add Permissions"></TD>
</TR>
</TABLE>
@


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

