head	1.27;
access;
symbols
	TIGRIS_1_1_0RC2:1.23
	TIGRIS_1_1_0RC1:1.23
	TIGRIS_1_1:1.23.0.4
	TIGRIS_1_0_8:1.23
	TIGRIS_1_0_8RC3:1.23
	TIGRIS_1_0_8RC2:1.23
	TIGRIS_1_0_8RC1:1.23
	TIGRIS_1_0_7:1.23
	TIGRIS_1_0_7RC3:1.23
	TIGRIS_1_0_7RC2:1.23
	TIGRIS_1_0_7RC1:1.23
	TIGRIS_1_0_6:1.23
	TIGRIS_1_0_6RC5:1.23
	TIGRIS_1_0_6RC4:1.23
	TIGRIS_1_0_6RC3:1.23
	TIGRIS_1_0_6RC2:1.23
	TIGRIS_1_0_6RC1:1.23
	TIGRIS_1_0_5:1.23
	TIGRIS_1_0_5RC6:1.23
	TIGRIS_1_0_5RC5:1.23
	TIGRIS_1_0_5RC4:1.23
	TIGRIS_1_0_5RC3:1.23
	TIGRIS_1_0_5RC2:1.23
	TIGRIS_1_0_5RC1:1.23
	TIGRIS_1_0_4:1.23
	TIGRIS_1_0_3:1.23
	TIGRIS_1_0_2:1.23
	TIGRIS_1_0_1:1.23
	TIGRIS_1_0:1.23.0.6
	TIGRIS_1_0_0:1.23
	TIGRIS_1_0_0_RC1:1.23.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.15.2.1
	TIGRIS_0_9_2_3:1.15.2.1
	HELM_PEER_PORT_BRANCH:1.1.1.2
	TURBINE_PEER:1.17
	TIGRIS_0_9_2_1:1.17
	TIGRIS_0_9_2:1.15.0.2
	TIGRIS_0_9_0:1.12.0.2
	TIGRIS_0_8_4:1.7.0.2
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1;
locks; strict;
comment	@# @;


1.27
date	2001.05.23.02.04.15;	author dlr;	state dead;
branches;
next	1.26;

1.26
date	2001.05.13.07.35.20;	author jrobbins;	state Exp;
branches;
next	1.25;

1.25
date	2001.03.29.23.45.02;	author susank;	state Exp;
branches;
next	1.24;

1.24
date	2001.03.29.02.22.38;	author leonardr;	state Exp;
branches;
next	1.23;

1.23
date	2001.03.27.08.40.08;	author jrobbins;	state Exp;
branches;
next	1.22;

1.22
date	2001.03.27.08.27.08;	author jrobbins;	state Exp;
branches;
next	1.21;

1.21
date	2001.03.07.22.05.50;	author dlr;	state Exp;
branches;
next	1.20;

1.20
date	2001.02.23.23.53.41;	author elicia;	state Exp;
branches;
next	1.19;

1.19
date	2001.02.23.00.18.33;	author elicia;	state Exp;
branches;
next	1.18;

1.18
date	2001.02.21.01.08.31;	author dlr;	state Exp;
branches;
next	1.17;

1.17
date	2001.01.23.22.05.19;	author dlr;	state Exp;
branches
	1.17.2.1;
next	1.16;

1.16
date	2001.01.23.17.54.04;	author jrobbins;	state Exp;
branches;
next	1.15;

1.15
date	2001.01.11.00.52.14;	author elicia;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2001.01.04.20.44.50;	author kmaples;	state Exp;
branches;
next	1.13;

1.13
date	2000.12.30.02.25.36;	author leonardr;	state Exp;
branches;
next	1.12;

1.12
date	2000.12.20.23.36.06;	author kmaples;	state Exp;
branches;
next	1.11;

1.11
date	2000.12.15.23.57.23;	author elicia;	state Exp;
branches;
next	1.10;

