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


1.22
date	2001.08.24.20.38.15;	author kmaples;	state Exp;
branches;
next	1.21;

1.21
date	2001.08.24.01.39.33;	author tfahrner;	state Exp;
branches;
next	1.20;

1.20
date	2001.08.20.22.29.23;	author tfahrner;	state Exp;
branches;
next	1.19;

1.19
date	2001.08.13.22.51.03;	author leonardr;	state Exp;
branches;
next	1.18;

1.18
date	2001.08.03.05.45.07;	author tfahrner;	state Exp;
branches;
next	1.17;

1.17
date	2001.07.31.01.18.40;	author tfahrner;	state Exp;
branches;
next	1.16;

1.16
date	2001.07.31.00.01.56;	author tfahrner;	state Exp;
branches;
next	1.15;

1.15
date	2001.07.30.21.59.23;	author tfahrner;	state Exp;
branches;
next	1.14;

1.14
date	2001.07.30.21.24.28;	author tfahrner;	state Exp;
branches;
next	1.13;

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

1.12
date	2001.07.27.22.36.07;	author leonardr;	state Exp;
branches;
next	1.11;

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

1.10
date	2001.06.18.22.12.22;	author leonardr;	state Exp;
branches;
next	1.9;

1.9
date	2001.06.17.03.39.02;	author jefflove;	state Exp;
branches;
next	1.8;

1.8
date	2001.06.14.21.07.51;	author neil;	state Exp;
branches;
next	1.7;

1.7
date	2001.06.13.20.43.15;	author neil;	state Exp;
branches;
next	1.6;

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

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

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

1.3
date	2001.05.25.02.08.31;	author dlr;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.25.01.49.13;	author ms;	state Exp;
branches;
next	1.1;

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


desc
@@


1.22
log
@Fixed links to project issues which no longer require/use full email add.
@
text
@<div id="projectmemberlist" class="app">


#if($loginUser.hasRoleGrantPermission($currentProject))
 #set($canGrant = true)
#end

#if($acl.hasPermission("Project - Invite", $currentProject))
 #set($canInvite = true)
#end

<h3>Members: <a href="$currentProject.getProjectHome()">$currentProject.getName()</a></h3>

<form method="post" action="ProjectMemberList">

 #set($startedGroups = false)
 #set($startedUsers = false)

 #set($paginatableList = $currentProject.getMembers($itemsPerPage, $filter))
 #set($users = $paginatableList.getPage($paginated_page))

 #if($users.isEmpty()) 
  <p><strong class="alert">No users have roles in this project.</strong></p> 
 #else
 <table border="1" cellspacing="2" cellpadding="3" width="100%">

  #set($rowClass1="a")
  
  #foreach($user in $users )
   #if( $user.isGroup() )
    #if( !$startedGroups )
     #set( $startedGroups = true )
     <tr>
      <th>User Group</th>
      <th>Real Name</th>
      <th>Role(s)</th>
      <th></th>
     </tr>
    #end
   #else
    #if( !$startedUsers )
     #set( $startedUsers = true )
     <tr>
      <th>User</th>
      <th>Real Name</th>
      <th>Role(s)</th>
      <th>Assigned Issues</th>
     </tr>
    #end
   #end
    
   <tr class="$rowClass1">
    <td>
     #if( $user.isGroup() )
      #if( $acl.hasPermission("UserGroup - Edit", $currentDomain) )
       <a href="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</a>
      #else
       $user.getLoginName()
      #end
     #else
      #if( $acl.hasPermission("User - Edit", $currentDomain) )
       <a href="UserEdit?userID=$user.getID()">$user.getLoginName()</a>
      #else
       $user.getLoginName()
      #end
     #end     
    </td>

    <td>$user.getRealName()</td>

    <td>
     #set($revocationPossible = false)
     #foreach($role in $user.getRolesInProject($currentProject))
      #if($canGrant)
       #set($revocationPossible = true)
       <input name="Revoke $user.getID() $role.getID()" type="checkbox" />
      #end
      $role.getFullName()&nbsp;&nbsp;
     #end
    </td>

    ## Note: it's necessary to construct the link in several steps to prevent
    ## webmacro's tiny brain from freaking out: 
    ## ** This should no longer be neccessary since we're using Velocity 
    ##    now. -- leonardr    
    #set( $userbugsemail = "$user.getLoginName()" )
    #set( $userbugsargs = "issue_status=UNCONFIRMED&amp;issue_status=NEW&amp;issue_status=STARTED&amp;issue_status=REOPENED&amp;email1=$userbugsemail&amp;emailtype1=substring&amp;emailassigned_to1=1&amp;issueidtype=include&amp;chfieldto=Now&amp;order=issues.priority,%20issues.issue_type" )
    #set( $buglistcgi = "/issues/buglist.cgi" )
    #set( $bugslink = $currentProject.getProjectFileURL($buglistcgi, $userbugsargs) )

    <td>
     #if( !$user.isGroup() )
      <a href="$bugslink">View Issues</a>
     #end
    </td>
   </tr>
   
   #if ($rowClass1.equals("a"))
    #set ($rowClass1="b")
   #else 
    #set ($rowClass1="a")
   #end
   
    #end

  #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>
  #end

 <tr><td colspan=4><p class="paginate">
  $paginatableList.navigationBar($currentProject.getProjectPageURL($servletName), $paginated_page)
 </p>
  <form method="post" action="$servletName">
   #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
  </form>
 </td></tr>
 </table>

 #end


