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


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

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

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

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

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

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

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

1.9
date	2001.07.27.22.36.07;	author leonardr;	state Exp;
branches;
next	1.8;

1.8
date	2001.07.02.18.56.43;	author leonardr;	state Exp;
branches;
next	1.7;

1.7
date	2001.06.17.03.39.02;	author jefflove;	state Exp;
branches;
next	1.6;

1.6
date	2001.06.14.21.19.15;	author neil;	state Exp;
branches;
next	1.5;

1.5
date	2001.06.12.21.28.24;	author neil;	state Exp;
branches;
next	1.4;

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

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

1.2
date	2001.05.24.18.48.47;	author dlr;	state Exp;
branches;
next	1.1;

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


desc
@@


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


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

<form action="ProjectMemberAdd" method="post" enctype="application/x-www-form-urlencoded">

<div class="memberlist">

##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() )

 <p><strong class="alert">
  No matching users were found.
 </strong>
</p>

#else

<table border="1" cellspacing="2" cellpadding="3" width="100%">

 #set ($rowClass="a")

 #foreach( $user in $userPage )
  #if( $user.isGroup() )
   #if( $startGroups )
    #set( $startGroups = false )
    <tr>
     <th>Add</th>
     <th>User Group</th>
     <th>Description</th>
    </tr>
   #end
  #else
   #if( $startUsers )
    #set( $startUsers = false )
    #if( !$startGroups )
     <tr>
      <td colspan="3"></td>
     </tr>
    #end

    <tr>
     <th>Add</th>
     <th>User</th>
     <th>Real Name</th>
    </tr>
   #end
  #end

  <tr class="$rowClass">
   <td width="5%">
    <input type="checkbox" name="Grant $user.getID()" />
   </td>
   <td width="20%">
    #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 width="75%">
    $user.getRealName()
   </td>
  </tr>
  
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
  
 #end

 <tr>
  <td colspan="3">
   ${paginatableList.navigationBar($currentProject.getProjectPageURL($servletName), $paginated_page)}
  </td>
 </tr>
#end

</table>
</div>

<div class="axial">
<table border="1" cellspacing="2" cellpadding="3">
 <tr>
  <th nowrap="nowrap">Mass Add</th>
  <td>
   <textarea name="massAdd" rows="4" cols="34">$massAdd</textarea>
   <p>
   If you know the login names of the users to whom you want to
   assign roles in this project, you may enter them here to do a mass
   add (one login name per line, or multiple login names if a comma,
   colon, or semi-colon is used to separate them).
   </p>
  </td>
 </tr>
</table>
</div>

<div id="grantroles">
 <p>
  <strong>Grant these roles to all designated users:</strong>
 </p>
 <p>
   ## TODO: this should be a table of checkboxes labels and descriptions  
   #set($requestableRoles = $currentProject.getRequestableRoles())

   <select name="roles" size="#if($requestableRoles.size() > 10)10#else$requestableRoles.size()#end" multiple="multiple">
    #foreach( $role in $requestableRoles )
     <option value="$role.getID()">$role.getFullName()</option>
    #end
   </select>
 </p>
</div>
 
<div id="donegrantroles">
 <p>
  <input type="checkbox" name="done" value="Y" checked="checked" /> <strong>Done granting roles</strong>
 </p>
 <p>
   When this box is checked, you will return to the Project Member List page
   after clicking the &quot;Grant Roles&quot; button. If you possibly want to add more
   members, remove the checkmark to return to the Add Members page.
 </p>
 <p>
  <input type="hidden" name="projectID" value="$currentProject.getID()" /><input type="submit" name="Button" value="Grant Roles" />
 </p>
</div>
 
</form>

<form method="post" action="ProjectMemberAdd">
 #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
</form>

</div>
@


1.15
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a1 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d102 1
a102 1
  <th nowrap="nowrap">Mass Add:</th>
@


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


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


1.12
log
@misc html usage revisions
@
text
@d2 3
d118 1
a118 1
<div id="grantroles" class="app">
d134 1
a134 1
<div id="donegrantroles" class="app">
@


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


1.10
log
@removed dependency on CSS for differentiation of alerts
@
text
@d1 1
a1 1
<div id="projectmemberadd">
d25 1
a25 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
d99 1
a99 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
d115 1
a115 1
<div id="grantroles">
d131 1
a131 1
<div id="donegrantroles">
@


1.9
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
@d18 1
a18 1
 <p class="alert">
d20 2
a21 1
 </p>
d151 1
a151 1
</div>@


1.8
log
@Implemented project-scoped roles.
@
text
@d124 1
a124 1
     <option value="$role.getID()">$role.getName()</option>
@


1.7
log
@html usage revisions
@
text
@d14 1
a14 1
#set( $paginatableList = ${currentDomain.getGroupsAndUsers($itemsPerPage, $filter)})
d119 5
a123 4
   ## TODO: this should be a table of checkboxes labels and descriptions
   #set($numRequestableProjectRoles = $host.getRequestableProjectRoles().size())
   <select name="roles" size="#if($numRequestableProjectRoles > 10)10#else$numRequestableProjectRoles#end" multiple="multiple">
    #foreach( $role in $host.getRequestableProjectRoles() )