1.10
date	2000.12.15.01.48.06;	author jody;	state Exp;
branches;
next	1.9;

1.9
date	2000.12.15.00.41.11;	author jody;	state Exp;
branches;
next	1.8;

1.8
date	2000.12.05.00.03.37;	author susank;	state Exp;
branches;
next	1.7;

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

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

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

1.4
date	2000.11.22.00.31.55;	author elicia;	state Exp;
branches;
next	1.3;

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

1.2
date	2000.11.15.20.26.37;	author susank;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.12.21.18.22;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.18.22;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.36.59;	author dlr;	state Exp;
branches;
next	;

1.15.2.1
date	2001.01.23.17.55.40;	author jrobbins;	state Exp;
branches;
next	;

1.17.2.1
date	2001.01.31.02.05.51;	author leonardr;	state Exp;
branches;
next	1.17.2.2;

1.17.2.2
date	2001.02.12.17.20.31;	author leonardr;	state Exp;
branches;
next	1.17.2.3;

1.17.2.3
date	2001.02.12.18.06.25;	author leonardr;	state Exp;
branches;
next	1.17.2.4;

1.17.2.4
date	2001.02.12.18.08.39;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.27
log
@Removed WM templates in favor of Velocity templates.
@
text
@<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap><b>Add Members:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getWordMark()</a></SPAN></TD>  
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
<FORM ACTION="ProjectMemberAdd" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">

##Do a paginated list containing user groups first and then users..

#set $startGroups=true
#set $startUsers=true

#set $paginatableList = $currentDomain.getGroupsAndUsers($itemsPerPage, $filter);
#set $userPage = $paginatableList.getPage($paginated_page);
#if (!$userPage.isEmpty())
{
 #foreach $user in $userPage
 {
  #if ($user.isGroup())
  {
   #if ($startGroups)
   {
    #set $startGroups=false
    <TR>
     <TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><b>Add</b></TD>
     <TD WIDTH="11%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">
      <B>&nbsp;User Group</B>
     </TD>
     <TD WIDTH="84%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">
      <B>Description</B>
     </TD>
    </TR>
   }
  } #else {
   #if ($startUsers)
   {
    #set $startUsers=false

    #if (!$startGroups)
    {
     <TR>
      <TD COLSPAN="3"><hr size="1" noshade></TD>
     </TR>
    }

    <TR>
     <TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Add</TD>
     <TD WIDTH="11%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">
      <B>&nbsp;User</B>
     </TD>
     <TD WIDTH="84%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">
      <B>Real Name</B>
     </TD>
    </TR>
   }
  }

  <TR>
   <TD WIDTH="5%" BGCOLOR="white">
    <P><INPUT TYPE="CHECKBOX" NAME="Grant $user.getID()">
   </TD>
   <TD WIDTH="20%" CLASS="PlainText" BGCOLOR="white">&nbsp;
    #if ($user.isGroup())
    {
     #if ($acl.hasPermission("UserGroup - Edit", $currentDomain))
     {
      <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</A>
     } #else {
      $user.getLoginName()
     }
    } #else {
      #if ($acl.hasPermission("User - Edit", $currentDomain))
      {
       <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A>
      } #else {
       $user.getLoginName()
      }
    }
   </TD>
   <TD WIDTH="75%" CLASS="PlainText" VALIGN="TOP" BGCOLOR="white">
    $user.getRealName()
   </TD>
  </TR>
 }

 <TR>
  <TD COLSPAN="3" ALIGN="CENTER" class="PlainText">
   $paginatableList.navigationBar($currentProject.getProjectPageURL($servletName), $paginated_page);
  </TD>
 </TR>

 <tr><td>&nbsp;</td></tr>
 <TR bgcolor="#efefef">
  <TD COLSPAN="3" CLASS="ProjectDownloadHeader">
   <b>Grant these roles to all selected users:</b>
  </TD>
 </TR>
 <TR>
  <TD COLSPAN="3">
   ## TODO: this should be a table of checkboxes labels and descriptions
   <SELECT NAME="roles" size="$rowsToShow" MULTIPLE>
    #foreach $role in $host.getRequestableProjectRoles()
    {
     <OPTION value="$role.getID()">$role.getName()</OPTION>
    }
   </SELECT>
  </TD>
 </TR>
 <TR>
  <TD COLSPAN="3" CLASS="PlainText">
   <INPUT type="checkbox" name="done" value="Y" checked>
   &nbsp;<b>Done granting roles</b>
   <br>
   When this box is checked, you will return to the Project Member List page
   after clicking the "Grant Roles" button. If you possibly want to add more
   members, remove the checkmark to return to the Add Members page.
  </TD>
 </TR>
 <TR>
  <TD COLSPAN="3"><INPUT type="hidden" name="projectID" value="$currentProject.getID()"><INPUT type="Submit" name="Button" value="Grant Roles"></TD>
 </TR>

 <TR>
  <TD COLSPAN="3"><hr size="1" noshade></TD>
 </TR>

 <TR>
  <TD COLSPAN="3">
   <FORM METHOD="post" ACTION="ProjectMemberAdd">
   #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
   </FORM>
  </TD>
 </TR>
} #else {
 <span class="Warning">No matching users were found.</span>
}
</FORM>
</TABLE>
@


