head	1.11;
access;
symbols
	TIGRIS_1_1_0RC2:1.8
	TIGRIS_1_1_0RC1:1.8
	TIGRIS_1_1:1.8.0.4
	TIGRIS_1_0_8:1.8
	TIGRIS_1_0_8RC3:1.8
	TIGRIS_1_0_8RC2:1.8
	TIGRIS_1_0_8RC1:1.8
	TIGRIS_1_0_7:1.8
	TIGRIS_1_0_7RC3:1.8
	TIGRIS_1_0_7RC2:1.8
	TIGRIS_1_0_7RC1:1.8
	TIGRIS_1_0_6:1.8
	TIGRIS_1_0_6RC5:1.8
	TIGRIS_1_0_6RC4:1.8
	TIGRIS_1_0_6RC3:1.8
	TIGRIS_1_0_6RC2:1.8
	TIGRIS_1_0_6RC1:1.8
	TIGRIS_1_0_5:1.8
	TIGRIS_1_0_5RC6:1.8
	TIGRIS_1_0_5RC5:1.8
	TIGRIS_1_0_5RC4:1.8
	TIGRIS_1_0_5RC3:1.8
	TIGRIS_1_0_5RC2:1.8
	TIGRIS_1_0_5RC1:1.8
	TIGRIS_1_0_4:1.8
	TIGRIS_1_0_3:1.8
	TIGRIS_1_0_2:1.8
	TIGRIS_1_0_1:1.8
	TIGRIS_1_0:1.8.0.6
	TIGRIS_1_0_0:1.8
	TIGRIS_1_0_0_RC1:1.8.0.2
	dlr:1.1.1
	HELM_PEER_PORT_BRANCH:1.1.1.1;
locks; strict;
comment	@# @;


1.11
date	2001.05.23.02.04.15;	author dlr;	state dead;
branches;
next	1.10;

1.10
date	2001.05.13.07.35.20;	author jrobbins;	state Exp;
branches;
next	1.9;

1.9
date	2001.03.29.23.45.02;	author susank;	state Exp;
branches;
next	1.8;

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

1.7
date	2001.03.21.01.17.49;	author susank;	state Exp;
branches;
next	1.6;

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

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

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

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

1.2
date	2001.02.21.01.56.43;	author edk;	state Exp;
branches;
next	1.1;

1.1
date	2001.02.13.19.04.47;	author leonardr;	state dead;
branches
	1.1.1.1
	1.1.2.1;
next	;

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

1.1.2.1
date	2001.02.13.19.04.47;	author leonardr;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2001.02.13.19.55.03;	author leonardr;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2001.02.15.18.38.54;	author jody;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Removed WM templates in favor of Velocity templates.
@
text
@#if ($loginUser.hasRoleGrantPermission($currentProject))
{
 #set $canGrant=true
}
#if ($acl.hasPermission("Project - Invite", $currentProject))
{
 #set $canInvite=true
}

<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
 <TR>
  <TD class="Header" nowrap><b>Members:</b><SPAN CLASS="ProjectNameHeader">
    <a HREF="$currentProject.getProjectHome()">$currentProject.getName()</A>
   </SPAN>
  </TD>  
  <TD CLASS="ProjectName" ALIGN="right">
   #if ($canInvite)
   {
    &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectInvite")">Invite New Members</A>&nbsp;|
   }

   #if ($loginUser && !$loginUser.isAnonymous())
   {
     #set $joinMessage="Request New Project Role"
     #if (($loginUser.getRolesInProject($currentProject).size() == 0) && ($loginUser.getRequestedRolesInProject($currentProject).size() == 0))
     {
       #set $joinMessage="Join This Project"
     }
     &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">$joinMessage</A>

     #if ($canGrant)
     {
      |&nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMemberAdd")"">Add New Member</a>
     }
   }
   #else
   {
   &nbsp;If you <a href="/servlets/Join">Register</a>, you could join this Project
   }
  </TD>
 </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
