head	1.20;
access;
symbols
	TIGRIS_1_1_0RC2:1.18
	TIGRIS_1_1_0RC1:1.18
	TIGRIS_1_1:1.18.0.4
	TIGRIS_1_0_8:1.18
	TIGRIS_1_0_8RC3:1.18
	TIGRIS_1_0_8RC2:1.18
	TIGRIS_1_0_8RC1:1.18
	TIGRIS_1_0_7:1.18
	TIGRIS_1_0_7RC3:1.18
	TIGRIS_1_0_7RC2:1.18
	TIGRIS_1_0_7RC1:1.18
	TIGRIS_1_0_6:1.18
	TIGRIS_1_0_6RC5:1.18
	TIGRIS_1_0_6RC4:1.18
	TIGRIS_1_0_6RC3:1.18
	TIGRIS_1_0_6RC2:1.18
	TIGRIS_1_0_6RC1:1.18
	TIGRIS_1_0_5:1.18
	TIGRIS_1_0_5RC6:1.18
	TIGRIS_1_0_5RC5:1.18
	TIGRIS_1_0_5RC4:1.18
	TIGRIS_1_0_5RC3:1.18
	TIGRIS_1_0_5RC2:1.18
	TIGRIS_1_0_5RC1:1.18
	TIGRIS_1_0_4:1.18
	TIGRIS_1_0_3:1.18
	TIGRIS_1_0_2:1.18
	TIGRIS_1_0_1:1.18
	TIGRIS_1_0:1.18.0.6
	TIGRIS_1_0_0:1.18
	TIGRIS_1_0_0_RC1:1.18.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.12
	TIGRIS_0_9_2_3:1.12
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TURBINE_PEER:1.13
	TIGRIS_0_9_2_1:1.13
	TIGRIS_0_9_2:1.12.0.4
	TIGRIS_0_9_0:1.12.0.2
	TIGRIS_0_8_4:1.10.0.2;
locks; strict;
comment	@# @;


1.20
date	2001.05.23.02.04.14;	author dlr;	state dead;
branches;
next	1.19;

1.19
date	2001.05.13.07.35.19;	author jrobbins;	state Exp;
branches;
next	1.18;

1.18
date	2001.03.24.09.06.03;	author jrobbins;	state Exp;
branches;
next	1.17;

1.17
date	2001.03.08.19.05.38;	author leonardr;	state Exp;
branches;
next	1.16;

1.16
date	2001.02.22.01.31.59;	author leonardr;	state Exp;
branches;
next	1.15;

1.15
date	2001.02.21.23.42.39;	author leonardr;	state Exp;
branches;
next	1.14;

1.14
date	2001.02.21.01.08.29;	author dlr;	state Exp;
branches;
next	1.13;

1.13
date	2001.01.19.21.00.16;	author leonardr;	state Exp;
branches
	1.13.2.1;
next	1.12;

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

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

1.10
date	2000.12.03.06.15.42;	author jrobbins;	state Exp;
branches;
next	1.9;

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

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

1.7
date	2000.11.27.19.14.35;	author susank;	state Exp;
branches;
next	1.6;

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

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

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

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

1.2
date	2000.11.21.20.56.55;	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.13.2.1
date	2001.01.31.02.05.50;	author leonardr;	state Exp;
branches;
next	1.13.2.2;

1.13.2.2
date	2001.02.12.17.20.06;	author leonardr;	state Exp;
branches;
next	;


desc
@@


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

<FORM NAME="UserGroupEditForm" ACTION="UserGroupEdit?userGroupID=$currentUserGroup.getID()" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">

<INPUT TYPE="hidden" NAME="userGroupID" VALUE="$currentUserGroup.getID()">

#if ($acl.hasPermission("UserGroup Element - Delete", $currentUserGroup.getDomain()))
{
 #set $canRemove=1
}

#if ($currentUserGroup.getUsers().isEmpty())
{
 #set $noUsers=true
}

#set $users = $currentUserGroup.getUsers($itemsPerPage, $filter)
#set $page = $users.getPage($paginated_page) 

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">
 <TR>
  <TD class="Header" nowrap>
   User Group Edit ($currentUserGroup.getName()): 
   <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN>
  </TD>
  <TD>
   <a href="UserGroupList">User Group List</a>
  </TD>
 </TR>
</TABLE>

<TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="2">

 ##Commented out until we can change user names.
 ##<TR>
 ## <TD class="InputHeader" VALIGN="top" NOWRAP>Group Name:</TD>
 ## <TD COLSPAN="2">
 ##  <INPUT TYPE="TEXT" NAME="name" VALUE="$currentUserGroup.getName()" 
 ##   SIZE="34"><BR> 
 ## </TD>
 ##</TR>

 <TR>
  <TD VALIGN="TOP" class="InputHeader" NOWRAP>Short Description:</TD>
  <TD COLSPAN="2" WIDTH="100%">
   <INPUT TYPE="TEXT" NAME="description" 
    VALUE="$currentUserGroup.getDescription()" SIZE="34">
  </TD> 
 </TR>

 <TR>
  <TD></TD>
  <TD><INPUT TYPE="submit" NAME="Button" VALUE="Submit Changes"></TD>
 </TR>

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

 <TR>
  <TD VALIGN="TOP" class="InputHeader" NOWRAP>Group Elements:</TD>
  <TD>
   <TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="2">  
    <TR>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">User</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">
      #if ($canRemove && !$page.isEmpty())
      {
       Remove From Group
      }
     </TD>
    </TR>

    #if ($page.isEmpty())
    {
     <TR> 
      <TD class="PlainText" VALIGN="top">
       #if ($noUsers) 
       {
        <span class="Warning">There are no users in this group.</span>
       } #else {
        <span class="Warning">No matching users found.</span>
       }
      </TD>
     </TR>  
    } #else {
     #foreach $user in $page
     { 
      <TR> 
       <TD class="ProjectName" VALIGN="top">
        #if ($acl.hasPermission("User - Edit", $user.getDomain()))
        {
         <A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A>
        } #else {
         $user.getLoginName()
        }
       </TD> 
       <TD class="PlainText" VALIGN="top" NOWRAP>$user.getRealName()</TD> 
       #if ($canRemove)
       {
        <TD><INPUT TYPE="CHECKBOX" NAME="Remove $user.getID()"></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>
     }
     <TR>
      <TD COLSPAN="3" ALIGN="center" CLASS="PlainText">
       $users.navigationBar($currentProject.getProjectPageURL($servletName, "userGroupID=$currentUserGroup.getID()"), $paginated_page);
      </TD>
     </TR>
    }

    <TR>
     #if ($acl.hasPermission("UserGroup Element - Add", $currentUserGroup.getDomain()))
     {
      <TD CLASS="StatText" COLSPAN="2">
       <a href="UserGroupElementAdd?userGroupID=$currentUserGroup.getID()">Add New User to Group</a>
      </TD>
     }

     #if ($canRemove && !$users.isEmpty())
     {
      <TD CLASS="StatText" COLSPAN="2">
       <INPUT TYPE="submit" NAME="Button" VALUE="Remove Elements">
      </TD>
     }
    </TR>
   
    #if (!$noUsers)
    {
     <TR>
      <TD COLSPAN="6">
       <FORM METHOD="post" ACTION="UserGroupEdit">
        #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
       </FORM>
      </TD>
     </TR>
    }

   </TABLE>
  </TD>
 </TR>

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

 #if ($acl.hasPermission("UserGroup - Delete", $currentUserGroup.getDomain()))
 {
  <TR>
   <TD VALIGN="TOP" class="InputHeader" NOWRAP>Other Options:</TD>
   <TD COLSPAN="4" class="StatText">
    <A HREF="UserGroupDelete?userGroupID=$currentUserGroup.getID()">Delete Group</A>
   </TD>
  </TR>
 }
</TABLE>
</FORM>
@


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


1.18
log
@added much needed admin nav element
@
text
@d81 1
a81 1
        <font color="red">There are no users in this group.</font>
d83 1
a83 1
        <font color="red">No matching users found.</font>
d119 1
a119 1
       $users.navigationBar("UserGroupEdit?userGroupID=$currentUserGroup.getID()", $paginated_page);
@


1.17
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.16
log
@Fixed logic for displaying errors.
@
text
@d5 1
a5 1
#if ($acl.hasPermission("UserGroup Member - Delete", $currentUserGroup.getDomain()))
d59 1
a59 1
  <TD VALIGN="TOP" class="InputHeader" NOWRAP>Group Members:</TD>
