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


1.13
date	2001.08.20.22.29.23;	author tfahrner;	state Exp;
branches;
next	1.12;

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

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

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

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

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

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

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

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

1.4
date	2001.06.17.03.39.02;	author jefflove;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.14.21.15.24;	author neil;	state Exp;
branches;
next	1.2;

1.2
date	2001.06.11.18.58.06;	author neil;	state Exp;
branches;
next	1.1;

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


desc
@@


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


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

#set( $approvedRoles = $loginUser.getRolesInProject($currentProject) )
#set( $requestedRoles = $loginUser.getRequestedRolesInProject($currentProject) )

<form method="post" name="ProjectMembershipRequestForm" action="ProjectMembershipRequest">

#if( $ticket )
 <input type="hidden" name="ticket" value="$ticket" />
#end
#if( $requestedRoles.isEmpty() && $approvedRoles.isEmpty() )
   <p>
You have no roles in the $currentProject.getName() project. Use the form below to request a role.
</p>
#else
  <p>
 Your roles in this project:
</p>    
<ul>
 #foreach( $role in $approvedRoles )
  <li>$role.getFullName()</li>
 #end
 #foreach( $role in $requestedRoles )
  <li>$role.getFullName() <strong class="alert">Pending Approval</strong></li>
 #end
 </ul>
#end
<p>
   Specify the role you want to request in the $currentProject.getName() project.
</p>

<div class="axial">
<table border="1" cellspacing="2" cellpadding="3">
 <tr>
  <th>
   Role:
  </th>
  <td>

#set( $first = true )
#foreach( $role in $loginUser.getAvailableRolesInProject($currentProject) )

 <input type="radio" name="role" value="$role.getID()"
 #if( $first )
  checked="checked"
  #set( $first = false )
 #end
 /> <strong>$role.getFullName():</strong> $role.getDescription()<br>

#end
  </td>
 </tr>
#if( !$currentProject.isApproved() )
  ## if you've already got a role, this comment doesn't apply to you
  #if( $approvedRoles.isEmpty() )
 <tr>
  <th>
   Note:
  </th>
  <td>
   <strong class="alert">This project has not yet been approved. You can request roles, but you will be unable to see the Project Home or other project-related pages until it has been approved.</strong>
  </td>
 </tr>
  #end
#end
 <tr>
  <td></td>
  <td>
   <p>
<input type="hidden" name="projectID" value="$currentProject.getID()" />
   <input type="submit" name="Button" value="Submit Request" />
</p>

  </td>
 </tr>
</table>
</div>

</form>

</div>
@


1.12
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a1 3
<h2>
 #parse( "Nomen.vm" )
</h2>
@


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


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


1.9
log
@misc html usage revisions
@
text
@d2 3
@


1.8
log
@html usage revision to synch with scarab
@
text
@d35 1
a35 1
<table border="1" cellspacing="2" cellpadding="3" width="100%">
@


1.7
log
@removed dependency on CSS for differentiation of alerts
@
text
@d1 1
a1 1
<div id="projectmembershiprequest">
d35 1
a35 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.6
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
@d26 1
a26 1
  <li>$role.getFullName() <span class="alert">Pending Approval</span></li>
d63 1
a63 3
   <div class="alert">
   This project has not yet been approved. You can request roles, but you will be unable to see the Project Home or other project-related pages until it has been approved.
   </div>
@


1.5
log
@Implemented project-scoped roles.
@
text
@d23 1
a23 1
  <li>$role.getName()</li>
d26 1
a26 1
  <li>$role.getName() <span class="alert">Pending Approval</span></li>
d50 1
a50 1
 /> <strong>$role.getName():</strong> $role.getDescription()<br>
@


1.4
log
@html usage revisions
@
text
@d23 1
a23 1
  <li>${role.getName())</li>
d26 1
a26 1
  <li>$(role.getName()) <span class="alert">Pending Approval</span></li>
d50 1
a50 1
 /> <strong>$role.getName():</strong> $role.getDescription()