<FORM METHOD="post" action="ProjectMemberList">

#set $startedGroups=false
#set $startedUsers=false
#set $users=$currentProject.getUsers()

#if ($users.isEmpty())
{
 <TR>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>User</b></TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Real Name</b></TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Role(s)</b></TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Assigned Issues</b></TD>
 </TR>

 <TR><TD COLSPAN="4" class="PlainText">
  No users have roles in this project.
 </TD></TR>
}
#else
{
 #foreach $user in $users
 {
  #if ($user.isGroup())
  {
   #if (!$startedGroups)
   { 
    #set $startedGroups = true
    <TR>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>User Group</b></TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Real Name</b></TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Role(s)</b></TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">&nbsp;</TD>
    </TR>
   }
  } 
  #else 
  { 
   #if (!$startedUsers)
   { 
    #set $startedUsers = true
    <TR>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>User</b></TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Real Name</b></TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Role(s)</b></TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Assigned Issues</b></TD>
    </TR>
   }
  }
    
  <TR>
   <TD class="TableData" VALIGN="top">
   #if ($user.isGroup())
   {
    #if ($acl.hasPermission("UserGroup - Edit", $currentDomain))
    {
     <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</A></TD>
    } 
    #else 
    {
     $user.getLoginName()
    }
   } 
   #else 
   {
    #if ($acl.hasPermission("User - Edit", $currentDomain))
    {
     <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A></TD>
    } 
    #else 
    {
     $user.getLoginName()
    }
   }     
  </TD>

  <TD class="PlainText" VALIGN="top">$user.getRealName()</TD>

  <TD class="PlainText" VALIGN="top">
  #set $revocationPossible=false
  #foreach $role in $user.getRolesInProject($currentProject)
  {
   #if ($canGrant)
   {
    #set $revocationPossible=true
    <INPUT NAME="Revoke $user.getID() $role.getID()" TYPE="checkbox">
   }
   $role.getName()&nbsp;&nbsp;
  }
  </TD>

  ## Note: it's necessary to construct the link in several steps to prevent
  ## webmacro's tiny brain from frealing out: 
  #set $userbugsemail = "$user.getLoginName()%40$currentDomain.getName()"
  #set $userbugsargs = "issue_status=UNCONFIRMED&issue_status=NEW&issue_status=STARTED&issue_status=REOPENED&email1=$userbugsemail&emailtype1=substring&emailassigned_to1=1&issueidtype=include&chfieldto=Now&order=issues.priority,%20issues.issue_type"
  #set $buglistcgi = "/issues/buglist.cgi"
  #set $bugslink = $currentProject.getProjectFileURL($buglistcgi, $userbugsargs) 

  <TD class="ProjectName2">
   #if (!$user.isGroup())
   {
    <A HREF="$bugslink">View Issues</A>
   }
  </TD>
 </TR>
 }
}
<TR>
 <TD COLSPAN="4">
  <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="4" ALIGN="center" CLASS="PlainText">
  $users.navigationBar($currentProject.getProjectPageURL($servletName), $paginated_page);
 </TD>
</TR>

#if ($revocationPossible) 
{
 <TR>
  <TD></TD>
  <TD></TD>
  <TD>
   <INPUT TYPE="hidden" name="projectID" value="$currentProject.getID()">
   <INPUT TYPE="submit" name="Button" VALUE="Revoke Checked Roles">
  </TD>
  <TD></TD>
 </TR>
}
</table>

