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


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

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

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

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

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

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

1.6
date	2001.07.30.21.24.23;	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.20.03.38.06;	author jefflove;	state Exp;
branches;
next	1.3;

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

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

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


desc
@@


1.12
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@
<div id="userroleadd" class="app">

 <h3>Add User Role: $currentDomain.getName()</h3>
 <form name="UserRoleAddForm" method="post" action="UserRoleAdd">
 <div id="multiproject">
  <input type="hidden" name="userID" value="$currentUser.getID()" />
 <p>Grant permissions to user $currentUser.getLoginName() on the following projects:</p>
#set( $projects = $currentDomain.getProjects($acl) )
#if( $projects.isEmpty() )
 <p class=alert">No matching projects found.</p>
#else
 <table border="1" cellspacing="2" cellpadding="3" width="100%">
  <tr>
   <th>Add</th>
   <th>Project</th>
   <th>Description</th>
   <th>Current Roles</th>
  </tr>
 #set ($rowClass="a")
 #foreach( $project in $currentDomain.getProjects($acl) )
  <tr class="$rowClass">
   <td><input type="checkbox" name="Grant $project.getID()" value="CheckBox" /></td>
   <td>
    #if( $acl.hasPermission("Project - Edit", $project) )
       <a href="$project.getProjectPageURL("ProjectEdit")">$project.getName()</a>
    #else
       $project.getName()
    #end
   </td>
   <td>$project.getShortDescription()</td>
   #set( $roles = $currentUser.getRolesInProject($project) )
   <td>
    #set( $first = true )
    #foreach( $role in $roles )
     #if( !$first )
,
     #end
      $role.getFullName()
     #set( $first = false )
    #end
   </td>
  </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end

 #end
 </table>
 <p>Grant these roles on all selected projects:</p>
 <p><select name="roles" multiple="multiple">
    #foreach( $role in $host.getProjectRoles() )
     <option value="$role.getID()"
    #if ( $rolesSelect )
     #if( $rolesSelect.equals($role.getFullName() ))
       selected="selected"
     #end
    #end
     >$role.getFullName()</option> 
    #end
    </select>
 </p>
 <p><input type="submit" name="Button" value="Grant Roles on all Selected Projects" /></p>
#end
</div>
<div id="multirole">
<p>Grant permissions to user $currentUser.getLoginName() on the following projects:</p>
#if( $projects.isEmpty() )
 <p><strong class="alert">No matching projects found.</strong>
</p>
#else
 <table border="1" cellspacing="2" cellpadding="3" width="100%">
  <tr>
   <th>Role</th>
   <th>Project</th>
   <th>Description</th>
  </tr>
#set( $projects = $currentDomain.getProjects($acl) )
 #foreach( $project in $projects )
  <tr class="$rowClass"> 
   <td>
   <select name="RoleSelect $project.getID()"> 
       <option value="">None</option> 
        #foreach( $role in $host.getProjectRoles() )
       <option value="$role.getID()" 
       #if ( $rolesSelect )
        #if( $rolesSelect.equals($role.getFullName() ))
         selected="selected" 
        #end 
       #end 
        >$role.getFullName()</option>  
        #end
       </select>
   </td>
   <td>
    #if( $acl.hasPermission("Project - Edit", $project) )
     <a href="$project.getProjectPageURL("ProjectEdit")">$project.getName()</a>
    #else
     $project.getName()
    #end
   </td>
   <td>$project.getShortDescription()</td>
  </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end

 #end  
 </table>
 <p><input type="submit" name="Button" value="Grant Selected Roles" /></p>
#end
</div>
</form>
</div>
@


1.11
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>
@


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


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


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


1.7
log
@html usage revision to synch with scarab
@
text
@a0 1
#parse( "Admin_Nav.vm" )
d3 3
d8 1
a8 1
 <div id="multiproject" class="app">
d70 1
a70 1
<div id="multirole" class="app">
@


1.6
log
@removed dependency on CSS for differentiation of alerts
@
text
@d3 1
a3 1
<div id="userroleadd">
d6 1
a6 1
 <div id="multiproject">
d13 1
a13 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
d68 1
a68 1
<div id="multirole">
d74 1
a74 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
@


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
@d71 2
a72 1
 <p class="alert">No matching projects found.</p>
@