1.26
log
@added style, regularized arguments to navigationBar, removed an unneeded link
@
text
@@


1.25
log
@merges UI cleanup changes from sc10inst
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d89 2
a90 2
  <TD COLSPAN="3" ALIGN="CENTER">
   $paginatableList.navigationBar($currentProject.getProjectPageURL("ProjectMemberAdd"), $paginated_page);
d137 1
a137 1
 <font color="red">No matching users were found.</font>
@


1.24
log
@Added style to navbar.
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Add Members: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getWordMark()</a></SPAN></TD>  
d27 1
a27 1
     <TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Add</TD>
d89 1
a89 1
  <TD COLSPAN=3 ALIGN="CENTER" CLASS="PlainText">
d97 1
a97 1
   Grant these roles to all selected users:
@


1.23
log
@added a little logic to make ProjectMemberAdd more usable on sites that refine their own roles
@
text
@d89 1
a89 1
  <TD COLSPAN=3 ALIGN="CENTER">
@


1.22
log
@made more room for the role list since the standrd list barely first and we are seeing sites define a lot more
@
text
@d103 1
a103 1
   <SELECT NAME="roles" size="8" MULTIPLE>
@


1.21
log
@* Removed extraneous blank row.
* Added checkbox indicating whether to proceed to the next servlet in
  the flow or not.  Added text and incorporated suggestions from Lori
  <lori@@collab.net>.
@
text
@d103 1
a103 1
   <SELECT NAME="roles"  MULTIPLE>
@


1.20
log
@removed debugging code
@
text
@d112 8
a119 3
  <TD WIDTH="5%">&nbsp;</TD>
  <TD WIDTH="11%">&nbsp;</TD>
  <TD WIDTH="84%">&nbsp;</TD>
@


1.19
log
@fixed method calls
@
text
@a15 1
$paginatableList 
@


1.18
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d15 2
a16 1
#set $paginatableList = $currentDomain.getGroupsAndUsers($itemsPerPage, $criterion);
d105 1
a105 1
    #foreach $role in $currentDomain.getRequestableProjectRoles()
@


1.17
log
@Use the word mark--rather than the name--to preserve the case.
@
text
@d67 1
a67 1
     #if ($acl.hasPermissionForDomain("UserGroup - Edit", $currentDomain.getID()))
d69 1
a69 1
      <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginID()</A>
d71 1
a71 1
      $user.getLoginID()
