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


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

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

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

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

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

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

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

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

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

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

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

1.7
date	2001.06.21.00.33.28;	author leonardr;	state Exp;
branches;
next	1.6;

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

1.5
date	2001.06.18.18.42.30;	author jefflove;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.14.20.40.58;	author neil;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.12.16.43.36;	author neil;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.25.01.24.03;	author dlr;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.23.02.03.13;	author dlr;	state Exp;
branches;
next	;


desc
@@


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


<h3>Administer Project: <a href="$currentProject.getProjectHome()">$currentProject.getWordMark()</a></h3>

<form name="ProjectEditForm" method="post" action="ProjectEdit">

<div class="axial">
<table border="1" cellspacing="2" cellpadding="3">
#if( $currentProject.isLocked() )  
 <tr>
  <td></td>
  <td>
  #if( $loginUser.isProjectOwner($currentProject) )
   <p><strong class="alert">
Your project is currently locked. This means your project's source repository, 
mailing lists, and issue tracker are disabled. Contact the site administrator 
immediately for further information.
   </strong>
</p>
  #else
   <p><strong class="alert">
    This project is currently disabled. Access to the project's source repository, mailing lists, and issue tracker is read-only. Until the project is reactivated, no project files or data can be modified.
   </strong>
</p>
  #end
  </td>
 </tr>
#end

 #set ($parents = $currentProject.getPotentialParents($acl))
 #set ($currentParentName = $currentProject.getParentProject().getNameWithParent())
 #if ($parents.size() >= 2)
  <tr>
   <th nowrap="nowrap">* Parent Project</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($currentParentName.equals($parentName))SELECTED#end>$parentName</option>
     #end
    </select>
    <p>Select the parent group for this project, or "Top-level"
       to make it a top-level project.</p>
   </td>
  </tr>
  #end

 <tr>      
  <th>Summary</th>
  <td>
   <input type="text" name="shortDescription" value="$currentProject.getShortDescription()" size="30" />
   <p>
    Enter a one-line project description without exceeding field length using
    text only, no html. This text appears in project listings viewed by
    registered users. Field may be edited at any time.
   </p>
  </td>
 </tr>
 <tr>      
  <th nowrap="nowrap">Description</th>
  <td>
   <textarea wrap="wrap" name="longDescription" rows="5" cols="60">$currentProject.getLongDescription()</textarea>
   <p>
    Summarize your project's mission, background, and plans to be viewed by
    registered site users. You can customize your project home page here by
    including html markup. Although this field may be edited at any time, the
    information should remain consistent.
   </p>
  </td>
 </tr>

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

 <tr>
  <th nowrap="nowrap">Use Project Home Page</th>
  <td>
   <input type="checkbox" name="useIndex"
     #if( $currentproject.useindex() )
           checked="checked"
     #end
    />
   <p>
    Check this box to use your project's www/index.html file as the project's description.  
    This is useful if you plan to have a complex home page.
   </p>
  </td>
 </tr>
 <tr>      
  <th nowrap="nowrap">Owners' Message</th>
  <td>
   <textarea wrap="wrap" name="status" rows="3" cols="60">$currentProject.getStatus()</textarea>
   <p>
    Describe the development status of this project. You may use HTML markup.
   </p>
  </td>
 </tr>

 #set ($licenses = $currentProject.getAvailableLicenses())
 #set ($myLicense = $currentProject.getLicense())
 #if ($myLicense)
  #if ($licenses.size() == 1)
   <tr><td><input name="license" value="$licenses.get(0).getID()"></td></tr>
  #else
   <tr>      
    <th nowrap="nowrap">
     <p>License:</p>
    </th>
    <td>   
     <select name="license">
      #foreach($l in $licenses)
       <option value="$l.getID()"#if($myLicense.equals($l))selected="selected"#end>$l.getName()</option>
      #end
     </select>
     <p>
      Designate a software license for your project. <a
      href="/servlets/LicenseList">Need more information on licenses?</a>
     </p> 
    </td>
   </tr>
  #end
 #end

 #set ($categories = $currentDomain.getCategories($acl))
 #if(!$currentProject.isCategory() && !$categories.isEmpty())
  <tr>
   <th nowrap="nowrap">Project Categories</th>
   <td>
    <select name="selectedCategories" size="#if($categories.size() < 10)$categories.size()#else 10#end" multiple="multiple">
     #foreach($ct in $categories)    

      #set ($selected=false)
      #foreach($selectedCategory in $selectedCategories)
       #if ($selectedCategory.equals($ct.getID()))
        #set ($selected=true)
       #end
      #end

      <option value="$ct.getID()" #if($selected) selected="selected" #end>
       $ct.getName()
      </option>
     #end
    </select>
    <p>
     Select one or more categories to determine where your project
     appears in project listings.  You can find descriptions on the
     category home page. You may also change categories at any
     time.
    </p>
   </td>
  </tr>
 #end

 <tr>
  <td></td>
  <td>
   <input type="submit" name="Button" value="Submit Changes" />
   <input type="submit" name="Button" value="Cancel" /> 
  </td>
 </tr>

  <tr>      
   <th><p>