#if( $acl.hasPermission("Role - Grant", $currentProject) )

<div class="pending">

<h4>Requests pending approval</h4>

 #if( !$canGrant && $currentProject.isApproved() )
  <p><strong class="alert">
   You cannot approve these roles until this project is approved.
  </strong>
</p>
 #end

 #set ($requestedUsers=$currentProject.getRequestedMembers())
  #if ($requestedUsers.isEmpty())
 
  <p><strong class="alert">
   No users have outstanding role requests in this project.
  </strong>
</p>

 #else
 
 <table border="1" cellspacing="2" cellpadding="3" width="100%">
  <tr>
   <th>User</th>
   <th>Real Name</th>
   <th>Role(s) Requested</th>
   #if($canGrant)
    <th>Operations</th>
   #end
  </tr>

  #set ($rowClass2="a")
  
  #foreach( $user in $currentProject.getRequestedMembers() )
   #set( $areThereRequestedUsers = 1 )
   #foreach( $role in $user.getRequestedRolesInProject($currentProject) )
    <tr class="$rowClass2">
     #if( $acl.hasPermission("User - View", $currentDomain) )
      <td>
       <a href="/servlets/UserEdit?userID=$user.getID()">$user.getLoginName()</a>
      </td>
     #else
      <td>$user.getLoginName()</td>
     #end

     <td> $user.getRealName() </td>
     <td> $role.getFullName()</td>
     #if( $canGrant )
      <td>
       <input name="Pending $user.getID() $role.getID()" value="Approve" type="radio" />Approve 
       <input name="Pending $user.getID() $role.getID()" value="Defer" type="radio" checked="checked" />Defer
       <input name="Pending $user.getID() $role.getID()" value="Disapprove" type="radio" />Disapprove
      </td>
     #end
    </tr>

	#if ($rowClass2.equals("a"))
     #set ($rowClass2="b")
    #else 
     #set ($rowClass2="a")
    #end
	
   #end

 #end

</table>
  
  #if( $areThereRequestedUsers )
   #if( $canGrant )
   <div class="axial">
   <table border="1" cellspacing="2" cellpadding="3">
    <tr class="reasondisapproval">
     <th>Reason for role disapproval</th>
     <td>
      <textarea rows="5" cols="50" name="disapprovalReason"></textarea>
     </td>
    </tr>
    <tr>
     <td></td>
     <td>
      <input type="hidden" name="projectID" value="$currentProject.getID()" />
      <input type="submit" name="Button" value="Edit Roles" />
     </td>
    </tr>
   </table>
   </div>
   #end

  #else

  #end

