head	1.13;
access;
symbols
	TIGRIS_1_1_0RC2:1.11
	TIGRIS_1_1_0RC1:1.11
	TIGRIS_1_1:1.11.0.4
	TIGRIS_1_0_8:1.11
	TIGRIS_1_0_8RC3:1.11
	TIGRIS_1_0_8RC2:1.11
	TIGRIS_1_0_8RC1:1.11
	TIGRIS_1_0_7:1.11
	TIGRIS_1_0_7RC3:1.11
	TIGRIS_1_0_7RC2:1.11
	TIGRIS_1_0_7RC1:1.11
	TIGRIS_1_0_6:1.11
	TIGRIS_1_0_6RC5:1.11
	TIGRIS_1_0_6RC4:1.11
	TIGRIS_1_0_6RC3:1.11
	TIGRIS_1_0_6RC2:1.11
	TIGRIS_1_0_6RC1:1.11
	TIGRIS_1_0_5:1.11
	TIGRIS_1_0_5RC6:1.11
	TIGRIS_1_0_5RC5:1.11
	TIGRIS_1_0_5RC4:1.11
	TIGRIS_1_0_5RC3:1.11
	TIGRIS_1_0_5RC2:1.11
	TIGRIS_1_0_5RC1:1.11
	TIGRIS_1_0_4:1.11
	TIGRIS_1_0_3:1.11
	TIGRIS_1_0_2:1.11
	TIGRIS_1_0_1:1.11
	TIGRIS_1_0:1.11.0.6
	TIGRIS_1_0_0:1.11
	TIGRIS_1_0_0_RC1:1.11.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.6.6.1
	TIGRIS_0_9_2_3:1.6.6.1
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TURBINE_PEER:1.6
	TIGRIS_0_9_2_1:1.6
	TIGRIS_0_9_2:1.6.0.6
	TIGRIS_0_9_0:1.6.0.4
	TIGRIS_0_8_4:1.6.0.2;
locks; strict;
comment	@# @;


1.13
date	2001.05.23.02.04.14;	author dlr;	state dead;
branches;
next	1.12;

1.12
date	2001.05.13.07.35.19;	author jrobbins;	state Exp;
branches;
next	1.11;

1.11
date	2001.03.24.09.06.03;	author jrobbins;	state Exp;
branches;
next	1.10;

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

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

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

1.7
date	2001.02.21.01.08.29;	author dlr;	state Exp;
branches;
next	1.6;

1.6
date	2000.12.03.06.14.22;	author jrobbins;	state Exp;
branches
	1.6.6.1
	1.6.8.1;
next	1.5;

1.5
date	2000.11.27.19.14.35;	author susank;	state Exp;
branches;
next	1.4;

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

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

1.2
date	2000.11.21.18.48.52;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.21.01.47.58;	author leonardr;	state Exp;
branches
	1.1.1.1;
next	;

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

1.6.6.1
date	2001.01.28.02.50.04;	author cameron;	state Exp;
branches;
next	;

1.6.8.1
date	2001.01.31.02.05.50;	author leonardr;	state Exp;
branches;
next	1.6.8.2;

1.6.8.2
date	2001.02.12.17.20.30;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.13
log
@Removed WM templates in favor of Velocity templates.
@
text
@#parse "$BRAND_TEMPLATE_ROOT/Admin_Nav.wm"

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
 <TR>
  <TD  CLASS="Header" nowrap><B>All User Groups:</B>
   <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN>
  </TD>
  #if ($acl.hasPermission("UserGroup - Add", $currentDomain))
  {
   <TD CLASS="PlainText">
    <A HREF="UserGroupAdd">Add New Group</A>
   </TD>
  }
 </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" width="100%">
 <TR>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Group</TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Elements&nbsp;&nbsp;</TD>
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Description</TD>
 </TR>

 #set $userGroups = $currentDomain.getUserGroups($itemsPerPage, $filter)
 #set $thisPage = $userGroups.getPage($paginated_page)

 #if ($userGroups.isEmpty())
 {
  #if ($currentDomain.getUserGroups().isEmpty())
  {
   #set $noUserGroups=true
  }

  <TR> 
   <TD class="PlainText" VALIGN="top">
   #if ($noUserGroups)
   {
    <I>There are not yet any user groups on this site.</I>
   } #else {
    <span class="Warning">No matching user groups were found.</span>
   }
   </TD>
  </TR>
 } #else {
  #foreach $group in $thisPage
  {
   <TR> 
    <TD class="PlainText" VALIGN="top">
     #if ($acl.hasPermission("UserGroup - Edit", $currentDomain))
     {
      <A HREF="UserGroupEdit?userGroupID=$group.getID()">$group.getName()</A>
     } #else {
      $group.getName()
     }
    </TD> 
    <TD class="PlainText" VALIGN="top">$group.getNumberOfUsers()</TD> 
    <TD class="PlainText">$group.getDescription()</TD> 
   </TR> 

   <TR>
    <TD COLSPAN="3">
     <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="3" ALIGN="center" CLASS="PlainText">
     $userGroups.navigationBar($currentProject.getProjectPageURL($servletName), $paginated_page);
    </TD>
   </TR>
  }
 }

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

 #if(!$noUserGroups)
 {
  <TR>
   <TD COLSPAN="3">
   <FORM METHOD="post" ACTION="UserGroupList">
    #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
   </FORM>
  </TR>
 }