Mailing Lists:
</p>
</th>
   <td>
    <ul>
    #set( $mailAddURL = $currentProject.getProjectPageURL("MailingListAdd") )
    #foreach( $ml in $currentProject.getMailingLists($loginUser.getACL()) )
     <li>
     #set( $mailEditURL = $currentProject.getProjectPageURL("MailingListEdit", "list=$ml.getListName()") )
     <a href="$mailEditURL">$ml.getListName()</a></li>
    #end
    <li>Add a <a href="$mailAddURL">new</a> mailing list.</li>
   </ul>
  </td>
 </tr>

  #if( $acl.hasPermission("Project - Delete", $currentProject) || $acl.hasPermission("Project - Lock", $currentProject) )
 <tr>
  <th nowrap="nowrap"><p>
Other Operations:
</p>
</th>
  <td>
  #end

  #if( $currentProject.isDeletableBy($acl) )
   <p>
    <a href="$currentProject.getProjectPageURL("ProjectDelete")">Delete Project</a>
   </p>
   <p>
    <a href="/servlets/ProjectQuotaEdit">Edit Project Quotas</a>
   </p>

 #end
  #if( $acl.hasPermission("Project - Lock", $currentProject) )
   <a href="$currentProject.getProjectPageURL("ProjectLocked")">
   #if( $currentProject.isLocked() )
    Unlock
     #else
    Lock
   #end
   Project</a>
  #end

  #if( $acl.hasPermission("Project - Delete", $currentProject) || $acl.hasPermission("Project - Lock", $currentProject) )
  </td>
 </tr>
  #end

</table>
</div>

</form>

</div>
@


1.17
log
@Link to license list instead of to nonexistant page.
@
text
@a1 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d35 1
a35 1
   <th nowrap="nowrap">* Parent Project:</th>
d54 1
a54 1
  <th>Summary:</th>
d65 1
a65 1
  <th nowrap="nowrap">Description:</th>
d78 1
a78 1
  <th nowrap="nowrap">Public Project:</th>
d89 1
a89 1
  <th nowrap="nowrap">Use Project Home Page:</th>
d103 1
a103 1
  <th nowrap="nowrap">Owners' Message:</th>
d140 1
a140 1
   <th nowrap="nowrap">Project Categories:</th>
@


1.16
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@d133 1
a133 2
      href="/project/www/docs/ProjectAddStep2.html">Need more
      information on licenses?</a>
@


1.15
log
@included "task nav" below headlines
@
text
@a4 3
#if( !$loginUser.isAnonymous() && $servletTaskBar.available($servletName))
#parse("$servletTaskBar.getPath($servletName)")
#end
@


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


