head	1.15;
access;
symbols
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.12
	TIGRIS_0_9_2_3:1.12
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TURBINE_PEER:1.12
	TIGRIS_0_9_2_1:1.12
	TIGRIS_0_9_2:1.12.0.2
	TIGRIS_0_9_0:1.9.0.2
	TIGRIS_0_8_4:1.1.0.2;
locks; strict;
comment	@# @;


1.15
date	2001.03.08.19.05.38;	author leonardr;	state dead;
branches;
next	1.14;

1.14
date	2001.02.22.00.20.57;	author leonardr;	state Exp;
branches;
next	1.13;

1.13
date	2001.02.21.01.08.29;	author dlr;	state Exp;
branches;
next	1.12;

1.12
date	2000.12.29.17.11.54;	author leonardr;	state Exp;
branches
	1.12.4.1;
next	1.11;

1.11
date	2000.12.27.22.55.00;	author leonardr;	state Exp;
branches;
next	1.10;

1.10
date	2000.12.21.06.57.00;	author edk;	state Exp;
branches;
next	1.9;

1.9
date	2000.12.21.01.08.44;	author jrobbins;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	2000.12.21.00.56.35;	author jrobbins;	state Exp;
branches;
next	1.7;

1.7
date	2000.12.21.00.48.06;	author jrobbins;	state Exp;
branches;
next	1.6;

1.6
date	2000.12.20.23.30.54;	author kmaples;	state Exp;
branches;
next	1.5;

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

1.4
date	2000.12.07.20.45.54;	author jrobbins;	state Exp;
branches;
next	1.3;

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

1.2
date	2000.12.04.20.22.33;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.30.00.27.57;	author leonardr;	state Exp;
branches
	1.1.1.1
	1.1.2.1;
next	;

1.1.1.1
date	2001.02.21.00.36.53;	author dlr;	state Exp;
branches;
next	;

1.1.2.1
date	2000.12.05.06.34.18;	author jrobbins;	state Exp;
branches;
next	;

1.9.2.1
date	2000.12.21.07.16.57;	author jrobbins;	state Exp;
branches;
next	;

1.12.4.1
date	2001.01.31.02.05.50;	author leonardr;	state Exp;
branches;
next	1.12.4.2;

1.12.4.2
date	2001.02.12.17.20.30;	author leonardr;	state Exp;
branches;
next	1.12.4.3;

1.12.4.3
date	2001.02.14.23.26.46;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Political correctness strikes Tigris.org! The components of project and user groups no longer wish to be called "members", as that causes them to be confused with users who have roles in projects. The new, approved term is "elements".
@
text
@<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Add Members: <SPAN CLASS="ProjectNameHeader">$currentProjectGroup.getName()</SPAN></TD>  
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
<FORM ACTION="ProjectGroupMemberAdd" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<INPUT TYPE="hidden" NAME="projectGroupID" VALUE="$currentProjectGroup.getID()">
<TR>
 <TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Add</TD>
 <TD WIDTH="11%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>&nbsp;Project</B></TD>
 <TD WIDTH="84%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>Summary</B></TD>
</TR>

#set $projects = $currentDomain.getProjectsNotInGroup($currentProjectGroup, $itemsPerPage, $filter, $acl);
#set $thisPage = $projects.getPage($paginated_page);
#if ($thisPage.isEmpty())
{
 #if ($projects.isEmpty()) 
 {
  <font color="red">All avaliable projects are already in this group.</font>
 } #else {
  <font color="red">No matching projects found.</font>
 }
} #else {
 #foreach $project in $thisPage
 {
  <TR>
   <TD WIDTH="5%" BGCOLOR="white" ALIGN="RIGHT">
    <P><INPUT TYPE="CHECKBOX" NAME="Add $project.getID()">
   </TD>
   <TD WIDTH="20%" CLASS="PlainText" BGCOLOR="white">&nbsp;
    #if ($acl.hasPermission("Project - Edit", $currentDomain))
    {
     <A HREF="$project.getProjectPageURL("ProjectEdit")">$project.getName()</A>
    } #else {
     $project.getName()
    }
   </TD>
   <TD WIDTH="75%" CLASS="PlainText" VALIGN="TOP" BGCOLOR="white">
    $project.getShortDescription()
   </TD>
  </TR>
  <TR>
   <TD COLSPAN="6">
    <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>
 }
 <TR>
  <TD COLSPAN="3"><INPUT type="Submit" name="Button" value="Add to Group"></TD>
 </TR>

 <TR>
  <TD COLSPAN="4" CLASS="PlainText" ALIGN="cENTER">
   $projects.navigationBar("ProjectGroupMemberAdd?projectGroupID=$currentProjectGroup.getID()", $paginated_page);
  </TD>
 </TR>
}

