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


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

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

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

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

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

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

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

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

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

1.7
date	2001.06.11.22.16.19;	author beril;	state Exp;
branches;
next	1.6;

1.6
date	2001.06.08.21.27.21;	author beril;	state Exp;
branches;
next	1.5;

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

1.4
date	2001.05.29.19.40.54;	author ms;	state Exp;
branches;
next	1.3;

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

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

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


desc
@@


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

 <h3>Add Users: $currentUserGroup.getName()</h3>

<form action="UserGroupElementAdd" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="userGroupID" value="$currentUserGroup.getID()" />

#set( $users = ${currentDomain.getUsersNotInGroup($currentUserGroup, $itemsPerPage, $filter)} )
#set( $page = $users.getPage($paginated_page) )
#if( $userPage.isEmpty() )
  <p><strong class="alert">
 #if( $users.isEmpty() )
 All available users are already in this group.
 #else
 No matching users found.
 #end
 </strong>
</p>
#else
<table border="1" cellspacing="2" cellpadding="3" width="100%">
 <tr>
  <th nowrap="nowrap">Add</th>
  <th nowrap="nowrap">User</th>
  <th nowrap="nowrap">Real Name</th>
 </tr>
#set ($rowClass="a")
 #foreach( $user in $page )
 <tr class="$rowClass">
  <td><input type="checkbox" name="Add $user.getID()" /></td>
  <td>
   #if( $acl.hasPermission("User - Edit", $currentDomain) )
    <a href="UserEdit?userID=$user.getID()">$user.getLoginName()</a>
   #else
    $user.getLoginName()
   #end
  </td>
  <td>$user.getRealName()</td>
 </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end

 #end  
 </table>
 <p><input type="submit" name="Button" value="Add to Group" /></p>
 <p class="paginate">$users.navigationBar($currentProject.getProjectPageURL($servletName, "userGroupID=${currentUserGroup.getID()"), $paginated_page)}</p>
#end
 <form method="post" action="UserGroupElementAdd">
  #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
 </form>

 <h3>User Login Names</h3>
 <p><textarea name="elements" rows="4" cols="34">$!elements</textarea></p>
 <p>If you know the login names of the users you want to add to this group, 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>
 <p><input type="submit" name="Button" value="Perform Mass Add" /></p>

</form>

</div>
@


1.15
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a0 1
#parse( "Admin_Nav.vm" )
a2 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d55 1
a55 1
 <h3>User Login Names:</h3>
@


1.14
log
@restoring admin options nav, fixing html in ProjectAdd
@
text
@a6 3
#if( !$loginUser.isAnonymous() && $servletTaskBar.available($servletName))
#parse("$servletTaskBar.getPath($servletName)")
#end
@


1.13
log
@included "task nav" below headlines
@
text
@d1 1
@


1.12
log
@pulled admin options, added headlines
@
text
@d6 4
@


1.11
log
@html usage revision to synch with scarab
@
text
@a0 1
#parse( "Admin_Nav.vm" )
d3 3
@


1.10
log
@removed dependency on CSS for differentiation of alerts
@
text
@d3 1
a3 1
<div id="usergroupelementadd">
d21 1
a21 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.9
log
@eliminated redundant markup
@
text
@d12 1
a12 1
  <p class="alert">
d18 2
a19 1
 </p>
@


1.8
log
@Corrected spelling error.
@
text
@d12 1
d14 1
a14 1
  <p class="alert">All available users are already in this group.</p>
d16 1
a16 1
  <p class="alert">No matching users found.</p>
d18 1
d61 1
a61 1
</div>@


1.7
log
@recoded according to new html/css standards
@
text
@d13 1
a13 1
  <p class="alert">All avaliable users are already in this group.</p>
@


1.6
log
@recoded the html according to new css/html standards
@
text
@d1 58
a58 72
#parse( "Admin_Nav.vm" )

<div id="usergroupelementadd">

<div id="addsingle">
 <h3>Add Users: $currentUserGroup.getName()</h3>

<form action="UserGroupElementAdd" method="post" enctype="application/x-www-form-urlencoded">
#set( $users = ${currentDomain.getUsersNotInGroup($currentUserGroup, $itemsPerPage, $filter)} )
#set( $page = $users.getPage($paginated_page) )
#if( $userPage.isEmpty() )
 #if( $users.isEmpty() )
  <p class="alert">All avaliable users are already in this group.</p>
 #else
  <p class="alert">No matching users found.</p>
 #end
#else
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
 <tr>
  <th>Add</th>
  <th>User</th>
  <th>Real Name</th>
 </tr>