1.13
log
@misc html usage revisions
@
text
@d2 3
@


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

@


1.11
log
@removed dependency on CSS for differentiation of alerts
@
text
@d1 1
a1 1
<div id="projectedit">
d8 1
a8 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.10
log
@Limit category list box size to 10 items.
@
text
@d15 1
a15 1
   <p class="alert">
d19 2
a20 1
   </p>
d22 1
a22 1
   <p class="alert">
d24 2
a25 1
   </p>
@


1.9
log
@Enabled nested projects for regular projects.
@
text
@d141 1
a141 1
    <select name="selectedCategories" size="10" multiple="multiple">
@


1.8
log
@Licenses are now contained in a database-managed table rather than in a custom Java class (yay!)
@
text
@a9 5
  ##Taken out until the scripts can handle a change in project name.
  ##  <tr>      
  ##    <th>Project Name:</th>
  ##    <td><input type="text" name="projectName" value="$currentProject.getWordMark()" size="15" /><p>(use characters a-z, A-Z, 0-9, and dash as any character but the first; no spaces or other punctuation)</p></td>
  ##  </tr>
d29 22
d103 1
a103 1
   <textarea wrap="wrap" name="status" rows="3" cols="30">$currentProject.getStatus()</textarea>
d109 1
a109 10
  ##  <tr>      
  ##  	<th>URL Alias:</th>
  ##  	<td><input type="text" name="url" value="$currentProject.getAliasUrl()" size="30" />
  ##          
  ## <p>If you own a domain name, enter it here to be redirected to our servers. Your project pages will be displayed through this URL. Whether or not you use your own domain, your project is assigned a PROJECTNAME.HOSTNAME.[net?] URL.</p>
  #### TODO: need link to info on our servers, e.g., IP address
  ##
  ##    </td>
  ##
  ##</tr>
a168 1
   <input type="hidden" name="projectID" value="$currentProject.getID()" />
@


1.7
log
@Removed vestiges of old publicness system and fixed new publicness system.
@
text
@d102 25
a126 19
 <tr>      
  <th nowrap="nowrap"><p>
License:
</p>
</th>
  <td>
   <select name="license">
    #foreach( $l in $licenseList )
     <option value="$l"#if( $currentproject.getlicense().equals($l) )selected="selected"#end>
      $l
     </option>
    #end
   </select>
   </p>
   <p>
    Designate a software license for your project. <a href="/project/www/docs/ProjectAddStep2.html">Need more information on licenses?</a>
   </p> 
  </td>
 </tr>
a128 1
 ## categories cannot be nested right now
@


1.6
log
@Projects can now belong to more than one category.
@
text
@d61 1
a61 5
   <input type="checkbox" name="isPublic"
     #if( $currentproject.ispublic() )
           checked="checked"
     #end
    />
d108 7
a114 22
   <p>
   <input type="radio" name="licenseType" value="private"
#if( $currentproject.getlicense().equals("Proprietary") )
                 checked="checked"
#end
          />&nbsp;Private&nbsp;
   </p>
   <p>
	  <input type="radio" name="licenseType" value="public"
#if( !$currentproject.getlicense().equals("Proprietary") )
                 checked="checked"
#end
          />&nbsp;Public:&nbsp
          <select name="license">
#foreach( $l in $licenseList )
  	    <option value="$l"
  #if( $currentproject.getlicense().equals($l) )
    selected="selected"
  #end
     >$l</option>
#end
  	  </select>
@


1.5
log
@html usage revisions
@
text
@d141 8
a148 1
  ## categories cannot be nested right now
