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


1.17
date	2001.08.24.01.39.32;	author tfahrner;	state Exp;
branches;
next	1.16;

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.22.27.17;	author tfahrner;	state Exp;
branches;
next	1.10;

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

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

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

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

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

1.5
date	2001.06.11.22.16.19;	author beril;	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.17
log
@removed redundant task links
@
text
@<div id="usergroupedit" class="app">

 <h3>User Group Edit ($currentUserGroup.getName()): $currentDomain.getName()</h3>

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

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

#set( $users = $currentUserGroup.getUsers($itemsPerPage, $filter) )
#set( $page = $users.getPage($paginated_page) )
<div class="axial">
<table border="1" cellspacing="2" cellpadding="3">
 <tr>
  <th nowrap="nowrap">Short Description</th>
  <td><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>
</table>
</div>
<div id="groupelements">
<h3>Group Elements</h3>
#if( $page.isEmpty() )
  <p><strong class="alert"> #if( $noUsers )
There are no users 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">User</th>
 <th nowrap="nowrap">Real Name</th>
    #if( $canRemove && !$page.isEmpty() )
 <th nowrap="nowrap">Remove From Group</th>
    #end
 </tr>
#set ($rowClass="a")
 #foreach( $user in $page )
 <tr class="$rowClass">
  <td>
  #if( $acl.hasPermission("User - Edit", $user.getDomain()) )
   <a href="UserEdit?userID=$user.getID()">$user.getLoginName()</a>
  #else
   $user.getLoginName()
  #end
  </td>
  <td nowrap="nowrap">$user.getRealName()</td>
     #if( $canRemove )
  <td><input type="checkbox" name="Remove $user.getID()" /></td>
     #end
 </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
 #end
 #if( $canRemove )
  <tr>
   <td></td>
   <td></td>
   <td><input type="submit" name="Button" value="Remove Elements" /></td>
  </tr>
 #end
</table>
<p class="paginate">$users.navigationBar($currentProject.getProjectPageURL($servletName, "userGroupID=${currentUserGroup.getID()"), $paginated_page)}</p>
#end

#if( $acl.hasPermission("UserGroup Element - Add", $currentUserGroup.getDomain()) )
<p><a href="UserGroupElementAdd?userGroupID=$currentUserGroup.getID()">Add New User to Group</a></p>
#end
    
#if( !$noUsers )
 <form method="post" action="UserGroupEdit">
  #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
 </form>
#end
</div>
<div id="otheroptions">
#if( $acl.hasPermission("UserGroup - Delete", $currentUserGroup.getDomain()) )
  <h3>Other Options</h3>
  <ul>
   <li><a href="UserGroupDelete?userGroupID=$currentUserGroup.getID()">Delete Group</a></li>
  </ul>
#end
</div>
</form>

</div>
@


1.16
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@a0 1

a3 1
 <p class="affordance"><a href="UserGroupList">User Group List</a></p>
d34 2
a35 3
 #if( $noUsers )
  <p><strong class="alert">There are no users in this group.</strong>
</p>
d37 2
a38 1
  <p><strong class="alert">No matching users found.</strong>
a39 1
 #end
@


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>
d23 1
a23 1
  <th nowrap="nowrap">Short Description:</th>
d34 1
a34 1
<h3>Group Elements:</h3>
d97 1
a97 1
  <h3>Other Options:</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
@misc html usage revisions
@
text
@a0 1
#parse( "Admin_Nav.vm" )
d3 3
d35 1
a35 1
<div id="groupelements" class="app">
d97 1
a97 1
<div id="otheroptions" class="app">
@


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


1.9
log
@removed dependency on CSS for differentiation of alerts
@
text
@d3 1
a3 1
<div id="usergroupedit">
d21 1
a21 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
d33 1
a33 1
<div id="groupelements">
d45 1
a45 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
d95 1
a95 1
<div id="otheroptions">
@


1.8
log
@User deletes are now soft deletes which change the user type to 'deleted' (a minimal type of user which has user information but is not allowed associations with roles or user groups). Includes some other miscellaneous bug fixes.
@
text
@d37 2
a38 1
  <p class="alert">There are no users in this group.</p>
d40 2
a41 1
  <p class="alert">No matching users found.</p>
d105 1
a105 1
</div>@


1.7
log
@xhtml cleanup
@
text
@a21 8
 ##Commented out until we can change user names.
 ##<tr>
 ## <th>Group Name:</th>
 ## <td>
 ##  <input type="text" name="name" value="$currentUserGroup.getName()" 
 ##   size="34" />
 ## </td>
 ##</tr>
@


1.6
log
@converted some of the redundant <th> tags to <td>
@
text
@d20 1
a20 1

d36 1
a36 1
  <th></th>
d40 2
a41 1

d100 2
a101 1

d108 1
a108 1

@


1.5
log
@recoded according to new html/css standards
@
text
@d81 1
a81 1
   <th></th>
@


1.4
log
@fixed syntax errors
@
text
@d3 3
a5 1
<FORM NAME="UserGroupEditForm" ACTION="UserGroupEdit?userGroupID=$currentUserGroup.getID()" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
d7 2
a8 1
<INPUT TYPE="hidden" NAME="userGroupID" VALUE="$currentUserGroup.getID()">
d21 28
a48 11
<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>
d50 39
a88 1
<TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="2">
d90 9
a98 83
 ##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
      #end
     </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>
       #end
      </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()
        #end
       </TD> 
       <TD class="PlainText" VALIGN="top" NOWRAP>$user.getRealName()</TD> 
       #if( $canRemove )
        <TD><INPUT TYPE="CHECKBOX" NAME="Remove $user.getID()"></TD>
       #end
      </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" ALIGN="center" CLASS="PlainText">
       $users.navigationBar($currentProject.getProjectPageURL($servletName, "userGroupID=${currentUserGroup.getID()"), $paginated_page)}
      </TD>
     </TR>
    #end
d100 6
a105 6
    <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>
     #end
d107 1
a107 16
     #if( $canRemove && !$users.isEmpty() )
      <TD CLASS="StatText" COLSPAN="2">
       <INPUT TYPE="submit" NAME="Button" VALUE="Remove Elements">
      </TD>
     #end
    </TR>
   
    #if( !$noUsers )
     <TR>
      <TD COLSPAN="6">
       <FORM METHOD="post" ACTION="UserGroupEdit">
        #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
       </FORM>
      </TD>
     </TR>
    #end
d109 1
a109 18
   </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>
 #end
</TABLE>
</FORM>
@


1.3
log
@fixed broken args passing in templates made by conversion program
@
text
@d15 1
a15 1
#set( $users = $currentUserGroup.getUsers($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
@d15 1
a15 1
#set( $users = $currentUserGroup.getUsers($itemsPerPage, )$filter)
@


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