d56 1
a56 1
  ## if you've already go a role, this comment doesn't apply to you
@


1.3
log
@ui recode: adding axial class
@
text
@a12 5

<div class="axial">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
 <tr>
  <td colspan="2">
d14 3
a16 1
   You have no roles in the $currentProject.getName() project. Use the form below to request a role.
d18 3
a20 2
   Your roles in this project:
    
a21 1

a24 1

d26 1
a26 1
  <li>${role.getName()} <span class="alert">Pending Approval</span></li>
d30 3
d34 2
a35 7
  </td>
 </tr>
 <tr>
  <td colspan="2">
   Specify the role you want to request in the $currentProject.getName() project.
  </td>
 </tr>
d44 1
a44 1
 <p>
d51 1
a51 1
 </p>
d63 1
a63 1
   <p class="alert">
d65 1
a65 1
   </p>
d73 2
a74 1
   <input type="hidden" name="projectID" value="$currentProject.getID()" />
d76 2
@


1.2
log
@ui recoded
@
text
@d14 1
d19 1
a19 3
   <p>
    You have no roles in the $currentProject.getName() project. Use the form below to request a role.
   </p>
d21 2
a22 4
   <p>
    Your roles in this project:
   </p>
 
d43 1
a43 1
  <td>
d45 1
a45 1
  </td>
d65 3
d69 1
a69 3
   Note:
  </td>
  <td class="alert">
d71 1
d84 1
@


1.1
log
@Adding Velocity templates.
@
text
@d1 1
d3 1
a3 5
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap><b>Membership Request:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
  </TR>
</TABLE>
d7 3
a9 2
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
<FORM METHOD="post" NAME="ProjectMembershipRequestForm" ACTION="ProjectMembershipRequest">
d11 1
a11 1
  <INPUT TYPE="hidden" NAME="ticket" VALUE="$ticket">
d14 3
a16 1
<TR><TD COLSPAN=2>
d18 3
a20 1
 <p><SPAN CLASS="ProjectDownloadHeader"><b>You have no roles in the $currentProject.getName() project. Use the form below to request a role.</b></SPAN>
d22 3
a24 1
 <p><SPAN CLASS="ProjectDownloadHeader"><b>Your roles in this project:</b></SPAN>
d29 1
a29 1
  <span class="PlainText"><li>${role.getName()}</span>
d33 1
a33 1
  <span class="PlainText"><li>${role.getName()} <font color="red">Pending Approval</font></span>
d38 12
a49 8
</TD></TR>
  <TR><TD COLSPAN="2"><hr size="1" noshade></TD></TR>
  <TR>
    <TD class="ProjectDownloadHeader" COLSPAN="2"><b>Specify the role you want to request in the $currentProject.getName() project.</b></TD>
  </TR>
  <TR>
    <TD class="ProjectDownloadHeader" VALIGN="top">Role:</TD>
    <TD VALIGN="top" CLASS="PlainText">
d53 2
a54 1
 <INPUT TYPE="radio" NAME="role" VALUE="$role.getID()"
d56 1
a56 1
  CHECKED
d59 2
a60 2
 ><SPAN CLASS="PlainTextBold"><b>$role.getName()</b></SPAN>: 
 $role.getDescription()<br>
d62 2
a63 2
    </TD>
  </TR>
d67 8
a74 4
  <TR>
    <TD CLASS="PlainText" VALIGN="top"><b>Note:</b></TD>
    <TD VALING="top" CLASS="PlainText"><FONT COLOR="red">This project has not yet been approved.  You can request roles, but you will be unable to see the Project Home or other project-related pages until it has been approved.</FONT></TD>
  </TR>
d77 7
a83 6
  <TR>
    <TD></TD>
    <INPUT type="hidden" name="projectID" value="$currentProject.getID()">
    <TD class="PlainText"><INPUT TYPE="submit" NAME="Button" VALUE="Submit Request"></TD>
  </TR>
</FORM>
d86 3
@