</TABLE>

</FORM>
@


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


1.11
log
@added much needed admin nav element
@
text
@d38 1
a38 1
    There are not yet any user groups on this site.
d40 1
a40 1
    <font color="red">No matching user groups were found.</font>
d74 1
a74 1
     $userGroups.navigationBar("UserGroupList", $paginated_page);
@


1.10
log
@Political correctness strikes Tigris.org! The components of project and user groups no longer wish to be called "members", as that causes them to be confused with users who have roles in projects. The new, approved term is "elements".
@
text
@d1 2
@


1.9
log
@Cam informs me that the ugly thing with subtables is neccessary, so back in it goes.
@
text
@d18 1
a18 1
  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Members&nbsp;&nbsp;</TD>
@


1.8
log
@Fixed up project and user group list.
@
text
@d59 9
a67 3
    <TD BGCOLOR="#efefef" COLSPAN="3" HEIGHT="1">
     <SPACER TYPE="block" HEIGHT="1">
    </TD>
d69 1
a69 1

@


1.7
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d2 11
a12 9
  <TR>
    <TD  CLASS="Header" nowrap><B>All User Groups</B>: <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN></TD>
#if ($acl.hasPermission("UserGroup - Add", $currentDomain))
{
    <TD CLASS="PlainText">
      <A HREF="UserGroupAdd">Add New Group</A>
    </TD>
}
  </TR>
d15 6
d22 2
d25 16
a40 5
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" width="100%">
  <TR>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Group</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Members&nbsp;&nbsp;</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Description</TD>
d42 15
d58 16
a73 7
#set $userGroups = $currentDomain.getUserGroups($itemsPerPage, $filter)
#if ($userGroups.isEmpty())
{
 <TR> 
  <TD class="PlainText" VALIGN="top">
    <font color="red">No matching user groups were found.</font>
  </TD>
d75 2
a76 2
} #else {
 #foreach $group in $userGroups.getPage($paginated_page)
a77 11
  <TR> 
  <TD class="PlainText" VALIGN="top">
   #if ($acl.hasPermission("UserGroup - Edit", $currentDomain))
   {
    <A HREF="UserGroupEdit?userGroupID=$group.getID()">$group.getName()</A>
   } #else {
    $group.getName()
   }</TD> 
   <TD class="PlainText" VALIGN="top">$group.getNumberOfUsers()</TD> 
   <TD class="PlainText">$group.getDescription()</TD> 
 </TR> 
d79 4
a82 7
    <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>
a84 12
}

<TR>
  <TD COLSPAN="8"><hr size="1" noshade></TD>
</TR>
<TR>
  <TD COLSPAN="8">
  <FORM METHOD="post" ACTION="UserGroupList">
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
  </FORM>
  </TD>
</TR>
@


1.6
log
@made to match style of other pages, and added line when there are no groups defined
@
text
@d4 1
a4 1
#if ($acl.hasPermissionForDomain("UserGroup - Add", $currentDomain.getID()))
d22 2
a23 1
#foreach $group in $currentDomain.getUserGroups()
d27 9
a35 1
   #if ($acl.hasPermissionForDomain("UserGroup - Edit", $currentDomain.getID()))
d41 1
a41 1
   <TD class="PlainText" VALIGN="top">$group.getNumberOfUsers($acl)</TD> 