d123 1
a123 1
     #if ($acl.hasPermission("UserGroup Member - Add", $currentUserGroup.getDomain()))
d126 1
a126 1
       <a href="UserGroupMemberAdd?userGroupID=$currentUserGroup.getID()">Add New User to Group</a>
d133 1
a133 1
       <INPUT TYPE="submit" NAME="Button" VALUE="Remove Members">
@


1.15
log
@Added/fixed pagination.
@
text
@d10 5
d77 1
a77 1
       #if ($users.isEmpty()) 
d138 1
a138 1
    #if (!$users.isEmpty())
@


1.14
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d2 1
d5 1
a5 8
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>User Group Edit ($currentUserGroup.getName()): <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN></TD>
   <TD><a href="UserGroupList">User Group List</a></TD>
   </TR>
</TABLE>

#if ($acl.hasPermission("UserGroup Member - Delete", $currentDomain))
d10 15
d27 16
a42 5
##Commented out until we can change user names.
##  <TR>
##    <TD class="InputHeader" VALIGN="top" NOWRAP>Group Name:</TD>
##    <TD COLSPAN="2"><INPUT TYPE="TEXT" NAME="name" VALUE="$currentUserGroup.getName()" SIZE="34"><BR> 
##  </TR>
d44 4
a47 25
  <TR>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Short Description:</TD>
    <TD COLSPAN="2" WIDTH="100%"><INPUT TYPE="TEXT" NAME="description" VALUE="$currentUserGroup.getDescription()" SIZE="34"></TD> 
  </TR>
  <TR>
    <TD></TD>
    <TD><INPUT TYPE="submit" NAME="Button" VALUE="Submit Changes"></TD>
  </TR>
  <TR>
    <TD COLSPAN="2"><hr size="1" noshade></TD>
  </TR>
  <TR>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Group Members:</TD>
    <TD>
      <TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="2">  
        <TR>
          <TD class="ProjectDownloadHeader" bgcolor="#efefef">User</TD>
          <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
          <TD class="ProjectDownloadHeader" bgcolor="#efefef">
          #if ($canRemove && !$currentUserGroup.getUsers().isEmpty())
          {
	   Remove From Group
          }
          </TD>
        </TR>