#end
  
</div>

#end

</form>

</div>
@


1.21
log
@removed redundant task links
@
text
@d86 1
a86 1
    #set( $userbugsemail = "$user.getLoginName()%40$currentDomain.getName()" )
@


1.20
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@a13 22
<p class="affordance">
   #if( $canInvite )
    <a href="$currentProject.getProjectPageURL("ProjectInvite")">Invite New Members</a>&nbsp;|
   #end


   #set ($joinMessage = "If you <a href=\"/servlets/Join\">Register</a>, you can join this Project")
   #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")
    #end

    <a href="$currentProject.getProjectPageURL("ProjectMembershipRequest")">$joinMessage</a>

    #if( $canGrant )
     |&nbsp;<a href="$currentProject.getProjectPageURL("ProjectMemberAdd")">Add New Member</a>
    #end
   #end
</p>

@


1.19
log
@Added pagination to ProjectHome's list of associated projects and ProjectMemberList's list of members.
@
text
@a1 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d227 1
a227 1
     <th>Reason for role disapproval:</th>
@


1.18
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a42 1
 #set($users = $currentProject.getMembers())
d44 2
a45 6
 #if($users.isEmpty())
 
 <p><strong class="alert">
  No users have roles in this project.
 </strong>
</p> 
d47 2
a49 1

a130 6
  <tr>
   <td colspan="4">
    $users.navigationBar($currentProject.getProjectPageURL($servletName), $paginated_page)
   </td>
  </tr>

d143 7
@


1.17
log
@included "task nav" below headlines
@
text
@a4 3
#if( !$loginUser.isAnonymous() && $servletTaskBar.available($servletName))
#parse("$servletTaskBar.getPath($servletName)")
#end
@


1.16
log
@pulled admin options, added headlines
@
text
@d5 4
@


1.15
log
@html usage revision to synch with scarab
@
text
@d2 3
@


1.14
log
@removed dependency on CSS for differentiation of alerts
@
text
@d1 1
a1 1
<div id="projectmemberlist">
d50 1
a50 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
d177 1
a177 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
d227 1
a227 1
   <table border="0" cellspacing="0" cellpadding="2">
@


1.13
log
@Action cleanup. Some role actions, and Audit Log - View, had three actions apiece when one would do. We're now down to 76 actions.
@
text
@d43 1
a43 1
 <p class="alert">
d45 2
a46 1
 </p> 
d161 1
a161 1
  <p class="alert">
d163 2
a164 1
  </p>
d170 1
a170 1
  <p class="alert">
d172 2
a173 1
  </p>
d257 1
a257 1
</div>@


1.12
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
@d153 1
a153 1
#if( $acl.hasPermission("Project Role - Grant", $currentProject) )
@


1.11
log
@Switched away from deprecated method.
@
text
@d102 1
a102 1
      $role.getName()&nbsp;&nbsp;
d199 1
a199 1
     <td> $role.getName()</td>
@


1.10
log
@Huge patch of the day: Got rid of redundant HELM_DOMAIN table. The project representation of the domain and the host is now the canonical one. Host and Domain now subclass ProjectGroup. The canonical representation of a project's membership in a domain group is now the corresponding mapping in HELM_PROJECT_PROJECTGROUP. Schema changes: No more HELM_DOMAIN table (obviously); no more DOMAIN_ID in HELM_PROJECT; HELM_USER and HELM_VC_VIEW now have foreign keys in HELM_PROJECT instead of HELM_DOMAIN.
@
text
@d165 1
a165 1
 #set ($requestedUsers=$currentProject.getRequestedUsers())
d186 1
a186 1
  #foreach( $user in $currentProject.getRequestedUsers() )
@


1.9
log
@html usage revisions
@
text
@d39 1
a39 1
 #set($users = $currentProject.getUsers())
@


1.8
log
@ui recode: adding axial class
@
text
@d224 1
a224 1
   <table border="0" cellspacing="0" cellpadding="2" width="100%">
d227 1
a227 1
     <td colspan="3">
d232 1
a232 1
     <td colspan="3"></td>