#if ($acl.hasPermission("Project Role - Grant", $currentProject))
{
 <HR SIZE="1" NOSHADE>

 <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
   <TR>
     <TD COLSPAN="4" CLASS="SmallHeader">Requests pending approval
#if (!$canGrant && $currentProject.isApproved())
{
<br>You cannot approve these roles until this project is approved
}
</TD>
   </TR>
   <TR>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>User</b></TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Real Name</b></TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Role(s) Requested</b></TD>
#if ($canGrant)
{
     <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Operations</b></TD>
}
   </TR>
 #foreach $user in $currentProject.getRequestedUsers()
 {
  #set $areThereRequestedUsers=1
  #foreach $role in $user.getRequestedRolesInProject($currentProject)
  {
   <TR>
    #if ($acl.hasPermission("User - View", $currentDomain))
    {
     <TD class="TableData" VALIGN="top"><A HREF="/servlets/UserEdit?userID=$user.getID()">$user.getLoginName()</A></TD>
    }
    #else 
    {
     <TD class="TableData" VALIGN="top">$user.getLoginName()</TD>
    }

     <TD class="PlainText" VALIGN="top"> $user.getRealName() </TD>
     <TD class="PlainText" VALIGN="top"> $role.getName()<br></TD>
    #if ($canGrant)
    {
     <TD class="PlainText">
       <INPUT NAME="Pending $user.getID() $role.getID()" VALUE="Approve" TYPE="radio">Approve 
       <INPUT NAME="Pending $user.getID() $role.getID()" VALUE="Defer" TYPE="radio" CHECKED>Defer
       <INPUT NAME="Pending $user.getID() $role.getID()" VALUE="Disapprove" TYPE="radio">Disapprove
     </TD>
    }
   </TR>
  <TR>      
    <TD COLSPAN="4">
      <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>

  }
 }

 #if ($areThereRequestedUsers)
 {
  #if ($canGrant)
  {
   <TR>
   <TD COLSPAN="3"></TD>
   <TD class="PlainText"><INPUT TYPE="hidden" name="projectID" value="$currentProject.getID()"><INPUT TYPE="submit" name="Button" VALUE="Edit Roles"></TD>
   </TR>
  }
 } #else {
  <TR>
   <TD colspan=4 class="PlainText"><i>There are no requested users for this project.</i></TD>
  </TR>
 }
</TABLE>
}
@


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


1.9
log
@merges UI cleanup changes from sc10inst
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d60 1
a60 1
 <TR><TD COLSPAN="4">
d164 1
a164 1
  $users.navigationBar($currentProject.getProjectPageURL("ProjectMemberList"), $paginated_page);
d188 1
a188 1
     <TD COLSPAN="4" CLASS="Welcome">Requests pending approval
@


1.8
log
@after further discussion with jason and dan, added link to Join servlet with "you could join..." msg
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d12 1
a12 2
  <TD class="Header" nowrap>Members:
   <SPAN CLASS="ProjectNameHeader">
d54 4
a57 4
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">User</TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Assigned Issues</TD>
d74 3
a76 3
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">User Group</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
d87 4
a90 4
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">User</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Assigned Issues</TD>
d196 3
a198 3
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">User</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s) Requested</TD>
d201 1
a201 1
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Operations</TD>
@


1.7
log
@added check to see if user is logged in around "join project"/"request new role" message.  If user is not logged in or is anonymous, text "If you
register, you could join this Project" appears
ref: IZ #3022
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d39 1
a39 1
   &nbsp;If you register, you could join this Project
@


1.6
log
@Corrected variable name.
@
text
@d23 1
a23 2
   #set $joinMessage="Request New Project Role"
   #if (($loginUser.getRolesInProject($currentProject).size() == 0) && ($loginUser.getRequestedRolesInProject($currentProject).size() == 0))
d25 11
a35 1
     #set $joinMessage="Join This Project"
d37 1
a37 3
   &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">$joinMessage</A>

   #if ($canGrant)
d39 1
a39 1
    |&nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMemberAdd")"">Add New Member</a>
@


1.5
log
@Inform project admins for whose unapproved projects people have requested roles that until their projects are approved, they cannot approve the requested roles.
@
text
@d183 1
a183 1
#if (!$canGrant && $project.isApproved())
@