d49 3
a51 19
       #foreach $user in $currentUserGroup.getUsers() 
       { 
        <TR> 
          <TD class="ProjectName" VALIGN="top"><A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A></TD> 
          <TD class="PlainText" VALIGN="top" NOWRAP>$user.getRealName()</TD> 
         #if ($canRemove)
         {
 	  <TD><INPUT TYPE="CHECKBOX" NAME="Remove $user.getID()"></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>
d53 43
d97 46
d144 1
a144 5
#if ($currentUserGroup.getUsers().isEmpty()) 
{
 <TR> 
  <TD class="PlainText" VALIGN="top">
    <I>There are no users in this group.</I>
d148 3
a150 20
}


        <TR>
         <TD CLASS="StatText" COLSPAN="2"><a href="UserGroupMemberAdd?userGroupID=$currentUserGroup.getID()">Add New User to Group</a></TD>
         <TD CLASS="StatText" COLSPAN="2">
         #if ($canRemove && !$currentUserGroup.getUsers().isEmpty())
         {
	   <INPUT TYPE="submit" NAME="Button" VALUE="Remove Members"></A>
         }
          ## TODO delete should be a button
        </TR>

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

  </TR>
d152 2
d155 4
a158 3
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Other Options:</TD>
    <TD COLSPAN="4" class="StatText"><A HREF="UserGroupDelete?userGroupID=$currentUserGroup.getID()">Delete Group</A></TD>
    ## TODO Delete shuld probably be a button
d160 1
@


1.13
log
@UserGroup and ProjectGroupEdit now sport links back to their respective lists.
@
text
@d11 1
a11 1
#if ($acl.hasPermissionForDomain("UserGroup Member - Delete", $currentDomain.getID()))
d53 2
a54 2
          <TD class="ProjectName" VALIGN="top"><A HREF="UserEdit?userID=$user.getID()">$user.getLoginID()</A></TD> 
          <TD class="PlainText" VALIGN="top" NOWRAP>$user.getName()</TD> 
@


1.13.2.1
log
@Converted permission checking somewhat.
@
text
@d11 1
a11 1
#if ($acl.hasPermissionForDomain("UserGroup Member - Delete", $currentDomain))
@


1.13.2.2
log
@Ported UserGroupEdit servlet.
@
text
@d11 1
a11 1
#if ($acl.hasPermission("UserGroup Member - Delete", $currentDomain))
d53 2
a54 2
          <TD class="ProjectName" VALIGN="top"><A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A></TD> 
          <TD class="PlainText" VALIGN="top" NOWRAP>$user.getRealName()</TD> 
@


1.12
log
@changed wording
@
text
@d7 1
@


1.11
log
@Brought project and usergroup templates into sync.
@
text
@d75 1
a75 1
    <I>There are no users in this group yet.</I>
d83 1
a83 1
         <TD CLASS="StatText" COLSPAN="2"><a href="UserGroupMemberAdd?userGroupID=$currentUserGroup.getID()">Add New Member</a></TD>
@


1.10
log
@adjusted style and layout, added more guards to make it look better when no members
@
text
@d1 1
a1 1
<FORM NAME="UserGroupEditForm" ACTION="UserGroupEdit" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
@


1.9
log
@Mega patch providing more user group admin functionality.
@
text
@d41 2
a42 1
          #if ($canRemove)
d44 1
a44 1
	   <TD class="ProjectDownloadHeader" bgcolor="#efefef">Remove From Group</TD>
d46 1
d59 10
d71 11
d83 3
a85 2
         <TD CLASS="StatText" COLSPAN="3">
         #if ($canRemove)
d89 1
a89 1
         <TD CLASS="StatText"><a href="UserGroupMemberAdd?userGroupID=$currentUserGroup.getID()">Add New Member</a></TD>
d102 2
a103 1
    <TD COLSPAN="4"><A HREF="UserGroupDelete?userGroupID=$currentUserGroup.getID()">Delete Group</A></TD>
@


1.8
log
@Fixed user group member removal.
@
text
@d65 1
a65 1
         <TD CLASS="StatText"><a href="UserGroupMemberAdd">Add New Member</a></TD>
@


1.7
log
@added domain name to page header
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d78 1
a78 1
    <TD COLSPAN="4"><INPUT TYPE="submit" NAME="Button" VALUE="Delete Group"></TD>
@


1.6
log
@Some preemptive button name changes.
@
text
@d6 2
a7 1
    <TD class="Header" nowrap>User Group Edit: $currentUserGroup.getName()</TD>   </TR>
@


1.5
log
@UI changes at Cam's behest.
@
text
@d28 1
a28 1
    <TD><INPUT TYPE="submit" NAME="Button" VALUE="Edit Group"></TD>
@


1.4
log
@Bugfixes and template changes related to UserGroupEdit.
@
text
@d9 5
d40 4
a43 9
#if ($acl.hasPermissionForDomain("UserGroup Member - Delete", $currentDomain.getID()))
{
 #set $canRemove=1
}

#if ($canRemove)
{
	  <TD class="ProjectDownloadHeader" bgcolor="#efefef">Remove From Group</TD>
}
d46 2
a47 2
#foreach $user in $currentUserGroup.getUsers() 
{ 
d51 2
a52 2
 #if ($canRemove)
 {
d54 1
a54 1
 }
d56 1
a56 1
}
d58 8
a65 8
<TR>

#if ($canRemove)
{
	  <TD><INPUT TYPE="submit" NAME="Button" VALUE="Remove Members"></A></TD>
}
<TD CLASS="StatText"><a href="UserGroupMemberAdd">Add New Member</a></TD>
</TR>
@


1.3
log
@Order users by name
@
text
@d2 1
d6 1
a6 2
    <TD class="Header" nowrap>User Group Edit: $currentUserGroup.getName()</TD>  
  </TR>
d10 1
d14 1
a14 1
##    <TD COLSPAN="2"><INPUT TYPE="TEXT" NAME="name" VALUE="$name" SIZE="34"><BR> 
d16 1
d19 1
a19 1
    <TD COLSPAN="2"><INPUT TYPE="TEXT" NAME="description" VALUE="$description" SIZE="34"></TD> 
d23 1
a23 1
    <TD><INPUT TYPE="submit" NAME="Button" VALUE="Submit Changes"></TD>
d26 1
a26 1
    <TD COLSPAN="2">&nbsp;</TD>
d35 9
d46 1
a46 1
#foreach $user in $currentGroup.getUsers() 
d51 4
d58 9
a66 3
        <TR>
          <TD COLSPAN="4"><A HREF="UserGroupMemberAdd?userGroupID=$currentUserGroup.getID()">Add New Member</A></TD>
        </TR>
d71 2
a72 1
    <TD COLSPAN="2">&nbsp;</TD>
d77 1
a77 1
    <TD COLSPAN="4"><INPUT TYPE="submit" NAME="deleteGroup" VALUE="Delete This Group"></TD>
@


1.2
log
@Redirect properly on user group creation (thanks stack)
@
text
@a0 2
## <!-- webmacro variables -->   
 
d5 1
a5 1
    <TD class="Header" nowrap>GroupAdd</TD>  
d10 5
a14 4
  <TR>
    <TD class="InputHeader" VALIGN="top" NOWRAP>Group Name:</TD>
    <TD COLSPAN="2"><INPUT TYPE="TEXT" NAME="groupName" VALUE="$groupName" SIZE="34"><BR> 
  </TR>
a18 31

  <TR>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Group Catagory:</TD>
      <select name="groupType"> 
 
<!-- temporary static html --> 
        <option value="">Games</option> 
        <option value="">Business</option> 
        <option value="">Financial</option> 
        <option value="">Productivity</option> 
        <option value="">Communications</option> 
        <option value="">Other</option> 
        <option value="">New Catagory</option> 
 
<!-- webmacro commented out while servlet not functional --> 
#if (false) 
{ 
#foreach $gt in $groupList  
  {  
            <option value="$gt"  
  #if ($groupType.equals($gt))  
    {  
    selected  
    }  
                                        >$gt</option>  
  }  
} 

      </select>
    </TD>
  </TR>
d21 1
a21 1
    <TD><INPUT TYPE="submit" NAME="changeGroup" VALUE="Submit Changes"></TD>
a32 22
          <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
          <TD bgcolor="#efefef" WIDTH="100%">&nbsp;</TD>
        </TR>

<!-- temporary static html -->
        <TR>
          <TD class="ProjectName" VALIGN="top"><A HREF="/servlets/UserEdit.html">jrobbins</A></TD>
          <TD class="PlainText" VALIGN="top" NOWRAP>Jason Robbins</TD>
          <TD class="PlainText" NOWRAP><INPUT TYPE="CHECKBOX" NAME="CheckBox" VALUE="CheckBox">Project Owner</TD>
          <TD WIDTH="100%">&nbsp;</TD>
        </TR>
        <TR>
          <TD class="ProjectName" VALIGN="top"><A HREF="/servlets/UserEdit.html">npm</A></TD>
          <TD class="PlainText" VALIGN="top" NOWRAP>Niels Mayer</TD>
          <TD class="PlainText" NOWRAP><INPUT TYPE="CHECKBOX" NAME="CheckBox" VALUE="CheckBox">Developer</TD>
          <TD WIDTH="100%">&nbsp;</TD>
        </TR>
        <TR>
          <TD class="ProjectName" VALIGN="top"><A HREF="/servlets/UserEdit.html">brian</A></TD>
          <TD class="PlainText" VALIGN="top" NOWRAP>Brian Behlendorf</TD>
          <TD class="PlainText" NOWRAP><INPUT TYPE="CHECKBOX" NAME="CheckBox" VALUE="CheckBox">Content author<BR><INPUT TYPE="CHECKBOX" NAME="CheckBox" VALUE="CheckBox">Contractor</TD>
          <TD WIDTH="100%">&nbsp;</TD>
a34 3
<!-- commented out while servlet not functional -->   
#if (false)   
{   
d36 1
a36 1
  { 
d38 1
a38 1
          <TD class="ProjectName" VALIGN="top"><A HREF="/servlets/UserEdit.html">$user.getLoginID()</A></TD> 
a39 6
          <TD class="PlainText" NOWRAP>
  #foreach $role in $user.getRoles()
    {
            <INPUT TYPE="CHECKBOX" NAME="$user.getName()$role.getName()Check" VALUE="$role.getName()">$role.getName()</TD><BR>
    }
          <TD WIDTH="100%">&nbsp;</TD> 
a40 1
  }
d44 1
a44 1
          <TD COLSPAN="4"><INPUT TYPE="submit" NAME="add" VALUE="Add New Member or Role">&nbsp;&nbsp;<INPUT TYPE="submit" NAME="delete" VALUE="Delete Selected Roles"></TD>
a51 36
  <TR>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Group Projects:</TD>
    <TD WIDTH="100%">
      <TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="2">
        <TR>
          <TD class="ProjectDownloadHeader" bgcolor="#efefef">Delete</TD>
          <TD class="ProjectDownloadHeader" bgcolor="#efefef">Project</TD>
          <TD class="ProjectDownloadHeader" bgcolor="#efefef">Description</TD>
        </TR>

<!-- temporary static html -->
        <TR>
          <TD><INPUT TYPE="CHECKBOX" NAME="CheckBox" VALUE="CheckBox"></TD>
          <TD class="ProjectName" VALIGN="top"><A HREF="/servlets/UserEdit.html">argouml</A></TD>
          <TD class="PlainText" VALIGN="top">Project to build a free UML tool</TD>
        </TR>
        <TR>
          <TD><INPUT TYPE="CHECKBOX" NAME="CheckBox" VALUE="CheckBox"></TD>
          <TD class="ProjectName" VALIGN="top"><A HREF="/servlets/UserEdit.html">gef</A></TD>
          <TD class="PlainText" VALIGN="top">Java Graph Editing Framework</TD>
        </TR>
        <TR>
          <TD><INPUT TYPE="CHECKBOX" NAME="CheckBox" VALUE="CheckBox"></TD>
          <TD class="ProjectName" VALIGN="top"><A HREF="/servlets/UserEdit.html">joist</A></TD>
          <TD class="PlainText" VALIGN="top">Instrastructure for member-oriented web sites</TD>
        </TR>
        <TR>
          <TD><INPUT TYPE="CHECKBOX" NAME="CheckBox" VALUE="CheckBox"></TD>
          <TD class="ProjectName" VALIGN="top"><A HREF="/servlets/UserEdit.html">helm</A></TD>
          <TD class="PlainText" VALIGN="top">Web admin UI for tigris tool</TD>
        </TR>
        <TR>
          <TD><INPUT TYPE="CHECKBOX" NAME="CheckBox" VALUE="CheckBox"></TD>
          <TD class="ProjectName" VALIGN="top"><A HREF="/servlets/UserEdit.html">subversion</A></TD>
          <TD class="PlainText" VALIGN="top">Version control rethought</TD>
        </TR>
a52 28
<!-- commented out while servlet not functional -->   
#if (false)   
{   
#foreach $project in $currentGroup.getProjects() 
  { 
        <TR> 
          <TD><INPUT TYPE="CHECKBOX" NAME="$project.getName()" VALUE="$project.getName()"></TD> 
          <TD class="ProjectName" VALIGN="top"><A HREF="/servlets/ProjectEdit.html">$project.getName()</A></TD> 
          <TD class="PlainText" VALIGN="top">$project.getShortDecription()</TD>
        </TR> 
  }
}
        <TR>
          <TD COLSPAN="3"><INPUT TYPE="submit" NAME="deleteProjects" VALUE="Delete Selected Projects"></TD>
        </TR>
      </TABLE>
    </TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <TR>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Add New Project:</TD>
    <TD COLSPAN="4"><INPUT TYPE="TEXT" NAME="projectName" VALUE="$projectName" SIZE="25">&nbsp;&nbsp;<INPUT TYPE="submit" NAME="addProject" VALUE="Add New Project">&nbsp;&nbsp;<INPUT TYPE="submit" NAME="browseProjects" VALUE="Browse..."></TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
  </TR>
@


1.1
log
@First stab at UserGroups.
@
text
@a1 17
## <!-- $groupName -->  
## <!-- $description -->  
## <!-- $policyType: $policyType.equals() -->  
## <!-- $policyList -->  
## <!-- $pt -->  
## <!-- $groupType: $groupType.equals() --> 
## <!-- $groupList --> 
## <!-- $gt --> 
## <!-- $changeGroup: submit button form widget --> 
## <!-- $add, $delete: submit button form widgets -->
## <!-- $currentGroup: $currentGroup.getProjects() -->
## <!-- $project: $project.getName(), $project.getShortDecription() -->
## <!-- $deleteProjects: submit button form widgets -->
## <!-- $projectName -->
## <!-- $addProject: submit button form widget -->
## <!-- $browseProjects: submit button form widget --> 
## <!-- $deleteGroup: submit button form widget --> 
d3 1
a3 1
<FORM NAME="GroupEditForm" ACTION="default.cgi" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
a19 22
  <TR>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Member Policy:</TD>
      <select name="policyType">  
 
<!-- temporary static html --> 
        <option value="">Anyone may join</option>  
        <option value="">Approval required</option>  
        <option value="">Invitation only</option>  
 
<!-- wembacro commented out while servlet not functional --> 
#if (false) 
{ 
#foreach $pt in $policyList  
  {  
            <option value="$pt"  
  #if ($policyType.equals($pt))  
    {  
    selected  
    }  
                                        >$pt</option>  
  } 
} 
a20 3
      </select>
    </TD>
  </TR>
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d1 20
a20 2
<FORM NAME="UserGroupEditForm" ACTION="UserGroupEdit?userGroupID=$currentUserGroup.getID()" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<INPUT TYPE="hidden" NAME="userGroupID" VALUE="$currentUserGroup.getID()">
d24 2
a25 3
    <TD class="Header" nowrap>User Group Edit ($currentUserGroup.getName()): <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN></TD>
   <TD><a href="UserGroupList">User Group List</a></TD>
   </TR>
a27 5
#if ($acl.hasPermission("UserGroup Member - Delete", $currentDomain))
{
 #set $canRemove=1
}

d29 30
d60 29
a88 5
##Commented out until we can change user names.
##  <TR>
##    <TD class="InputHeader" VALIGN="top" NOWRAP>Group Name:</TD>
##    <TD COLSPAN="2"><INPUT TYPE="TEXT" NAME="name" VALUE="$currentUserGroup.getName()" SIZE="34"><BR> 
##  </TR>
d90 2
a91 3
  <TR>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Short Description:</TD>
    <TD COLSPAN="2" WIDTH="100%"><INPUT TYPE="TEXT" NAME="description" VALUE="$currentUserGroup.getDescription()" SIZE="34"></TD> 
d95 1
a95 1
    <TD><INPUT TYPE="submit" NAME="Button" VALUE="Submit Changes"></TD>
d98 1
a98 1
    <TD COLSPAN="2"><hr size="1" noshade></TD>
d107 2
a108 6
          <TD class="ProjectDownloadHeader" bgcolor="#efefef">
          #if ($canRemove && !$currentUserGroup.getUsers().isEmpty())
          {
	   Remove From Group
          }
          </TD>
d111 25
a135 2
       #foreach $user in $currentUserGroup.getUsers() 
       { 
d137 8
a144 6
          <TD class="ProjectName" VALIGN="top"><A HREF="UserEdit?userID=$user.getID()">$user.getLoginName()</A></TD> 
          <TD class="PlainText" VALIGN="top" NOWRAP>$user.getRealName()</TD> 
         #if ($canRemove)
         {
 	  <TD><INPUT TYPE="CHECKBOX" NAME="Remove $user.getID()"></TD>
         }
d146 3
a148 3
  <TR>
    <TD COLSPAN="6">
      <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
d150 1
a150 1
          <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
d155 12
d168 26
a193 9
       }

#if ($currentUserGroup.getUsers().isEmpty()) 
{
 <TR> 
  <TD class="PlainText" VALIGN="top">
    <I>There are no users in this group.</I>
  </TD>
 </TR>
d195 11
a206 2


d208 1
a208 7
         <TD CLASS="StatText" COLSPAN="2"><a href="UserGroupMemberAdd?userGroupID=$currentUserGroup.getID()">Add New User to Group</a></TD>
         <TD CLASS="StatText" COLSPAN="2">
         #if ($canRemove && !$currentUserGroup.getUsers().isEmpty())
         {
	   <INPUT TYPE="submit" NAME="Button" VALUE="Remove Members"></A>
         }
          ## TODO delete should be a button
a209 1

d214 8
a221 2
    <TD COLSPAN="2"><hr size="1" noshade></TD>

a222 1

d225 1
a225 2
    <TD COLSPAN="4" class="StatText"><A HREF="UserGroupDelete?userGroupID=$currentUserGroup.getID()">Delete Group</A></TD>
    ## TODO Delete shuld probably be a button
@