@


1.7
log
@ui recoded
@
text
@d218 2
d223 2
d238 2
a244 2

</table>
@


1.6
log
@Corrected mismatched #end tags.
@
text
@d1 2
d11 3
a13 8
<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">
d15 1
a15 1
    &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectInvite")">Invite New Members</A>&nbsp;|
d27 1
a27 1
    &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">$joinMessage</A>
d30 1
a30 1
     |&nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMemberAdd")"">Add New Member</a>
d33 1
a33 3
  </TD>
 </TR>
</TABLE>
d35 1
a35 2
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
 <FORM METHOD="post" action="ProjectMemberList">
d42 5
a46 12
  <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>
d48 5
d57 6
a62 6
     <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>
d67 6
a72 6
     <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>
d76 2
a77 2
   <TR>
    <TD class="TableData" VALIGN="top">
d80 1
a80 1
       <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</A>
d86 1
a86 1
       <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A>
d91 1
a91 1
    </TD>
d93 1
a93 1
    <TD class="PlainText" VALIGN="top">$user.getRealName()</TD>
d95 1
a95 1
    <TD class="PlainText" VALIGN="top">
d100 1
a100 1
       <INPUT NAME="Revoke $user.getID() $role.getID()" TYPE="checkbox">
d104 1
a104 1
    </TD>
d111 1
a111 1
    #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" )
d115 1
a115 1
    <TD class="ProjectName2">
d117 1
a117 1
      <A HREF="$bugslink">View Issues</A>
d119 10
a128 3
    </TD>
   </TR>
  #end
d130 2
a131 12
  <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">
d133 2
a134 2
   </TD>
  </TR>
d137 9
a145 9
   <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>
d147 3
d151 1
a151 1
</TABLE>
a153 1
 <HR SIZE="1" NOSHADE>
d155 24
a178 14
 <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
    #end
   </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>
d180 1
a180 1
    <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Operations</b></TD>
d182 1
a182 1
  </TR>
d184 2
d189 1
a189 1
    <TR>
d191 3
a193 3
      <TD class="TableData" VALIGN="top">
       <A HREF="/servlets/UserEdit?userID=$user.getID()">$user.getLoginName()</A>
      </TD>
d195 1
a195 1
      <TD class="TableData" VALIGN="top">$user.getLoginName()</TD>
d198 2
a199 2
     <TD class="PlainText" VALIGN="top"> $user.getRealName() </TD>
     <TD class="PlainText" VALIGN="top"> $role.getName()<br></TD>
d201 5
a205 5
      <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>
d207 8
a214 10
    </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>
a215 1
  #end
d217 2
d221 3
a223 3
    <TR>
     <td><b>Reason for role disapproval:</b></td>
     <td colspan="3" class="PlainText">
d226 8
a233 8
    </TR>
    <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>
d235 1
d237 1
a237 5
   <TR>
    <TD colspan=4 class="PlainText">
     <i>No users have outstanding role requests in this project.</i>
    </TD>
   </TR>
d239 3
a241 1
 </TABLE>
d243 8
@


1.5
log
@Added reason for denying role requests and disapproving projects.
@
text
@d18 1
a18 1
    &nbsp;<A HREF="${currentProject.getProjectPageURL("ProjectInvite")">Invite New Members</A>&nbsp}|
d61 1
a61 1
  #foreach( $user in $users )
a70 10
    #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>
     #end
d72 11
d84 5
a88 8
    <TR>
     <TD class="TableData" VALIGN="top">
      #if( $user.isGroup() )
       #if( $acl.hasPermission("UserGroup - Edit", $currentDomain) )
        <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</A>
       #else
        $user.getLoginName()
       #end
d90 1
a90 18
       #if( $acl.hasPermission("User - Edit", $currentDomain) )
        <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A>
       #else
        $user.getLoginName()
       #end
      #end     
     </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">
       #end
       ${role.getName()&nbsp}&nbsp;
d92 8
a99 1
     </TD>