1.4
log
@Got rid of unneccessary variable.
@
text
@d182 6
a187 1
     <TD COLSPAN="4" CLASS="Welcome">Requests pending approval</TD>
d193 2
d196 1
@


1.3
log
@Cleaned up projectmemberlist.
@
text
@a54 2
 #if ($noUsers)
 {
a55 1
 }
a56 1

a61 1
  #set $areThereUsers = true
a120 1
   ##if ($loginUser.canRevokeRole($user, $currentProject))
d164 9
a172 12
 #if ($areThereUsers)
 {
  <TR>
   <TD></TD>
   <TD></TD>
   <TD>
    <INPUT TYPE="hidden" name="projectID" value="$currentProject.getID()">
    <INPUT TYPE="submit" name="Button" VALUE="Revoke Checked Roles">
   </TD>
   <TD></TD>
  </TR>
 }
@


1.2
log
@add new files from the branch to the head (there should be only added
files, ie. no modified files).
@
text
@d11 21
a31 15
  <TR>
    <TD class="Header" nowrap>Members: <SPAN CLASS="ProjectNameHeader"><a HREF="$currentProject.getProjectHome()">$currentProject.getName()</A></SPAN></TD>  
    <TD CLASS="ProjectName" ALIGN="right">
    #if ($canInvite)
    {
     &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectInvite")">Invite New Members</A>&nbsp;|
    }
    #if (($loginUser.getRolesInProject($currentProject).size() == 0) && ($loginUser.getRequestedRolesInProject($currentProject).size() == 0))
    {
     &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Join This Project</A>
    } #else {
     &nbsp;  <A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Request New Project Role</A>
    }
    #if ($canGrant)
    {
d33 3
a35 3
    }
    </TD>
  </TR>
d41 5
a45 1
#if ($currentProject)
d47 21
a67 4
  #set $startedGroups=false
  #set $startedUsers=false
  #set $users=$currentProject.getUsers($itemsPerPage, $filter)
  #foreach $user in $users.getPage($paginated_page)
d69 34
a102 2
    #set $areThereUsers = "1"
    #if ($user.isGroup())
d104 1
a104 22
     #if (!$startedGroups)
     { 
      #set $startedGroups = true
      <TR>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">User Group</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">&nbsp;</TD>
      </TR>
     }

    } #else { 
     #if (!$startedUsers)
     { 
      #set $startedUsers = true
      <TR>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">User</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Assigned Issues</TD>
      </TR>
     }
d106 10
a115 32
    
  <TR>
    <TD class="TableData" VALIGN="top">
     #if ($user.isGroup())
     {
      #if ($acl.hasPermission("UserGroup - Edit", $currentDomain))
      {
       <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</A></TD>
      } #else {
       $user.getLoginName()
      }
     } #else {
      #if ($acl.hasPermission("User - Edit", $currentDomain))
      {
       <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A></TD>
      } #else {
       $user.getLoginName()
      }
     }     
    </TD>
    <TD class="PlainText" VALIGN="top">$user.getRealName()</TD>
    <TD class="PlainText" VALIGN="top">
    #set $revocationPossible=false
    #foreach $role in $user.getRolesInProject($currentProject)
    {
        ##if ($loginUser.canRevokeRole($user, $currentProject))
	#if ($canGrant)
	{
          #set $revocationPossible=true
          <INPUT NAME="Revoke $user.getID() $role.getID()" TYPE="checkbox">
        }
     $role.getName()&nbsp;&nbsp;
d117 2
a118 1
    </TD>
d120 1
a120 6
    ## Note: it's necessary to construct the link in several steps to prevent
    ## webmacro's tiny brain from frealing out: 
    #set $userbugsemail = "$user.getLoginName()%40$currentDomain.getName()"
    #set $userbugsargs = "issue_status=UNCONFIRMED&issue_status=NEW&issue_status=STARTED&issue_status=REOPENED&email1=$userbugsemail&emailtype1=substring&emailassigned_to1=1&issueidtype=include&chfieldto=Now&order=issues.priority,%20issues.issue_type"
    #set $buglistcgi = "/issues/buglist.cgi"
    #set $bugslink = $currentProject.getProjectFileURL($buglistcgi, $userbugsargs) 
d122 29
a150 16
    <TD class="ProjectName2">
    #if (!$user.isGroup())
    {
     <A HREF="$bugslink">View Issues</A>
    }
    </TD>
  </TR>
  <TR>
    <TD COLSPAN="4">
      <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>
d152 9
d162 1
a162 1
<TR>
d173 7
a179 11
    <TD></TD>
    <TD></TD>
    <TD class="PlainText"><INPUT TYPE="hidden" name="projectID" value="$currentProject.getID()"><INPUT TYPE="submit" name="Button" VALUE="Revoke Checked Roles" ></TD>
    <TD></TD>
  </TR>
 } #else {
  <TR>
    <TD colspan=4 class="PlainText"><i>There are no users on this project.</i></TD>
  </TR>
  <TR>
    <TD colspan=4>&nbsp;</TD>