@


1.6
log
@ui recode: adding axial class
@
text
@d114 1
a114 1
<div class="grantroles">
d129 1
a129 1
<div class="donegrantroles">
@


1.5
log
@ui recoded
@
text
@d97 1
a97 1
<div class="massadd">
d100 1
a100 1
  <th>Mass Add:</th>
@


1.4
log
@Added mass member add capability.
@
text
@d1 1
a1 5
<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>
d3 5
a7 2
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
<FORM ACTION="ProjectMemberAdd" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
d17 5
a21 1
 <TR><TD><span class="Warning">No matching users were found.</span></TD></TR>
d23 5
d32 5
a36 11
    <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>
d42 3
a44 3
     <TR>
      <TD COLSPAN="3"><hr size="1" noshade></TD>
     </TR>
d47 5
a51 9
    <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>
d55 5
a59 5
  <TR>
   <TD WIDTH="5%" BGCOLOR="white">
    <P><INPUT TYPE="CHECKBOX" NAME="Grant $user.getID()">
   </TD>
   <TD WIDTH="20%" CLASS="PlainText" BGCOLOR="white">&nbsp;
d62 1
a62 1
      <A HREF="UserGroupEdit?userGroupID=$user.getID()">$user.getLoginName()</A>
d68 1
a68 1
       <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A>
d73 2
a74 2
   </TD>
   <TD WIDTH="75%" CLASS="PlainText" VALIGN="TOP" BGCOLOR="white">
d76 9
a84 2
   </TD>
  </TR>
d87 2
a88 2
 <TR>
  <TD COLSPAN="3" ALIGN="CENTER" class="PlainText">
d90 2
a91 2
  </TD>
 </TR>
d94 10
a103 10
 <TR>
  <TD COLSPAN="3"><hr size="1" noshade></TD>
 </TR>

 <TR>
  <TD></TD>
  <TD class="InputHeader" VALIGN="top" width="10%">Mass Add:</TD>
  <TD COLSPAN="3">
   <TEXTAREA NAME="massAdd" ROWS="4" COLS="34">$massAdd</TEXTAREA>
   <BR>
d108 11
a118 15
  </TD>
 </TR>

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

 <tr><td>&nbsp;</td></tr>
 <TR bgcolor="#efefef">
  <TD COLSPAN="3" CLASS="ProjectDownloadHeader">
   <b>Grant these roles to all designated users:</b>
  </TD>
 </TR>
 <TR>
  <TD COLSPAN="3">
d121 1
a121 1
   <SELECT NAME="roles" size="#if($numRequestableProjectRoles > 10)10#else$numRequestableProjectRoles#end" MULTIPLE>
d123 1
a123 1
     <OPTION value="$role.getID()">$role.getName()</OPTION>
d125 9
a133 8
   </SELECT>
  </TD>
 </TR>
 <TR>
  <TD COLSPAN="3" CLASS="PlainText">
   <INPUT type="checkbox" name="done" value="Y" checked>
   &nbsp;<b>Done granting roles</b>
   <br>
d135 1
a135 1
   after clicking the "Grant Roles" button. If you possibly want to add more
d137 11
a147 19
  </TD>
 </TR>
 <TR>
  <TD COLSPAN="3"><INPUT type="hidden" name="projectID" value="$currentProject.getID()"><INPUT type="Submit" name="Button" value="Grant Roles"></TD>
 </TR>
</FORM>

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

 <TR>
  <TD COLSPAN="3">
   <FORM METHOD="post" ACTION="ProjectMemberAdd">
   #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
   </FORM>
  </TD>
 </TR>

d149 1
a149 1
</TABLE>
@


1.3
log
@Corrected conversion bug.
@
text
@d17 3
a19 1
#if( !$userPage.isEmpty() )
d25 3
a27 1
     <TD WIDTH="5%" CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><b>Add</b></TD>
a38 1

d87 22
d113 1
a113 1
   <b>Grant these roles to all selected users:</b>
d119 2
a120 1
   <SELECT NAME="roles" size="$rowsToShow" MULTIPLE>
d140 1
d153 2
a154 4
#else
 <span class="Warning">No matching users were found.</span>
#end
</FORM>
@


1.2
log
@Removed BRAND_TEMPLATE_ROOT, SERVLET_TEMPLATE_ROOT, and SANDBOX from use in #include and #parse directives (deprecated by multiple template paths).
@
text
@d15 1
a15 1
#set( $paginatableList = ${currentDomain.getGroupsAndUsers($itemsPerPage, )$filter)}
@


1.1
log
@Adding Velocity templates.
@
text
@d122 1
a122 1
   #parse( "${SERVLET_TEMPLATE_ROOT}/org/tigris/helm/tool/paginate/Filter.vm" )
@