d74 1
a74 1
      #if ($acl.hasPermissionForDomain("User - Edit", $currentDomain.getID()))
d76 1
a76 1
       <A HREF="UserEdit?userID=$user.getID()">$user.getLoginID()</A>
d78 1
a78 1
       $user.getLoginID()
d83 1
a83 1
    $user.getName()
@


1.17.2.1
log
@Converted permission checking somewhat.
@
text
@d67 1
a67 1
     #if ($acl.hasPermissionForDomain("UserGroup - Edit", $currentDomain))
d74 1
a74 1
      #if ($acl.hasPermissionForDomain("User - Edit", $currentDomain))
@


1.17.2.2
log
@Got rid of calls to deprecated permission checking methods.
@
text
@d67 1
a67 1
     #if ($acl.hasPermission("UserGroup - Edit", $currentDomain))
d74 1
a74 1
      #if ($acl.hasPermission("User - Edit", $currentDomain))
@


1.17.2.3
log
@Changed calls to getLoginID to calls to getLoginName
@
text
@d69 1
a69 1
      <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</A>
d71 1
a71 1
      $user.getLoginName()
d76 1
a76 1
       <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A>
d78 1
a78 1
       $user.getLoginName()
@


1.17.2.4
log
@Changed calls to getName to calls to getRealName (Users only)
@
text
@d83 1
a83 1
    $user.getRealName()
@


1.16
log
@fixed typo
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Add Members: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
@


1.15
log
@changed links over to vhosting mode
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Add Members: <SPAN CLASS="ProjectNameHeader"><A HREF="currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
@


1.15.2.1
log
@moved typo fix from HEAD
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Add Members: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
@


1.14
log
@Display the correct links to user editing servlet.
@
text
@d90 1
a90 1
   $paginatableList.navigationBar("ProjectMemberAdd?projectID=$currentProject.getID()", $paginated_page);
@


1.13
log
@More pagination updates.
@
text
@d65 1
a65 1
    #if ($acl.hasPermissionForDomain("UserGroup - Edit", $currentDomain.getID()))
d67 6
a72 1
     <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginID()</A>
d74 6
a79 1
     $user.getLoginID()()
@


1.12
log
@Changed key 'page' to 'paginated_page' to avoid name clash w/ a noodle key named 'page'
@
text
@d10 8
a17 3
##Do a regular list for user groups.
#set $userGroups = $currentDomain.getUserGroups()
#if (!$userGroups.isEmpty())
d19 3
a21 6
  <TR>
    <TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Add</TD>
    <TD WIDTH="11%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>&nbsp;User Group</B></TD>
    <TD WIDTH="84%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>Description</B></TD>
  </TR>
  #foreach $userGroup in $userGroups
d23 1
a23 1
   #if (!$userGroup == null)
d25 1
d27 3
a29 2
     <TD WIDTH="5%" BGCOLOR="white">
       <P><INPUT TYPE="CHECKBOX" NAME="Grant $userGroup.getID()">
d31 2
a32 7
     <TD WIDTH="20%" CLASS="PlainText" BGCOLOR="white">&nbsp;
      #if ($acl.hasPermissionForDomain("UserGroup - Edit", $currentDomain.getID()))
      {
       <A HREF="UserGroupEdit?userGroupID=$userGroup.getID()">$userGroup.getName()</A>
      } #else {
       $userGroup.getName()()
      }
d34 6
a39 12
     <TD WIDTH="75%" CLASS="PlainText" VALIGN="TOP" BGCOLOR="white">$userGroup.getDescription()</TD>
   </TR>
    }
  }
}

##Do a paginated list for users.
  <TR>
    <TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Add</TD>
    <TD WIDTH="11%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>&nbsp;User</B></TD>
    <TD WIDTH="84%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>Real Name</B></TD>
  </TR>