a182 1

a252 1
}
@


1.1
log
@file ProjectMemberList.wm was initially added on branch HELM_PEER_PORT_BRANCH.
@
text
@d1 225
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@a0 225
#if ($loginUser.hasRoleGrantPermission($currentProject))
{
 #set $canGrant=true
}
#if ($acl.hasPermission("Project - Invite", $currentProject))
{
 #set $canInvite=true
}

<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Members: <SPAN CLASS="ProjectNameHeader"><a HREF="$currentProject.getProjectHome()">$currentProject.getName()</A></SPAN></TD>  
    <TD CLASS="ProjectName" ALIGN="right">
    #if ($canInvite)
    {
     &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectInvite")">Invite New Members</A>&nbsp;|
    }
    #if (($loginUser.getRolesInProject($currentProject).size() == 0) && ($loginUser.getRequestedRolesInProject($currentProject).size() == 0))
    {
     &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Join This Project</A>
    } #else {
     &nbsp;  <A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Request New Project Role</A>
    }
    #if ($canGrant)
    {
    |&nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMemberAdd")"">Add New Member</a>
    }
    </TD>
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
<FORM METHOD="post" action="ProjectMemberList">

#if ($currentProject)
{
  #set $startedGroups=false
  #set $startedUsers=false
  #set $users=$currentProject.getUsers($itemsPerPage, $filter)
  #foreach $user in $users.getPage($paginated_page)
  {
    #set $areThereUsers = "1"
    #if ($user.isGroup())
    {
     #if (!$startedGroups)
     { 
      #set $startedGroups = true
      <TR>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">User Group</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">&nbsp;</TD>
      </TR>
     }

    } #else { 
     #if (!$startedUsers)
     { 
      #set $startedUsers = true
      <TR>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">User</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Assigned Issues</TD>
      </TR>
     }
    }
    
  <TR>
    <TD class="TableData" VALIGN="top">
     #if ($user.isGroup())
     {
      #if ($acl.hasPermission("UserGroup - Edit", $currentDomain))
      {
       <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</A></TD>
      } #else {
       $user.getLoginName()
      }
     } #else {
      #if ($acl.hasPermission("User - Edit", $currentDomain))
      {
       <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A></TD>
      } #else {
       $user.getLoginName()
      }
     }     
    </TD>
    <TD class="PlainText" VALIGN="top">$user.getRealName()</TD>
    <TD class="PlainText" VALIGN="top">
    #set $revocationPossible=false
    #foreach $role in $user.getRolesInProject($currentProject)
    {
        ##if ($loginUser.canRevokeRole($user, $currentProject))
	#if ($canGrant)
	{
          #set $revocationPossible=true
          <INPUT NAME="Revoke $user.getID() $role.getID()" TYPE="checkbox">
        }
     $role.getName()&nbsp;&nbsp;
    }
    </TD>

    ## Note: it's necessary to construct the link in several steps to prevent
    ## webmacro's tiny brain from frealing out: 
    #set $userbugsemail = "$user.getLoginName()%40$currentDomain.getName()"
    #set $userbugsargs = "issue_status=UNCONFIRMED&issue_status=NEW&issue_status=STARTED&issue_status=REOPENED&email1=$userbugsemail&emailtype1=substring&emailassigned_to1=1&issueidtype=include&chfieldto=Now&order=issues.priority,%20issues.issue_type"
    #set $buglistcgi = "/issues/buglist.cgi"
    #set $bugslink = $currentProject.getProjectFileURL($buglistcgi, $userbugsargs) 

    <TD class="ProjectName2">
    #if (!$user.isGroup())
    {
     <A HREF="$bugslink">View Issues</A>
    }
    </TD>
  </TR>
  <TR>
    <TD COLSPAN="4">
      <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="4" ALIGN="center" CLASS="PlainText">
  $users.navigationBar($currentProject.getProjectPageURL("ProjectMemberList"), $paginated_page);
 </TD>