d150 5
a154 20
  #if( !$currentProject.isCategory() )
 <tr>      
  <th>Project Category:</th>
  <td>
     ## This is how you get the current chosen category.
     ## 
     #set( $list = $currentProject.getCategories() )
     #if( $list.isEmpty() )
      #set( $currentCategory = "" )
         #else
      #set( $currentCategory = $list.get(0).getName() )
     #end         
   
     <select name="projectCategory">
      #foreach( $ct in $currentDomain.getCategories($acl) )
       <option value="$ct.getID()"
        #if( $currentcategory.equals($ct.getname()) )
         selected="selected"
        #end
       >$ct.getName()</option>
d156 15
a170 7
     </select>
     <p>
	  Select a category to determine where your project appears in project listings. You can find descriptions on category home pages. You may also change categories at any time.
	 </p> 
    </td>
   </tr>
  #end
@


1.4
log
@ui recode: adding axial class
@
text
@d107 4
a110 1
  <th nowrap="nowrap">License:</th>
d182 4
a185 1
   <th>Mailing Lists:</th>
d201 4
a204 1
  <th nowrap="nowrap">Other Operations:</th>
d237 1
a237 1
</div>@


1.3
log
@ui recoded
@
text
@d7 1
d224 1
@


1.2
log
@Corrected VTL syntax error(s).
@
text
@d1 7
a7 9
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
 <TR>
  <TD class="Header" nowrap>Administer Project: 
   <SPAN CLASS="ProjectNameHeader">
    <A HREF="$currentProject.getProjectHome()">$currentProject.getWordMark()</a>
   </SPAN>
  </TD>
 </TR>
</TABLE>
a8 2
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0">
 <FORM name="ProjectEditForm" method="post" action="ProjectEdit">
d10 4
a13 4
  ##  <TR>      
  ##    <TD class="InputHeader" VALIGN="top">Project Name:</TD>
  ##    <TD class="PlainText"  VALIGN="top"><input type="text" name="projectName" value="$currentProject.getWordMark()" size="15"><BR>(use characters a-z, A-Z, 0-9, and dash as any character but the first; no spaces or other punctuation)</TD>
  ##  </TR>
d15 3
a17 3
  <TR>
   <TD></TD>
   <TD class="InputHeader" VALIGN="top" >
d19 1
d23 1
d25 3
a27 1
  This project is currently disabled. Access to the project's source repository, mailing lists, and issue tracker is read-only. Until the project is reactivated, no project files or data can be modified.
d29 2
a30 3
<P>
</TD>
 </TR>
d33 5
a37 5
  <tr>      
   <td class="InputHeader" valign="top">Summary:</td>
   <td class="PlainText" valign="top">
    <input type="text" name="shortDescription"
           value="$currentProject.getShortDescription()" size="30"><BR>
d41 8
a48 6
   </td>
  </tr>
  <tr>      
   <td class="InputHeader" valign="top">Description:</td>
   <td class="PlainText" valign="top">
    <textarea wrap="virtual" name="longDescription" rows="5" cols="60">$currentProject.getLongDescription()</textarea><br>
d53 10
a62 9
   </td>
  </tr>

  <TR>
   <TD class="InputHeader" VALIGN="top" NOWRAP>Public Project:</TD>
   <TD class="PlainText" VALIGN="top">
    <input type="checkbox" name="isPublic"
     #if( $currentProject.isPublic() )
           checked
d64 2
a65 1
    ><BR>
d67 11
a77 9
    site at large.<BR>
  </TR>

  <TR>
   <TD class="InputHeader" VALIGN="top" NOWRAP>Use Project Home Page:</TD>
   <TD class="PlainText" VALIGN="top">
    <input type="checkbox" name="useIndex"
     #if( $currentProject.useIndex() )
           checked
d79 2
a80 1
    ><BR>