#set ($rowClass="a")
#foreach( $user in $page )
 <tr class="$rowClass">
  <td><input type="checkbox" name="Add $user.getID()" /></td>
  <td>
   #if( $acl.hasPermission("User - Edit", $currentDomain) )
     <a href="UserEdit?userID=$user.getID()">$user.getLoginName()</a>
   #else
     $user.getLoginName()
   #end
  </td>
  <td>$user.getRealName()</td>
 </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end

#end
</table>

<p><input type="submit" name="Button" value="Add to Group" /></p>

</form>

<p class="paginate">
 $users.navigationBar($currentProject.getProjectPageURL($servletName, "userGroupID=${currentUserGroup.getID()"), $paginated_page)}
</p>
#end

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

</div>

<div id="addmultiple">

<form action="UserGroupElementAdd" method="post" enctype="application/x-www-form-urlencoded">
 <input type="hidden" name="userGroupID" value="$currentUserGroup.getID()" />
 <p>User Login Names:</p>
 <p><textarea name="elements" rows="4" cols="34">$!elements</textarea><br />If you know the login names of the users you want to add to this group, 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>
 <p><input type="submit" name="Button" value="Perform Mass Add" /></p>

</form>

</div>

@


1.5
log
@Template change for mass add.
@
text
@d3 1
a3 14
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="2" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Add Users: <SPAN CLASS="ProjectNameHeader">$currentUserGroup.getName()</SPAN></TD>  
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
<FORM ACTION="UserGroupElementAdd" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<INPUT TYPE="hidden" NAME="userGroupID" VALUE="$currentUserGroup.getID()">
  <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>
d5 4
d13 1
a13 1
  <span class="Warning">All avaliable users are already in this group.</span>
d15 1
a15 1
  <span class="Warning">No matching users found.</span>
d18 14
a31 9
 #foreach( $user in $page )
  <TR>
   <TD WIDTH="5%" BGCOLOR="white">
    <P><INPUT TYPE="CHECKBOX" NAME="Add $user.getID()">
   </TD>
   <TD WIDTH="20%" CLASS="PlainText" BGCOLOR="white">&nbsp;
    #if( $acl.hasPermission("User - Edit", $currentDomain) )
     <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A>
    #else
d33 20
a52 24
    #end
   </TD>
   <TD WIDTH="75%" CLASS="PlainText" VALIGN="TOP" BGCOLOR="white">
    $user.getRealName()
   </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>
 #end  
 <TR>
  <TD COLSPAN="3"><INPUT type="Submit" name="Button" value="Add to Group"></TD>
 </TR>
 <TR>
  <TD COLSPAN="3" ALIGN="center" CLASS="PlainText">
   $users.navigationBar($currentProject.getProjectPageURL($servletName, "userGroupID=${currentUserGroup.getID()"), $paginated_page)}
  </TD>
 </TR>
d55 17
a71 34
<TR>
  <TD COLSPAN="3">
  <FORM METHOD="post" ACTION="UserGroupElementAdd">
  #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
  </FORM>
  </TD>
</TR>

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

 <TR>
  <FORM ACTION="UserGroupElementAdd" METHOD="POST" 
   ENCTYPE="application/x-www-form-urlencoded">
  <INPUT TYPE="hidden" NAME="userGroupID" VALUE="$currentUserGroup.getID()">

  <TD></TD>
  <TD class="InputHeader" VALIGN="top" width="10%">User Login Names:</TD>
  <TD COLSPAN="3">
   <TEXTAREA NAME="elements" ROWS="4" COLS="34">$!elements</TEXTAREA>
   <BR>
   If you know the login names of the users you want to add to this
   group, 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).
  </TD>
 </TR>
 <TR>
  <TD COLSPAN="3">
   <INPUT type="Submit" name="Button" value="Perform Mass Add">
  </TD>
 </FORM>
 </TR>
d73 1
a73 1
</TABLE>
@


1.4
log
@fixed syntax errors
@
text
@a63 3
 <TD COLSPAN="3"><hr size="1" noshade></TD>
</TR>
<TR>
d70 28
@


1.3
log
@fixed broken args passing in templates made by conversion program
@
text
@d18 1
a18 1
#set( $users = ${currentDomain.getUsersNotInGroup($currentUserGroup, $itemsPerPage, $filter)}
@


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
@d18 1
a18 1
#set( $users = ${currentDomain.getUsersNotInGroup($currentUserGroup, )$itemsPerPage, $filter)}
@


1.1
log
@Adding Velocity templates.
@
text
@d1 1
a1 1
#parse( "$BRAND_TEMPLATE_ROOT/Admin_Nav.vm" )
d69 1
a69 1
  #parse( "${SERVLET_TEMPLATE_ROOT}/org/tigris/helm/tool/paginate/Filter.vm" )
@