d53 1
d56 8
a63 5
#if ($currentDomain.getUserGroups().isEmpty()) 
{
 <TR> 
  <TD class="PlainText" VALIGN="top">
    <I>There are no user groups defined yet.</I>
d65 1
a65 8
 </TR>

}

  <TR>
    <TD COLSPAN="4">&nbsp;</TD>
  </TR>
##TODO: Put paging in here.
@


1.6.8.1
log
@Converted permission checking somewhat.
@
text
@d4 1
a4 1
#if ($acl.hasPermissionForDomain("UserGroup - Add", $currentDomain))
d26 1
a26 1
   #if ($acl.hasPermissionForDomain("UserGroup - Edit", $currentDomain))
@


1.6.8.2
log
@Got rid of calls to deprecated permission checking methods.
@
text
@d4 1
a4 1
#if ($acl.hasPermission("UserGroup - Add", $currentDomain))
d22 1
a22 2
#set $userGroups = $currentDomain.getUserGroups($itemsPerPage, $filter)
#if ($userGroups.isEmpty())
d26 1
a26 9
    <font color="red">No matching user groups were found.</font>
  </TD>
 </TR>
} #else {
 #foreach $group in $userGroups.getPage($paginated_page)
 {
  <TR> 
  <TD class="PlainText" VALIGN="top">
   #if ($acl.hasPermission("UserGroup - Edit", $currentDomain))
d32 1
a32 1
   <TD class="PlainText" VALIGN="top">$group.getNumberOfUsers()</TD> 
a43 1
 }
d46 5
a50 8
<TR>
  <TD COLSPAN="8"><hr size="1" noshade></TD>
</TR>
<TR>
  <TD COLSPAN="8">
  <FORM METHOD="post" ACTION="UserGroupList">
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
  </FORM>
d52 8
a59 1
</TR>
@


1.6.6.1
log
@fixed layout at top, align right "add new group"
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d6 1
a6 1
    <TD CLASS="PlainText" align="right">
d12 2
@


1.5
log
@added domain name to page header
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d1 1
a1 1
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="2" BORDER="0" WIDTH="100%">
d3 7
a9 1
    <TD CLASS="Welcome">List User Groups: <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN></TD>
d11 3
a13 1
 </TABLE>
d35 19
a59 6
#if ($acl.hasPermissionForDomain("UserGroup - Add", $currentDomain.getID()))
{
  <TR>
    <TD COLSPAN="4"><A HREF="UserGroupAdd">Add New Group</a></TD>
  </TR>      
}
@


1.4
log
@Order users by name
@
text
@d3 1
a3 1
    <TD CLASS="Welcome">User groups within domain $currentDomain.getName():</TD>
@


1.3
log
@Fixed up display of user groups.
@
text
@d20 1
a20 1
    <A HREF="UserGroupEdit?currentUser=$group.getID()">$group.getName()</A>
@


1.2
log
@Give registered users the project member list permission in public projects.
@
text
@d20 1
a20 1
    <A HREF="/servlets/GroupEdit.html">$group.getName()</A>
d24 2
a25 2
   <TD class="PlainText" VALIGN="top">$group.getNumberOfUsers()</TD> 
   <TD class="PlainText">$group.getShortDescription()</TD> 
@


1.1
log
@First stab at UserGroups.
@
text
@a0 7
## <!-- webmacro variables -->
## <!-- $currentDomain: $currentDomain.getName(), $currentDomain.getGroups() --> 
## <!-- $group: $group.getNumMembers(), group.getNumProjects(), group.getName(), group.getShortDescription() -->
## <!-- $addNewGroup: submit button form widget -->

<FORM NAME="GroupListForm" METHOD="post" ACTION="">

d3 1
a3 1
    <TD CLASS="Welcome">Groups within domain $currentDomain.getName():</TD>
