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


1.18
date	2001.08.20.22.29.21;	author tfahrner;	state Exp;
branches;
next	1.17;

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

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

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

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

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

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

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

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

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

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

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

1.6
date	2001.06.12.16.40.18;	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.18
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@
<div id="projectgroupedit" class="app">

 <h3>Project Group Edit ($currentProjectGroup.getName()): $currentDomain.getName()</h3>
#if( $acl.hasPermission("Project - Associate Project", $currentDomain) )
 #set( $canRemove = 1 )
#end

#set($projects=$currentProjectGroup.getAssociatedProjects($itemsPerPage, $filter, $acl))
#set($page=$projects.getPage($paginated_page))

#if($projects.isEmpty())
 #set($noProjects=true)
#end

<form name="ProjectGroupEditForm" action="ProjectGroupEdit?projectGroupID=$currentProjectGroup.getID()" method="post" enctype="application/x-www-form-urlencoded">
 <input type="hidden" name="projectGroupID" value="$currentProjectGroup.getID()" />
<div class="axial">
<table border="1" cellspacing="2" cellpadding="3">
  #set ($parents = $currentProjectGroup.getPotentialParents($acl))
  #set ($currentGroupParentName = $currentProjectGroup.getParentProject().getNameWithParent())
  #if ($parents.size() >= 2)
   <tr>
    <th nowrap="nowrap">* Parent Group</th>
    <td>
     <select name="parent" size="1"/>
      #foreach ($parent in $parents)
       #if($parent.isDomain())
        #set($parentName="Top-level")
       #else
        #set($parentName=$parent.getNameWithParent())
       #end
       <option value="$parent.getID()" #if($currentGroupParentName.equals($parentName))SELECTED#end>$parentName</option>
      #end
     </select>
     <p>Select the parent group for this group, or "Top-level"
	to make it a top-level group.</p>
    </td>
   </tr>
  #end
 <tr>      
  <th nowrap="nowrap">Summary</th>
  <td><input type="text" name="shortDescription" value="$currentProjectGroup.getShortDescription()" size="30" maxlength="128" />
      <p>Enter a one-line summary of the group.</p>
  </td>
 </tr>
 <tr>      
  <th nowrap="nowrap">Description</th>
  <td><textarea wrap="wrap" name="longDescription" rows="5" cols="40">$currentProjectGroup.getLongDescription()</textarea>
      <p>Describe the group in more detail here.</p>
  </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() )
  #if( $noProjects )
        <p><strong class="alert">There are no projects in this group.</strong></p>
  #else
        <p><strong class="alert">No matching projects found.</strong></p>
  #end
  <p><a href="ProjectGroupElementAdd?projectGroupID=$currentProjectGroup.getID()">Add New Project to Group</a></p>
#else
<table border="1" cellspacing="2" cellpadding="3" width="100%">
 <tr>
  <th nowrap="nowrap">Project</th>
  <th nowrap="nowrap">Summary</th>
 #if( $canRemove )
  <th nowrap="nowrap">Remove From Group</th>
 #end
 </tr>
 #set ($rowClass="a")
 #foreach( $project in $page )
 <tr class="$rowClass">
  <td><a href="$project.getProjectPageURL("ProjectEdit")">$project.getName()</a></td>
  <td nowrap="nowrap">$project.getShortDescription()</td> 
  #if( $canRemove )
   <td><input type="checkbox" name="Remove $project.getID()" /></td>
  #end
 </tr>
  #if ($rowClass.equals("a"))
   #set ($rowClass="b")
  #else 
   #set ($rowClass="a")
  #end

  #end

 <tr>
  <td></td>
  <td><a href="ProjectGroupElementAdd?projectGroupID=$currentProjectGroup.getID()">Add New Project to Group</a></td>
 #if( $canRemove && !$page.isEmpty() )
  <td><input type="submit" name="Button" value="Remove Elements" /></td>
 #end
 </tr>
 </table>
#end
</div>
</form>