<TR>
  <TD COLSPAN="4"><hr size="1" noshade></TD>
</TR>
<TR>
  <TD COLSPAN="4">
  <FORM METHOD="post" ACTION="ProjectGroupMemberAdd">
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
  </FORM>
  </TD>
</TR>
</TABLE>
</FORM>
@


1.14
log
@Fixed up pagination.
@
text
@@


1.13
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d16 3
a18 3
#set $paginatableList = $currentDomain.getProjectsNotInGroup($currentProjectGroup, $itemsPerPage, $filter, $acl);
#set $projectPage = $paginatableList.getPage($paginated_page);
#if (!$projectPage.isEmpty())
d20 8
a27 1
 #foreach $project in $projectPage
d61 1
a61 1
   $paginatableList.navigationBar("ProjectGroupMemberAdd?projectGroupID=$currentProjectGroup.getID()", $paginated_page);
a63 3

} #else {
 <font color="red">No matching projects were found.</font>
@


1.12
log
@Many, many pagination changes.
@
text
@d16 1
a16 1
#set $paginatableList = $currentDomain.getProjectsNotInGroup($currentProjectGroup, $itemsPerPage, $criterion, $acl);
d27 1
a27 1
    #if ($acl.hasPermissionForDomain("Project - Edit", $currentDomain.getID()))
@


1.12.4.1
log
@Converted permission checking somewhat.
@
text
@d27 1
a27 1
    #if ($acl.hasPermissionForDomain("Project - Edit", $currentDomain))
@


1.12.4.2
log
@Got rid of calls to deprecated permission checking methods.
@
text
@d27 1
a27 1
    #if ($acl.hasPermission("Project - Edit", $currentDomain))
@


1.12.4.3
log
@New templates for email messages.
@
text
@d16 1
a16 1
#set $paginatableList = $currentDomain.getProjectsNotInGroup($currentProjectGroup, $itemsPerPage, $filter, $acl);
@


1.11
log
@Corrected pagination link.
@
text
@d16 1
a16 1
#set $paginatableList = $currentDomain.getProjects($itemsPerPage, $criterion, $acl);
@


1.10
log
@this needs to be fixed in a much more comprehensive way (at the least it        should use the new PaginatableList abstract class).  now it gives
unauthorized access instead of producing invalid sql if you use the
pagination links -- that seems a slight improvement.
@
text
@d49 1
a49 1
  <TD COLSPAN="3"><INPUT type="hidden" name="projectID" value="$currentProject.getID()"><INPUT type="Submit" name="Button" value="Add to Group"></TD>
d54 1
a54 1
   $paginatableList.navigationBar("ProjectGroupMemberAdd?projectID=$currentProject.getID()&projectGroupID=$currentProjectGroup.getID()&", $paginated_page);
@


1.9
log
@added style
@
text
@d54 1
a54 1
   $paginatableList.navigationBar("ProjectGroupMemberAdd?projectID=$currentProject.getID()", $paginated_page);
@


1.9.2.1
log
@moved edks fixes from HEAD
@
text
@d54 1
a54 1
   $paginatableList.navigationBar("ProjectGroupMemberAdd?projectID=$currentProject.getID()&projectGroupID=$currentProjectGroup.getID()&", $paginated_page);
@


1.8
log
@correcter servlet names in pagination
@
text
@d53 1
a53 1
  <TD COLSPAN="4" CLASS="PlainText">
@


1.7
log
@added style
@
text
@d54 1
a54 1
   $paginatableList.navigationBar("ProjectMemberAdd?projectID=$currentProject.getID()", $paginated_page);
@


1.6
log
@Changed 'page' to 'paginated_page' to avoid name clash with noodle.
@
text
@d53 1
a53 1
  <TD COLSPAN="4">
@


1.5
log
@The new pagination regime marches on. All hail PaginatableList!
@
text
@d17 1
a17 1
#set $projectPage = $paginatableList.getPage($page);
d54 1
a54 1
   $paginatableList.navigationBar("ProjectMemberAdd?projectID=$currentProject.getID()", $page);
@


1.4
log
@style changes
@
text
@d10 5
a14 5
  <TR>
    <TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Add</TD>
    <TD WIDTH="11%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>&nbsp;Project</B></TD>
    <TD WIDTH="84%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>Real Name</B></TD>
  </TR>