</TR>

#if ($revocationPossible) 
{
 #if ($areThereUsers)
 {
  <TR>
    <TD></TD>
    <TD></TD>
    <TD class="PlainText"><INPUT TYPE="hidden" name="projectID" value="$currentProject.getID()"><INPUT TYPE="submit" name="Button" VALUE="Revoke Checked Roles" ></TD>
    <TD></TD>
  </TR>
 } #else {
  <TR>
    <TD colspan=4 class="PlainText"><i>There are no users on this project.</i></TD>
  </TR>
  <TR>
    <TD colspan=4>&nbsp;</TD>
  </TR>
 }
}

</table>

#if ($acl.hasPermission("Project Role - Grant", $currentProject))
{
 <HR SIZE="1" NOSHADE>

 <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
   <TR>
     <TD COLSPAN="4" CLASS="Welcome">Requests pending approval</TD>
   </TR>
   <TR>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">User</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s) Requested</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Operations</TD>
   </TR>
 #foreach $user in $currentProject.getRequestedUsers()
 {
  #set $areThereRequestedUsers=1
  #foreach $role in $user.getRequestedRolesInProject($currentProject)
  {
   <TR>
    #if ($acl.hasPermission("User - View", $currentDomain))
    {
     <TD class="TableData" VALIGN="top"><A HREF="/servlets/UserEdit?userID=$user.getID()">$user.getLoginName()</A></TD>
    }
    #else 
    {
     <TD class="TableData" VALIGN="top">$user.getLoginName()</TD>
    }

     <TD class="PlainText" VALIGN="top"> $user.getRealName() </TD>
     <TD class="PlainText" VALIGN="top"> $role.getName()<br></TD>
    #if ($canGrant)
    {
     <TD class="PlainText">
       <INPUT NAME="Pending $user.getID() $role.getID()" VALUE="Approve" TYPE="radio">Approve 
       <INPUT NAME="Pending $user.getID() $role.getID()" VALUE="Defer" TYPE="radio" CHECKED>Defer
       <INPUT NAME="Pending $user.getID() $role.getID()" VALUE="Disapprove" TYPE="radio">Disapprove
     </TD>
    }
   </TR>
  <TR>      
    <TD COLSPAN="4">
      <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>

  }
 }

 #if ($areThereRequestedUsers)
 {
  #if ($canGrant)
  {
   <TR>
   <TD COLSPAN="3"></TD>
   <TD class="PlainText"><INPUT TYPE="hidden" name="projectID" value="$currentProject.getID()"><INPUT TYPE="submit" name="Button" VALUE="Edit Roles"></TD>
   </TR>
  }
 } #else {
  <TR>
   <TD colspan=4 class="PlainText"><i>There are no requested users for this project.</i></TD>
  </TR>
 }