d9 1
a10 2
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Projects&nbsp;&nbsp;</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Group</TD>
d14 1
a14 34
<!-- temporary static html -->
  <TR>
    <TD class="PlainText" VALIGN="top">4</TD>
    <TD class="PlainText" VALIGN="top">3</TD>
    <TD class="PlainText" VALIGN="top"><A HREF="/servlets/GroupEdit.html">performteam</A></TD>
    <TD class="PlainText">Performance gurus from partner company XYZ evaluating server response times</TD>
  </TR>
  <TR>
    <TD class="PlainText" VALIGN="top">14</TD>
    <TD class="PlainText" VALIGN="top">2</TD>
    <TD class="PlainText" VALIGN="top"><A HREF="/servlets/GroupEdit.html">securiteam</A></TD>
    <TD class="PlainText">Security guys consulting on ecommerce-related projects</TD> 
  </TR>
  <TR>
    <TD class="PlainText" VALIGN="top">3</TD>
    <TD class="PlainText" VALIGN="top">6</TD>
    <TD class="PlainText" VALIGN="top"><A HREF="/servlets/GroupEdit.html">qa.squad.1</A></TD>
    <TD class="PlainText">Bill and Jon and Bob oversee final bug fixes on each project before a major release</TD>
  </TR>
  <TR>
    <TD class="PlainText" VALIGN="top">8</TD>
    <TD class="PlainText" VALIGN="top">1</TD>
    <TD class="PlainText" VALIGN="top"><A HREF="/servlets/GroupEdit.html">qa.squad.2</A></TD>
    <TD class="PlainText">Outsourced QA staff under direction of Joe</TD>
  </TR>
  <TR>
    <TD class="PlainText" VALIGN="top">189</TD>
    <TD class="PlainText" VALIGN="top">39</TD>
    <TD class="PlainText" VALIGN="top"><A HREF="/servlets/GroupEdit.html">inhouse</A></TD>
    <TD class="PlainText">In-house developers get access to all in-house projects</TD>
  </TR>

<!-- webmacro commented out -->
#if (false)
d16 11
a26 9
#foreach $group in $currentDomain.getGroups()
  {
  <TR> 
    <TD class="PlainText" VALIGN="top">$group.getNumMembers()</TD> 
    <TD class="PlainText" VALIGN="top">$group.getNumProjects()</TD> 
    <TD class="PlainText" VALIGN="top"><A HREF="/servlets/GroupEdit.html">$group.getName()</A></TD> 
    <TD class="PlainText">$group.getShortDescription()</TD> 
  </TR> 
  }
d32 3
d36 1
a36 4
    <TD COLSPAN="4" class="PlainText" VALIGN="top"><A HREF="/servlets/ProjectList.html">prev</A> | <B>1</B> <A HREF="/servlets/ProjectList.html">2</A> <A HREF="/servlets/ProjectList.html">3</A> <A HREF="/servlets/ProjectList.html">4</A> | <A HREF="/servlets/ProjectList.html">next</A></TD>
  </TR>
  <TR>
    <TD COLSPAN="4"><INPUT TYPE="submit" NAME="addNewGroup" VALUE="Add New Group"></TD>
d38 1
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d1 8
a8 1
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
d10 1
a10 7
    <TD  CLASS="Header" nowrap><B>All User Groups</B>: <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN></TD>
#if ($acl.hasPermission("UserGroup - Add", $currentDomain))
{
    <TD CLASS="PlainText">
      <A HREF="UserGroupAdd">Add New Group</A>
    </TD>
}
d12 1
a12 3
</TABLE>


d16 2
a18 1
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Members&nbsp;&nbsp;</TD>
d22 34
a55 2
#set $userGroups = $currentDomain.getUserGroups($itemsPerPage, $filter)
#if ($userGroups.isEmpty())
d57 2
a58 8
 <TR> 
  <TD class="PlainText" VALIGN="top">
    <font color="red">No matching user groups were found.</font>
  </TD>
 </TR>
} #else {
 #foreach $group in $userGroups.getPage($paginated_page)
 {
d60 6
a65 20
  <TD class="PlainText" VALIGN="top">
   #if ($acl.hasPermission("UserGroup - Edit", $currentDomain))
   {
    <A HREF="UserGroupEdit?userGroupID=$group.getID()">$group.getName()</A>
   } #else {
    $group.getName()
   }</TD> 
   <TD class="PlainText" VALIGN="top">$group.getNumberOfUsers()</TD> 
   <TD class="PlainText">$group.getDescription()</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>
 }
d68 9
a76 10
<TR>
  <TD COLSPAN="8"><hr size="1" noshade></TD>
</TR>
<TR>
  <TD COLSPAN="8">
  <FORM METHOD="post" ACTION="UserGroupList">
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
  </FORM>
  </TD>
</TR>
@