#if( !$noProjects )
<form method="post" action="ProjectGroupEdit">
 #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
</form>
#end
<div id="otheroptions">
<h3>Other Options</h3>
<ul>
 <li><a href="ProjectMemberList?projectID=$currentProjectGroup.getID()">View User Roles in this Group</a></li>
 <li><a href="ProjectMemberAdd?projectID=$currentProjectGroup.getID()">Grant User Roles in this Group</a></li>
 <li><a href="ProjectGroupDelete?projectGroupID=$currentProjectGroup.getID()">Delete Group</a></li>
</ul>
</div>
</div>
@


1.17
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>
d24 1
a24 1
    <th nowrap="nowrap">* Parent Group:</th>
d42 1
a42 1
  <th nowrap="nowrap">Summary:</th>
d48 1
a48 1
  <th nowrap="nowrap">Description:</th>
@


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


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


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


1.13
log
@misc html usage revisions
@
text
@a0 1
#parse( "Admin_Nav.vm" )
d3 3
d61 1
a61 1
<div id="groupelements" class="app">
d114 1
a114 1
<div id="otheroptions" class="app">
@


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


1.11
log
@removed dependency on CSS for differentiation of alerts
@
text
@d3 1
a3 1
<div id="projectgroupedit">
d19 1
a19 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
d59 1
a59 1
<div id="groupelements">
d70 1
a70 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
d112 1
a112 1
<div id="otheroptions">
@


1.10
log
@Implemented basic project group and category nesting.
@
text
@d64 1
a64 1
        <p class="alert">There are no projects in this group.</p>
d66 1
a66 1
        <p class="alert">No matching projects found.</p>
d120 1
a120 1
</div>@


1.9
log
@Filter destination was the wrong servlet.
@
text
@d5 1
a5 1
#if( $acl.hasPermission("ProjectGroup Element - Delete", $currentDomain) )
d9 5
a13 2
#if( $currentProjectGroup.getProjects($acl).isEmpty() )
 #set( $noProjects = true )
a15 3
#set( $projects = $currentProjectGroup.getProjects($itemsPerPage, $filter, $acl))
#set( $page = $projects.getPage($paginated_page) )

d20 21
a40 5
 ##Commented out until we can change project names.
 ##<tr>
 ## <th nowrap="nowrap">Group Name:</th>
 ## <td><input type="text" name="name" value="$currentProjectGroup.getName()" size="34" /></td>
 ##</tr>
a50 10
  </td>
 </tr>
 <tr>      
  <th nowrap="nowrap">Category:</th>
  <td><input type="checkbox" name="isCategory"
   #if( $currentProjectGroup.getType().equals("category") )
    checked="checked"
   #end
    />
    <p>If checked, this group will be created a category rather than a regular project group.</p>
@


1.8
log
@xhtml cleanup
@
text
@d102 1
a102 1
<form method="post" action="UserGroupEdit">
@


1.7
log
@converted some of the redundant <th> tags to <td>
@
text
@d18 1
d52 2
a53 1

d98 1
d106 1
a106 1

d113 1
@


1.6
log
@added a missing link to add group element
@
text
@d47 1
a47 1
  <th></th>
d88 1
a88 1
  <th></th>
@


1.5
log
@recoded according to new html/css standards
@
text
@d54 1
a54 1
 #if( $page.isEmpty() )
d60 1
@


1.4
log
@fixed syntax errors
@
text
@d3 2
a4 7

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Project Group Edit ($currentProjectGroup.getName()): <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN></TD>
   </TR>
</TABLE>

d16 3
a18 5
<TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="2">
<FORM NAME="ProjectGroupEditForm" ACTION="ProjectGroupEdit?projectGroupID=$currentProjectGroup.getID()" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<INPUT TYPE="hidden" NAME="projectGroupID" VALUE="$currentProjectGroup.getID()">