</TABLE>
}
}
@


1.1.2.1
log
@Renamed ProjectMembers to ProjectMemberList.
@
text
@a0 224
#if ($loginUser.hasRoleGrantPermission($currentProject))
{
 #set $canGrant=true
}
#if ($acl.hasPermission("Project - Invite", $currentProject))
{
 #set $canInvite=true
}

<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Members: <SPAN CLASS="ProjectNameHeader"><a HREF="$currentProject.getProjectHome()">$currentProject.getName()</A></SPAN></TD>  
    <TD CLASS="ProjectName" ALIGN="right">
    #if ($canInvite)
    {
     &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectInvite")">Invite New Members</A>&nbsp;|
    }
    #if (($loginUser.getRolesInProject($currentProject.getID()).size() == 0) && ($loginUser.getRequestedRolesInProject($currentProject.getID()).size() == 0))
    {
     &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Join This Project</A>
    } #else {
     &nbsp;  <A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Request New Project Role</A>
    }
    #if ($canGrant)
    {
    |&nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMemberAdd")"">Add New Member</a>
    }
    </TD>
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
<FORM METHOD="post" action="ProjectMembers">

#if ($currentProject)
{
  #set $startedGroups=false
  #set $startedUsers=false
  #foreach $user in $currentProject.getUsers($itemsPerPage)
  {
    #set $areThereUsers = "1"
    #if ($user.isGroup())
    {
     #if (!$startedGroups)
     { 
      #set $startedGroups = true
      <TR>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">User Group</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">&nbsp;</TD>
      </TR>
     }

    } #else { 
     #if (!$startedUsers)
     { 
      #set $startedUsers = true
      <TR>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">User</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
       <TD class="ProjectDownloadHeader" bgcolor="#efefef">Assigned Issues</TD>
      </TR>
     }
    }
    
  <TR>
    <TD class="TableData" VALIGN="top">
     #if ($user.isGroup())
     {
      #if ($acl.hasPermission("UserGroup - Edit", $currentDomain))
      {
       <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</A></TD>
      } #else {
       $user.getLoginName()
      }
     } #else {
      #if ($acl.hasPermission("User - Edit", $currentDomain))
      {
       <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A></TD>
      } #else {
       $user.getLoginName()
      }
     }     
    </TD>
    <TD class="PlainText" VALIGN="top">$user.getRealName()</TD>
    <TD class="PlainText" VALIGN="top">
    #set $revocationPossible=false
    #foreach $role in $user.getRolesInProject($currentProject.getID())
    {
        ##if ($loginUser.canRevokeRole($user, $currentProject))
	#if ($canGrant)
	{
          #set $revocationPossible=true
          <INPUT NAME="Revoke $user.getID() $role.getID()" TYPE="checkbox">
        }
     $role.getName()&nbsp;&nbsp;
    }
    </TD>

    ## Note: it's necessary to construct the link in several steps to prevent
    ## webmacro's tiny brain from frealing out: 
    #set $userbugsemail = "$user.getLoginName()%40$currentDomain.getName()"
    #set $userbugsargs = "issue_status=UNCONFIRMED&issue_status=NEW&issue_status=STARTED&issue_status=REOPENED&email1=$userbugsemail&emailtype1=substring&emailassigned_to1=1&issueidtype=include&chfieldto=Now&order=issues.priority,%20issues.issue_type"
    #set $buglistcgi = "/issues/buglist.cgi"
    #set $bugslink = $currentProject.getProjectFileURL($buglistcgi, $userbugsargs) 

    <TD class="ProjectName2">
    #if (!$user.isGroup())
    {
     <A HREF="$bugslink">View Issues</A>
    }
    </TD>
  </TR>
  <TR>
    <TD COLSPAN="4">
      <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="4" ALIGN="center" CLASS="PlainText">
  $users.navigationBar($currentProject.getProjectPageURL("ProjectMembers"), $paginated_page);
 </TD>