d82 18
a99 11
    This is useful if you plan to have a complex home page. </TD>
  </TR>
  <TR>      
   <TD class="InputHeader" VALIGN="top">Owners' Message:</TD>
   <TD class="PlainText"  VALIGN="top"><textarea wrap="virtual" name="status" rows="3" cols="30">$currentProject.getStatus()</textarea><BR>Describe the development status of this project. You may use HTML markup.</TD>
  </TR>
  ##  <TR>      
  ##  	<TD class="InputHeader" VALIGN="top">URL Alias:</TD>
  ##  	<TD class="PlainText"  VALIGN="top"><input type="text" name="url" value="$currentProject.getAliasUrl()" size="30">
  ##          <BR>
  ## If you own a domain name, enter it here to be redirected to our servers. Your   project pages will be displayed through this URL. Whether or not you use your   own domain, your project is assigned a PROJECTNAME.HOSTNAME.[net?] URL. 
d102 1
a102 1
  ##    </TD>
d104 8
a111 7
  ##</TR>
  <TR>      
  	<TD class="InputHeader" VALIGN="top" NOWRAP>License:</TD>
  	<TD class="PlainText" VALIGN="top">
	  <INPUT TYPE="radio" NAME="licenseType" VALUE="private"
#if( $currentProject.getLicense().equals("Proprietary") )
                 CHECKED
d113 6
a118 5
          >&nbsp;Private&nbsp;
	  <BR>
	  <INPUT TYPE="radio" NAME="licenseType" VALUE="public"
#if( !$currentProject.getLicense().equals("Proprietary") )
                 CHECKED
d120 1
a120 1
          >&nbsp;Public:&nbsp
d124 2
a125 2
  #if( $currentProject.getLicense().equals($l) )
    selected
d127 1
a127 1
                                        >$l</option>
d130 6
a135 4
          <br>
           Designate a software license for your project.  <a href="/project/www/docs/ProjectAddStep2.html">
          <BR>Need more information on licenses?</a></TD>
  </TR>
d140 3
a142 3
   <TR>      
    <TD class="InputHeader" VALIGN="top">Project Category:</TD>
    <TD class="PlainText" VALIGN="top">
d155 2
a156 2
        #if( $currentCategory.equals($ct.getName()) )
         selected
d161 20
a180 17
     <br>Select a category to determine where your project appears in proj\ect listings.  You can find descriptions on category home pages. You may also c\hange categories at any time. 
    </TD>
   </TR>
  #end

  <TR>
   <TD></TD>
   <TD>
    <INPUT type="hidden" name="projectID" value="$currentProject.getID()">
    <INPUT TYPE="submit" NAME="Button" VALUE="Submit Changes">
    <INPUT TYPE="submit" NAME="Button" VALUE="Cancel"> 
   </TD>
  </TR>

  <TR>      
   <TD class="InputHeader" VALIGN="top">Mailing Lists:</TD>
   <TD class="PlainText" VALIGN="top">
d185 1
a185 1
     <a HREF="$mailEditURL">$ml.getListName()</a>
d187 4
a190 3
    <li>Add a <a HREF="$mailAddURL">new</a> mailing list.
   </TD>
  </TR>
d193 3
a195 6
   <TR>
     <TD COLSPAN="2"><HR SIZE="1" NOSHADE></TD>
   </TR>
   <TR>
    <TD CLASS="InputHeader" valign="TOP" NOWRAP>Other Operations:</TD>
    <TD CLASS="StatText">
d199 6
a204 3
     <A HREF="$currentProject.getProjectPageURL("ProjectDelete")>Delete Project</A><br>
 
<a href="/servlets/ProjectQuotaEdit">Edit Project Quotas</a><br>
d208 1
a208 1
   <A HREF="$currentProject.getProjectPageURL("ProjectLocked")">
d214 1
a214 1
   Project</A>
d218 2
a219 2
    </TD>
   </TR>
d221 6
a226 2
 </form>
</TABLE>
@


1.1
log
@Adding Velocity templates.
@
text
@d164 1
a164 1
     #set( $mailEditURL = "$currentProject.getProjectPageURL("MailingListEdit", )"list=$ml.getListName()")"
d187 1
a187 1
   <A HREF="$currentProject.getProjectPageURL("ProjectLocked")>
@