1.4
log
@html usage revision
@
text
@d39 1
a39 1
      $role.getName()
d57 1
a57 1
     #if( $rolesSelect == $role.getName() )
d61 1
a61 1
     >$role.getName()</option> 
d88 1
a88 1
        #if( $rolesSelect==$role.getName() )
d92 1
a92 1
        >$role.getName()</option>  
@


1.3
log
@recoded the html according to new css/html standards
@
text
@d56 1
d60 1
d82 2
a83 1
   <td><select name="RoleSelect $project.getID()"> 
d87 1
d91 1
d117 1
a117 1
</div>@


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 6
a8 19
<FORM NAME="UserRoleAddForm" METHOD="post" ACTION="UserRoleAdd">
<INPUT TYPE="hidden" NAME="userID" VALUE="$currentUser.getID()">
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Add User Role: <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN></TD>  
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
  <TR>
    <TD class="InputHeader" VALIGN="top" NOWRAP COLSPAN="3">Grant permissions to user $currentUser.getLoginName() on the following projects:</TD>
  </TR>
  <TR>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Add</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Project</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Description</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Current Roles</TD>
  </TR> 

d11 1
a11 3
 <tr><td colspan="3">
  <span class="Warning">No matching projects found.</span>
 </td></tr> 
d13 8
d22 6
a27 6
   <TR> 
     <TD><INPUT TYPE="CHECKBOX" NAME="Grant $project.getID()" VALUE="CheckBox"></TD> 
     <TD class="PlainText" VALIGN="top">
      #if( $acl.hasPermission("Project - Edit", $project) )
       <A HREF="$project.getProjectPageURL("ProjectEdit")">$project.getName()</A>
      #else
d29 8
a36 8
      #end
     </TD> 
     <TD class="PlainText" VALIGN="top">$project.getShortDescription()</TD> 
     #set( $roles = $currentUser.getRolesInProject($project) )
     <TD class="PlainText" VALIGN="top">
     #set( $first = true )
     #foreach( $role in $roles )
      #if( !$first )
d38 1
a38 1
      #end
d40 10
a49 4
      #set( $first = false )
     #end
     </TD>
    </TR> 
d51 3
a53 7

 <TR>
  <TD class="InputHeader" VALIGN="top" NOWRAP COLSPAN="3">Grant these roles on all selected projects:</TD>
 </TR>
 <TR>
  <TD COLSPAN="3" class="PlainText">
   <select name="roles" multiple>
d57 1
a57 1
       selected
d61 3
a63 6
   </select>
   </TD> 
  </TR>
  <TR>
   <TD COLSPAN="3" class="PlainText" VALIGN="top"><INPUT TYPE="submit" NAME="Button" VALUE="Grant Roles on all Selected Projects"></TD>
  </TR>
d65 3
a67 16
  <TR>
   <TD COLSPAN="4"><HR SIZE="1" NOSHADE></TD>
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
  <TR>
    <TD class="InputHeader" VALIGN="top" NOWRAP COLSPAN="3">Grant permissions to user $currentUser.getLoginName() on the following projects:</TD>
  </TR>
  <TR>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Project</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Description</TD>
  </TR>     

#set( $projects = $currentDomain.getProjects($acl) )
d69 1
a69 3
 <tr><td colspan="4">
  <span class="Warning">No matching projects found.</span>
 </td></tr>
d71 7
d79 13
a91 15
  <TR> 
   <TD class="PlainText"> 
    <select name="RoleSelect $project.getID()"> 
     <option value="">None</option> 
     #foreach( $role in $host.getProjectRoles() )
      <option value="$role.getID()" 
      #if( $rolesSelect==$role.getName() )
       selected 
      #end 
      >$role.getName()</option>  
     #end
    </select> 
   </TD>  

   <TD class="PlainText" VALIGN="top">
d93 1
a93 1
     <A HREF="$project.getProjectPageURL("ProjectEdit")">$project.getName()</A>
d97 9
a105 3
   </TD>
   <TD class="PlainText" VALIGN="top">$project.getShortDescription()</TD> 
  </TR> 
d107 2
a108 3
 <TR>
  <TD COLSPAN="3" class="PlainText" VALIGN="top"><INPUT TYPE="submit" NAME="Button" VALUE="Grant Selected Roles"></TD>
 </TR>
d110 3
a112 3
</table>

</FORM>
@


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