d41 1
a41 3
  #foreach $user in $currentDomain.getPaginatedUsers($context);
  {
    #if (!$user == null)
d43 3
a45 14
  <TR>
    <TD WIDTH="5%" BGCOLOR="white">
      <P><INPUT TYPE="CHECKBOX" NAME="Grant $user.getUserID()">
    </TD>
    <TD WIDTH="20%" CLASS="PlainText" BGCOLOR="white">&nbsp;
     #if ($acl.hasPermissionForDomain("User - Edit", $currentDomain.getID()))
     {
      <A HREF="UserEdit?userID=$user.getID()">$user.getLoginID()</A>
     } #else {
      $user.getLoginID()
     }
    </TD>
    <TD WIDTH="75%" CLASS="PlainText" VALIGN="TOP" BGCOLOR="white">$user.getName()</TD>
  </TR>
d47 11
a59 3
## Only show this pagination shlock if there is actually more than one page.
#if ($currentPage)
{
d61 5
a65 10
    <TD class="PlainText" VALIGN="top"></TD>
    <TD WIDTH="10"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="PlainText" VALIGN="top">
  #if ($prevPage)
  {
      <A HREF="/servlets/ProjectMemberAdd?projectID=$currentProject.getID()&paginated_page=$prevPage">prev</A> | 
  }
  #foreach $page in $pages
  {
    #if (!$page.toString().equals("1"))
d67 3
a69 1
      |
d71 24
a94 1
    #if ($page.equals($currentPage))
d96 1
a96 3
      $page
    } #else {
      <A HREF="/servlets/ProjectMemberAdd?projectID=$currentProject.getID()&paginated_page=$page">$page</A>
d98 25
a122 9
  }
  #if ($nextPage)
  {
      | <A HREF="/servlets/ProjectMemberAdd?projectID=$currentProject.getID()&paginated_page=$nextPage">next</A>
  }
    <TD WIDTH="10"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="PlainText" VALIGN="top"></TD>
    <TD WIDTH="100%">&nbsp;</TD>
  </TR>
a123 26

  <tr><td>&nbsp;</td></tr>
  <TR bgcolor="#efefef">
    <TD COLSPAN="3" CLASS="ProjectDownloadHeader">
      Grant these roles to all selected users:
    </TD>
  </TR>
  <TR>
    <TD COLSPAN="3">
## TODO: this should be a table of checkboxes labels and descriptions
      <SELECT NAME="roles"  MULTIPLE>
  #foreach $role in $currentDomain.getRequestableProjectRoles()
  {
        <OPTION value="$role.getID()">$role.getName()</OPTION>
  }
      </SELECT>
    </TD>
  </TR>
  <TR>
    <TD WIDTH="5%">&nbsp;</TD>
    <TD WIDTH="11%">&nbsp;</TD>
    <TD WIDTH="84%">&nbsp;</TD>
  </TR>
  <TR>
    <TD COLSPAN="3"><INPUT type="hidden" name="projectID" value="$currentProject.getID()"><INPUT type="Submit" name="Button" value="Grant Roles"></TD>
  </TR>
@


1.11
log
@changed links to support vhosting and non-vhosting modes
@
text
@d78 1
a78 1
      <A HREF="/servlets/ProjectMemberAdd?projectID=$currentProject.getID()&page=$prevPage">prev</A> | 
d90 1
a90 1
      <A HREF="/servlets/ProjectMemberAdd?projectID=$currentProject.getID()&page=$page">$page</A>
d95 1
a95 1
      | <A HREF="/servlets/ProjectMemberAdd?projectID=$currentProject.getID()&page=$nextPage">next</A>
@


1.10
log
@moved more checkboxes to the left. jody.
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Add Members: <SPAN CLASS="ProjectNameHeader"><A HREF="/servlets/ProjectHome?projectID=$currentProject.getID()">$currentProject.getName()</a></SPAN></TD>  
@


1.9
log
@moved checkboxes to left. jody.
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d24 1
a24 1
     <TD WIDTH="5%" BGCOLOR="white" ALIGN="RIGHT">