</TR>

#if ($revocationPossible) 
{
 #if ($areThereUsers)
 {
  <TR>
    <TD></TD>
    <TD></TD>
    <TD class="PlainText"><INPUT TYPE="hidden" name="projectID" value="$currentProject.getID()"><INPUT TYPE="submit" name="Button" VALUE="Revoke Checked Roles" ></TD>
    <TD></TD>
  </TR>
 } #else {
  <TR>
    <TD colspan=4 class="PlainText"><i>There are no users on this project.</i></TD>
  </TR>
  <TR>
    <TD colspan=4>&nbsp;</TD>
  </TR>
 }
}

</table>

#if ($acl.hasPermission("Project Role - Grant", $currentProject))
{
 <HR SIZE="1" NOSHADE>

 <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
   <TR>
     <TD COLSPAN="4" CLASS="Welcome">Requests pending approval</TD>
   </TR>
   <TR>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">User</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s) Requested</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Operations</TD>
   </TR>
 #foreach $user in $currentProject.getRequestedUsers()
 {
  #set $areThereRequestedUsers=1
  #foreach $role in $user.getRequestedRolesInProject($currentProject.getID())
  {
   <TR>
    #if ($acl.hasPermission("User - View", $currentDomain))
    {
     <TD class="TableData" VALIGN="top"><A HREF="/servlets/UserEdit?userID=$user.getID()">$user.getLoginName()</A></TD>
    }
    #else 
    {
     <TD class="TableData" VALIGN="top">$user.getLoginName()</TD>
    }

     <TD class="PlainText" VALIGN="top"> $user.getRealName() </TD>
     <TD class="PlainText" VALIGN="top"> $role.getName()<br></TD>
    #if ($canGrant)
    {
     <TD class="PlainText">
       <INPUT NAME="Pending $user.getID() $role.getID()" VALUE="Approve" TYPE="radio">Approve 
       <INPUT NAME="Pending $user.getID() $role.getID()" VALUE="Defer" TYPE="radio" CHECKED>Defer
       <INPUT NAME="Pending $user.getID() $role.getID()" VALUE="Disapprove" TYPE="radio">Disapprove
     </TD>
    }
   </TR>
  <TR>      
    <TD COLSPAN="4">
      <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>

  }
 }

 #if ($areThereRequestedUsers)
 {
  #if ($canGrant)
  {
   <TR>
   <TD COLSPAN="3"></TD>
   <TD class="PlainText"><INPUT TYPE="hidden" name="projectID" value="$currentProject.getID()"><INPUT TYPE="submit" name="Button" VALUE="Edit Roles"></TD>
   </TR>
  }
 } #else {
  <TR>
   <TD colspan=4 class="PlainText"><i>There are no requested users for this project.</i></TD>
  </TR>
 }
</TABLE>
}
}
@


1.1.2.2
log
@Ported ProjectMemberList
@
text
@d18 1
a18 1
    #if (($loginUser.getRolesInProject($currentProject).size() == 0) && ($loginUser.getRequestedRolesInProject($currentProject).size() == 0))
d39 1
a39 2
  #set $users=$currentProject.getUsers($itemsPerPage, $filter)
  #foreach $user in $users.getPage($paginated_page)
d90 1
a90 1
    #foreach $role in $user.getRolesInProject($currentProject)
d172 1
a172 1
  #foreach $role in $user.getRequestedRolesInProject($currentProject)
@


1.1.2.3
log
@changing links from ProjectMembers to ProjectMemberList
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d33 1
a33 1
<FORM METHOD="post" action="ProjectMemberList">
d130 1
a130 1
  $users.navigationBar($currentProject.getProjectPageURL("ProjectMemberList"), $paginated_page);
@