d101 8
a108 12
     ## Note: it's necessary to construct the link in several steps to prevent
     ## webmacro's tiny brain from freaking out: 
     ## ** This should no longer be neccessary since we're using Velocity 
     ##    now. -- leonardr    
     #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>
d110 19
a128 3
     </TD>
    </TR>
   #end
d143 1
a143 1
    ${users.navigationBar($currentProject.getProjectPageURL($servletName), $paginated_page)}
@


1.4
log
@Fixed a huge number of Velocity parse errors.
@
text
@d222 1
a222 1
      <textarea name="disapprovalReason"></textarea>
@


1.3
log
@Corrected VTL syntax error(s).
@
text
@d1 2
a2 2
#if( $loginUser.hasRoleGrantPermission($currentProject) )
 #set( $canGrant = true )
d4 3
a6 2
#if( $acl.hasPermission("Project - Invite", $currentProject) )
 #set( $canInvite = true )
d11 2
a12 1
  <TD class="Header" nowrap><b>Members:</b><SPAN CLASS="ProjectNameHeader">
a20 6
   #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"
     #end
     &nbsp;<A HREF="$currentProject.getProjectPageURL("ProjectMembershipRequest")">$joinMessage</A>
d22 13
a34 4
     #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
d41 1
a41 1
<FORM METHOD="post" action="ProjectMemberList">
d43 3
a45 3
#set( $startedGroups = false )
#set( $startedUsers = false )
#set( $users = $currentProject.getUsers() )
d47 7
a53 7
#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>
a54 26
 <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>
   #end
  #end
    
d56 6
a61 1
   <TD class="TableData" VALIGN="top">
d63 25
a87 2
    #if( $acl.hasPermission("UserGroup - Edit", $currentDomain) )
     <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</A></TD>
d89 5
a93 4
     $user.getLoginName()
    #else
    #if( $acl.hasPermission("User - Edit", $currentDomain) )
     <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A></TD>
d95 4
a98 4
     $user.getLoginName()
    #end
   #end     
  </TD>
d100 1
a100 1
  <TD class="PlainText" VALIGN="top">$user.getRealName()</TD>
d102 26
a127 6
  <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">
a128 1
   ${role.getName()&nbsp}&nbsp;
a129 1
  </TD>
d131 17
a147 18
  ## 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>
   #end
  </TD>
 </TR>
 #end
#end
<TR>
 <TD COLSPAN="4">
  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
d149 7
a155 1
    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
d157 3
a159 22
  </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>
#end
</table>
d165 4
a168 23
   <TR>
     <TD COLSPAN="4" CLASS="SmallHeader">Requests pending approval
#if( !$canGrant && $currentProject.isApproved() )
<br>You cannot approve these roles until this project is approved
#end
</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>
#end
   </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>
d170 24
d197 2
a198 2
    #if( $canGrant )
     <TD class="PlainText">
d202 5
a206 5
     </TD>
    #end
   </TR>
  <TR>      
    <TD COLSPAN="4">
d208 3
a210 3
        <TR>             
          <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
        </TR>         
d212 3
a214 3
    </TD>    
  </TR>

a215 1
 #end
d217 17
a233 2
 #if( $areThereRequestedUsers )
  #if( $canGrant )
d235 3
a237 2
   <TD COLSPAN="3"></TD>
   <TD class="PlainText"><INPUT TYPE="hidden" name="projectID" value="$currentProject.getID()"><INPUT TYPE="submit" name="Button" VALUE="Edit Roles"></TD>
d240 1
a240 6
 #else
  <TR>
   <TD colspan=4 class="PlainText"><i>There are no requested users for this project.</i></TD>
  </TR>
 #end
</TABLE>
@


1.2
log
@fixed broken args passing in templates made by conversion program
@
text
@d110 1
a110 1
  #set( $bugslink = $currentProject.getProjectFileURL($buglistcgi, $userbugsargs) 
@


1.1
log
@Adding Velocity templates.
@
text
@d110 1
a110 1
  #set( $bugslink = $currentProject.getProjectFileURL($buglistcgi, )$userbugsargs) 
@