d20 19
a38 25
 ##<TR>
 ## <TD class="InputHeader" VALIGN="top" NOWRAP>Group Name:</TD>
 ## <TD COLSPAN="2">
 ##  <INPUT TYPE="TEXT" NAME="name" VALUE="$currentProjectGroup.getName()" 
 ##   SIZE="34"><BR> 
 ## </TD>
 ##</TR>

 <TR>      
  <TD class="InputHeader" VALIGN="top">Summary:</TD>
  <TD class="PlainText"  VALIGN="top">
   <input type="text" name="shortDescription" 
    value="$currentProjectGroup.getShortDescription()" size="30" 
    maxlength="128">
   <BR>Enter a one-line summary of the group.
  </TD>
 </TR>
 <TR>      
  <TD class="InputHeader" VALIGN="top">Description:</TD>
  <TD class="PlainText"  VALIGN="top"><textarea wrap="virtual" name="longDescription" rows="5" cols="40">$currentProjectGroup.getLongDescription()</textarea><BR>Describe the group in more detail here.</TD>
 </TR>

  <TR>      
   <TD class="InputHeader" VALIGN="top">Category:</TD>
   <TD class="PlainText"  VALIGN="top"><input type="checkbox" name="isCategory"
d40 1
a40 1
    CHECKED
d42 60
a101 2
   ><br>If checked, this group will be created a category rather than a regular project group.</TD>
  </TR>
d103 7
a109 95
 <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">Project</TD>
     <TD class="ProjectDownloadHeader" bgcolor="#efefef">Real Name</TD>
     #if( $canRemove )
      <TD class="ProjectDownloadHeader" bgcolor="#efefef">
       Remove From Group
      </TD>
     #end
    </TR>

    #if( $page.isEmpty() )
     <TR> 
      <TD class="PlainText" VALIGN="top">
       #if( $noProjects )
        <I>There are no projects in this group.</I>
       #else
        <I>No matching projects found.</I>
       #end
      </TD>
     </TR>  
    #else
     #foreach( $project in $page )
      <TR> 
       <TD class="ProjectName" VALIGN="top">
        <A HREF="$project.getProjectPageURL("ProjectEdit")">$project.getName()</A>
       </TD> 
       <TD class="PlainText" VALIGN="top" NOWRAP>$project.getShortDescription()</TD> 
       #if( $canRemove )
        <TD><INPUT TYPE="CHECKBOX" NAME="Remove $project.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
    #end

    <TR>
     <TD CLASS="StatText" COLSPAN="2">
      <a href="ProjectGroupElementAdd?projectGroupID=$currentProjectGroup.getID()">Add New Project to Group</a>
     </TD>
     <TD CLASS="StatText">
     #if( $canRemove && !$page.isEmpty() )
      <INPUT TYPE="submit" NAME="Button" VALUE="Remove Elements"></A>
     #end
    </TR>
</FORM>

    #if( !$noProjects )
     <TR>
      <TD COLSPAN="6">
       <FORM METHOD="post" ACTION="UserGroupEdit">
        #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
       </FORM>
      </TD>
     </TR>
    #end

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

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

 <TR>
  <TD VALIGN="TOP" class="InputHeader" NOWRAP>Other Options:</TD>
  <TD class="StatText">
   &#149; <A HREF="ProjectMemberList?projectID=$currentProjectGroup.getID()">View User Roles in this Group</A><br><br>
   &#149; <A HREF="ProjectMemberAdd?projectID=$currentProjectGroup.getID()">Grant User Roles in this Group</A><br><br>
   &#149; <A HREF="ProjectGroupDelete?projectGroupID=$currentProjectGroup.getID()">Delete Group</A>
  </TD>
 </TR>
</TABLE>
@


1.3
log
@fixed broken args passing in templates made by conversion program
@
text
@d18 1
a18 1
#set( $projects = $currentProjectGroup.getProjects($itemsPerPage, $filter, $acl)
@


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( $projects = $currentProjectGroup.getProjects($itemsPerPage, )$filter, $acl)
@


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