@


1.8
log
@changed project name in title to link to ProjectHome
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d53 1
a53 1
    <TD WIDTH="5%" BGCOLOR="white" ALIGN="RIGHT">
@


1.7
log
@Fixes to group role granting.
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Add Members: <SPAN CLASS="ProjectNameHeader">$currentProject.getName()</SPAN></TD>  
@


1.6
log
@First stab at role grant to uesr groups.
@
text
@d25 1
a25 1
       <P><INPUT TYPE="CHECKBOX" NAME="Grant $user.getUserID()">
d30 1
a30 1
       <A HREF="UserGroupEdit?userGroupID=$user.getID()">$userGroup.getName()</A>
@


1.5
log
@Put in proper permissions-checked UserEdit links.
@
text
@d9 33
d48 1
a48 1
  #foreach $user in $userList
@


1.4
log
@changed name of requestable roles method
@
text
@d23 9
a31 2
    <TD WIDTH="11%" CLASS="PlainText" BGCOLOR="white">&nbsp;<A HREF="/servlets/UserEdit">$user.getLoginID()</A></TD>
    <TD WIDTH="84%" CLASS="PlainText" VALIGN="TOP" BGCOLOR="white">$user.getName()</TD>
d73 1
a73 1
      Grant these roles on all selected users:
@


1.3
log
@Only grant requestable roles--reasonable people may differ but I think this is the way to go.
@
text
@d73 1
a73 1
  #foreach $role in $currentDomain.getRequestableRoles()
@


1.2
log
@applied UI consistency changes round 3
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d73 1
a73 1
  #foreach $role in $roles
d76 1
a76 1
   }
@


1.1
log
@Initial revision
@
text
@d9 5
a13 5
				<TR>
					<TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Add</TD>
					<TD WIDTH="11%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>&nbsp;User</B></TD>
					<TD WIDTH="84%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>Real Name</B></TD>
				</TR>
d15 12
a26 13

   #foreach $user in $userList
   {
      #if (!$user == null)
      {
				<TR>
					<TD WIDTH="5%" BGCOLOR="white" ALIGN="RIGHT">
						<P><INPUT TYPE="CHECKBOX" NAME="Grant $user.getUserID()">
					</TD>
					<TD WIDTH="11%" CLASS="PlainText" BGCOLOR="white">&nbsp;<A HREF="/servlets/UserEdit">$user.getLoginID()</A></TD>
					<TD WIDTH="84%" CLASS="PlainText" VALIGN="TOP" BGCOLOR="white">$user.getName()</TD>
				</TR>
       }
a28 2


d63 8
a70 12
<tr><td>&nbsp;</td></tr>

				<TR bgcolor="#efefef" CLASS="ProjectDownloadHeader">
					<TD COLSPAN="3">
          Grant these roles on all selected users:
          </TD>
        </TR>
				<TR>
					<TD WIDTH="5%">&nbsp;</TD>
					<TD COLSPAN="2">


d72 16
a87 17
	<SELECT NAME="roles"  MULTIPLE>
	#foreach $role in $roles
	{
	    <OPTION value="$role.getID()">$role.getName()</OPTION>
	 }
	</SELECT>
					</TD>
				</TR>
				<TR>
					<TD WIDTH="5%">&nbsp;</TD>
					<TD WIDTH="11%">&nbsp;</TD>
					<TD WIDTH="84%">&nbsp;</TD>
				</TR>
				<TR>
					<TD WIDTH="5%">&nbsp;</TD>
					<TD COLSPAN="2"><INPUT type="hidden" name="projectID" value="$currentProject.getID()"><INPUT type="Submit" name="Button" value="Grant Roles"></TD>
				</TR>
d89 1
a89 1
			</TABLE>
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Add Members: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getWordMark()</a></SPAN></TD>  
d9 5
a14 1
##Do a paginated list containing user groups first and then users..
d16 14
a29 2
#set $startGroups=true
#set $startUsers=true
d31 3
a33 3
#set $paginatableList = $currentDomain.getGroupsAndUsers($itemsPerPage, $criterion);
#set $userPage = $paginatableList.getPage($paginated_page);
#if (!$userPage.isEmpty())
d35 5
a39 3
 #foreach $user in $userPage
 {
  #if ($user.isGroup())
d41 5
a45 19
   #if ($startGroups)
   {
    #set $startGroups=false
    <TR>
     <TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Add</TD>
     <TD WIDTH="11%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">
      <B>&nbsp;User Group</B>
     </TD>
     <TD WIDTH="84%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">
      <B>Description</B>
     </TD>
    </TR>
   }
  } #else {
   #if ($startUsers)
   {
    #set $startUsers=false

    #if (!$startGroups)
d47 1
a47 3
     <TR>
      <TD COLSPAN="3"><hr size="1" noshade></TD>
     </TR>
d49 1
a49 19

    <TR>
     <TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Add</TD>
     <TD WIDTH="11%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">
      <B>&nbsp;User</B>
     </TD>
     <TD WIDTH="84%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">
      <B>Real Name</B>
     </TD>
    </TR>
   }
  }

  <TR>
   <TD WIDTH="5%" BGCOLOR="white">
    <P><INPUT TYPE="CHECKBOX" NAME="Grant $user.getID()">
   </TD>
   <TD WIDTH="20%" CLASS="PlainText" BGCOLOR="white">&nbsp;
    #if ($user.isGroup())
