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


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

1.8
date	2001.08.03.05.45.05;	author tfahrner;	state Exp;
branches;
next	1.7;

1.7
date	2001.08.03.04.44.22;	author tfahrner;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.31.01.18.38;	author tfahrner;	state Exp;
branches;
next	1.5;

1.5
date	2001.07.31.00.01.54;	author tfahrner;	state Exp;
branches;
next	1.4;

1.4
date	2001.07.30.21.59.21;	author tfahrner;	state Exp;
branches;
next	1.3;

1.3
date	2001.07.30.21.24.23;	author tfahrner;	state Exp;
branches;
next	1.2;

1.2
date	2001.06.29.22.26.24;	author jefflove;	state Exp;
branches;
next	1.1;

1.1
date	2001.06.29.00.57.50;	author leonardr;	state Exp;
branches;
next	;


desc
@@


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

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

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

#if($projects.isEmpty())
 #set($noProjects=true)
#end
<form name="CategoryEditForm" action="CategoryEdit?categoryID=$currentCategory.getID()" method="post" enctype="application/x-www-form-urlencoded">
 <input type="hidden" name="categoryID" value="$currentCategory.getID()" />
<p>* Required fields.</p>
<div class="axial">
<table border="1" cellspacing="2" cellpadding="3">
  #set ($parents = $currentCategory.getPotentialParents($acl))
  #set ($currentCategoryParentName = $currentCategory.getParentProject().getNameWithParent())
  #if ($parents.size() >= 2)
   <tr>
    <th nowrap="nowrap">* Parent Category</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($currentCategoryParentName.equals($parentName))
selected="selected"
#end>$parentName</option>
      #end
     </select>
     <p>Select the parent category for this category, or "Top-level"
	to make it a top-level category.</p>
    </td>
   </tr>
  #end
 <tr>      
  <th nowrap="nowrap">Summary</th>
  <td><input type="text" name="shortDescription" value="$currentCategory.getShortDescription()" size="30" maxlength="128" />
      <p>Enter a one-line summary of the category.</p>
  </td>
 </tr>
 <tr>      
  <th nowrap="nowrap">Description</th>
  <td><textarea wrap="wrap" name="longDescription" rows="5" cols="40">$currentCategory.getLongDescription()</textarea>
      <p>Describe the category in more detail here.</p>
  </td>
 </tr>

  <tr>
   <th nowrap="nowrap">Public Category</th>
   <td>
    <input type="checkbox" name="isPublic"
     #if($isPublic)checked="checked"#end />
    <p>Check this box to make this category publically viewable to the site at large.</p>
   </td>
  </tr>

 <tr>
  <td></td>
  <td><input type="submit" name="Button" value="Submit Changes" /></td>
 </tr>
</table>
</div>
<div id="categoryelements">
 <h3>Category Elements</h3>
 
#if( $page.isEmpty() )
 <p><strong class="alert">
 #if( $noProjects )
        There are no projects in this category.
  #else
        No matching projects found.
  #end
  </strong></p>
  <p><a href="CategoryElementAdd?categoryID=$currentCategory.getID()">Add New Project to Category</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 Category</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="CategoryElementAdd?categoryID=$currentCategory.getID()">Add New Project to Category</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="CategoryEdit">
 #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
</form>
#end

<div id="otheroptions">
<h3>Other Options</h3>
<ul>
 <li><a href="ProjectMemberList?projectID=$currentCategory.getID()">View User Roles in this Category</a></li>
 <li><a href="ProjectMemberAdd?projectID=$currentCategory.getID()">Grant User Roles in this Category</a></li>
 <li><a href="CategoryDelete?categoryID=$currentCategory.getID()">Delete Category</a></li>
</ul>
</div>
</div>
@


1.8
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 Category:</th>
d44 1
a44 1
  <th nowrap="nowrap">Summary:</th>
d50 1
a50 1
  <th nowrap="nowrap">Description:</th>
d57 1
a57 1
   <th nowrap="nowrap">Public Category:</th>
@


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


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


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


1.4
log
@html usage revision to synch with scarab
@
text
@a0 1
#parse( "Admin_Nav.vm" )
d3 3
d73 1
a73 1
<div id="categoryelements" class="app">
d129 1
a129 1
<div id="otheroptions" class="app">
@


1.3
log
@removed dependency on CSS for differentiation of alerts
@
text
@d3 1
a3 1
<div id="categoryedit">
d19 1
a19 1
<table border="0" cellspacing="0" cellpadding="2">
d71 1
a71 1
<div id="categoryelements">
d84 1
a84 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
d127 1
a127 1
<div id="otheroptions">
@


1.2
log
@made output valid; tweaked html usage
@
text
@d75 1
a75 1
 <p class="alert"> 
d81 1
a81 1
  </p>
@


1.1
log
@Implemented basic project group and category nesting.
@
text
@a14 1

d17 1
d19 1
a19 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
d26 1
a26 1
     <select name="parent" size="1"/>
d33 3
a35 1
       <option value="$parent.getID()" #if($currentCategoryParentName.equals($parentName))SELECTED#end>$parentName</option>
d75 3
a77 2
  #if( $noProjects )
        <p class="alert">There are no projects in this category.</p>
d79 1
a79 1
        <p class="alert">No matching projects found.</p>
d81 1
d135 1
a135 1
</div>@