d16 6
a21 19
  #set $projects=$currentDomain.getPaginatedProjects($acl, $context)
  #foreach $project in $projects
  {
   #if (!$project == null)
   {
    <TR>
    <TD WIDTH="5%" BGCOLOR="white" ALIGN="RIGHT">
      <P><INPUT TYPE="CHECKBOX" NAME="Add $project.getID()">
    </TD>
    <TD WIDTH="20%" CLASS="PlainText" BGCOLOR="white">&nbsp;
     #if ($acl.hasPermissionForDomain("Project - Edit", $currentDomain.getID()))
     {
      <A HREF="$project.getProjectPageURL("ProjectEdit")">$project.getName()</A>
     } #else {
      $project.getName()
     }
    </TD>
    <TD WIDTH="75%" CLASS="PlainText" VALIGN="TOP" BGCOLOR="white">$project.getName()</TD>
  </TR>
d23 14
a36 7
    <TD COLSPAN="6">
      <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
        <TR>
          <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
        </TR>
      </TABLE>
    </TD>
a37 2
   }
  }
d39 7
a45 1
    <TD COLSPAN="3"><INPUT type="hidden" name="projectID" value="$currentProject.getID()"><INPUT type="Submit" name="Button" value="Add to Group"></TD>
d47 4
a50 1
<TR><TD COLSPAN="3"><HR></TD></TR>
d52 5
a56 1
## todo what if there are no projects
d58 15
a72 5
#set $paginationURL="/servlets/ProjectMemberAdd?projectID=$currentProject.getID()&"
#parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/PaginationBar.wm" 
<TR><TD COLSPAN=4>
#parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/ProjectSelection.wm" 
</TR></TD>
a73 1
</TABLE>
@


1.3
log
@Brought project and usergroup templates into sync.
@
text
@d35 9
d50 2
@


1.2
log
@Normalized links.
@
text
@d16 2
a17 1
  #foreach $project in $currentDomain.getPaginatedProjects($acl, $context)
a36 1

d40 1
@


1.1
log
@Implemented ProjectGroupMemberAdd.
@
text
@d27 1
a27 1
      <A HREF="ProjectEdit?projectID=$project.getID()">$project.getName()</A>
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d10 5
a14 5
<TR>
 <TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Add</TD>
 <TD WIDTH="11%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>&nbsp;Project</B></TD>
 <TD WIDTH="84%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><B>Summary</B></TD>
</TR>
d16 17
a32 21
#set $paginatableList = $currentDomain.getProjectsNotInGroup($currentProjectGroup, $itemsPerPage, $filter, $acl);
#set $projectPage = $paginatableList.getPage($paginated_page);
#if (!$projectPage.isEmpty())
{
 #foreach $project in $projectPage
 {
  <TR>
   <TD WIDTH="5%" BGCOLOR="white" ALIGN="RIGHT">
    <P><INPUT TYPE="CHECKBOX" NAME="Add $project.getID()">
   </TD>
   <TD WIDTH="20%" CLASS="PlainText" BGCOLOR="white">&nbsp;
    #if ($acl.hasPermission("Project - Edit", $currentDomain))
    {
     <A HREF="$project.getProjectPageURL("ProjectEdit")">$project.getName()</A>
    } #else {
     $project.getName()
    }
   </TD>
   <TD WIDTH="75%" CLASS="PlainText" VALIGN="TOP" BGCOLOR="white">
    $project.getShortDescription()
   </TD>
d34 3
d38 1
a38 7
   <TD COLSPAN="6">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
     <TR>
      <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
     </TR>
    </TABLE>
   </TD>
a39 4
 }
 <TR>
  <TD COLSPAN="3"><INPUT type="Submit" name="Button" value="Add to Group"></TD>
 </TR>
d41 6
a46 20
 <TR>
  <TD COLSPAN="4" CLASS="PlainText" ALIGN="cENTER">
   $paginatableList.navigationBar("ProjectGroupMemberAdd?projectGroupID=$currentProjectGroup.getID()", $paginated_page);
  </TD>
 </TR>

} #else {
 <font color="red">No matching projects were found.</font>
}

<TR>
  <TD COLSPAN="4"><hr size="1" noshade></TD>
</TR>
<TR>
  <TD COLSPAN="4">
  <FORM METHOD="post" ACTION="ProjectGroupMemberAdd">
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
  </FORM>
  </TD>
</TR>
a47 1
</FORM>
@


1.1.2.1
log
@merged in changes from HEAD
@
text
@d27 1
a27 1
      <A HREF="$project.getProjectPageURL("ProjectEdit")">$project.getName()</A>
@