d51 1
a51 6
     #if ($acl.hasPermission("UserGroup - Edit", $currentDomain))
     {
      <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</A>
     } #else {
      $user.getLoginName()
     }
d53 1
a53 6
      #if ($acl.hasPermission("User - Edit", $currentDomain))
      {
       <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A>
      } #else {
       $user.getLoginName()
      }
d55 8
a62 4
   </TD>
   <TD WIDTH="75%" CLASS="PlainText" VALIGN="TOP" BGCOLOR="white">
    $user.getRealName()
   </TD>
d64 3
a66 1
 }
d68 28
a95 46
 <TR>
  <TD COLSPAN=3 ALIGN="CENTER">
   $paginatableList.navigationBar($currentProject.getProjectPageURL("ProjectMemberAdd"), $paginated_page);
  </TD>
 </TR>

 <tr><td>&nbsp;</td></tr>
 <TR bgcolor="#efefef">
  <TD COLSPAN="3" CLASS="ProjectDownloadHeader">
   Grant these roles to all selected users:
  </TD>
 </TR>
 <TR>
  <TD COLSPAN="3">
   ## TODO: this should be a table of checkboxes labels and descriptions
   <SELECT NAME="roles"  MULTIPLE>
    #foreach $role in $currentDomain.getRequestableProjectRoles()
    {
     <OPTION value="$role.getID()">$role.getName()</OPTION>
    }
   </SELECT>
  </TD>
 </TR>
 <TR>
  <TD WIDTH="5%">&nbsp;</TD>
  <TD WIDTH="11%">&nbsp;</TD>
  <TD WIDTH="84%">&nbsp;</TD>
 </TR>
 <TR>
  <TD COLSPAN="3"><INPUT type="hidden" name="projectID" value="$currentProject.getID()"><INPUT type="Submit" name="Button" value="Grant Roles"></TD>
 </TR>

 <TR>
  <TD COLSPAN="3"><hr size="1" noshade></TD>
 </TR>

 <TR>
  <TD COLSPAN="3">
   <FORM METHOD="post" ACTION="ProjectMemberAdd">
   #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
   </FORM>
  </TD>
 </TR>
} #else {
 <font color="red">No matching users were found.</font>
}
d97 1
a97 1
</TABLE>
@

