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


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

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

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

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

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

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

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

1.5
date	2001.07.30.22.27.17;	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.26.19.17.29;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2001.07.24.18.52.21;	author leonardr;	state Exp;
branches;
next	1.1;

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


desc
@@


1.12
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@#set($projectType="base")
<div id="projectadd" class="app">


<h3>Create New Project: $currentDomain.getName()</h3>

<p>* Required Fields</p>

<form method="post" action="ProjectAdd">
 <div class="axial">
<table border="1" cellspacing="2" cellpadding="3">
  <tr>
   <th nowrap="nowrap">* <a href="/project/www/docs/ProjectAdd.html#ProjectNameField">Project Name</a></th>
  <td>
   <input type="text" name="newProjectName" value="$newProjectName"size="20" maxlength="64" />
   <p>Identify your project with a one-word name displayed in all project listings. Use characters a-z (mixed case okay), 0-9, and dash (though not as first or last character); no spaces, underscores, or other punctuation. The project name cannot be changed, so choose wisely.</p>
  </td>
 </tr>

 <tr>
  #set ($parents = $currentDomain.getPotentialParents($acl, $projectType))
  #if ($parents.size() < 2)
   <td><input type="hidden" name="parent" value="$currentDomain.getID()"></td>
  #else
   <th nowrap="nowrap">* Parent Project</th>
   <td>
    <select name="parent" size="1">
     #foreach ($parent in $parents)
      #if($parent.isDomain())
       #set($parentName="New top-level")
      #else
       #set($parentName=$parent.getNameWithParent())
      #end
      <option value="$parent.getID()" #if($parent.equals($parentName))SELECTED#end>$parentName</option>
     #end
    </select>
    <p>Select this project's parent, or "New top-level"
       to make a new top-level project.</p>
    </td>
   </tr>
  #end

 <tr>
  <th nowrap="nowrap">* <a href="/project/www/docs/ProjectAdd.html#SummaryField">Summary</a></th>
  <td>
   <input type="text" name="shortDescription" value="$shortDescription" size="30" maxlength="64" />
   <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. This field may be edited at any time.</p>
  </td>
 </tr>

 <tr>
  <th nowrap="nowrap"><a href="/project/www/docs/ProjectAdd.html#DescriptionField">Description</a></th>
  <td>
   <textarea name="longDescription" rows="5" cols="40" wrap="wrap">$longDescription</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>

 #set ($categories = $currentDomain.getCategories($acl))
 #if (!$categories.isEmpty()) 
  <tr>
   <th nowrap="nowrap">
    <a href="/project/www/docs/ProjectAddStep2.html#ProjectCategoryField">Project Categories</a>:
   </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

 #set ($licenses = $currentProject.getAvailableLicenses())
 #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($license.equals($l.getID()))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

 <tr>
  <th nowrap="nowrap">Public Project</th>
  <td>
   <input type="hidden" name="seen" value="true" />    
   <input type="checkbox" name="isPublic"
     #if( !($isPublic.equals("")) || !($screen2Seen.equals("true")) )
           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</th>
  <td>
   <input type="checkbox" name="useIndex"
#if( !$useIndex.equals("") )
             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.  This setting can be changed at any time.</p>
  </td>
 </tr>

 #if( $acl.hasPermission("Project - Approve", $currentDomain) )
  <tr>      
   <th nowrap="nowrap">Project Owner</th>
   <td>
    <input type="text" maxlength="64" name="projectOwner" value=#if( $projectOwner )"$projectOwner"#else"$loginUser.getLoginName()"#end size="30" />
    <p>This field automatically defaults to your login ID but you may enter another user's login ID to identify them as the project owner. The project owner's name is not published on the project home page, unless it is included as part of the text description.</p>
   </td>
  </tr>
 #end

   <tr>
    <td></td>
    <td>
     <input type="submit" name="Button" value="Create Project" />
     </td>
   </tr>

#if( !$acl.hasPermission("Project - Approve", $currentDomain) )
   <tr>      
    <th>Note</th>      
    <td>Once you create your project, it must be approved by the site moderators before it will be accessible to other users.</td>
  </tr>      
#end

  </table>
</div>
</form>

</div>
@


1.11
log
@Corrected lingering links from multi-step project add days.
@
text
@a0 1
#parse( "Admin_Nav.vm" )
a2 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d13 1
a13 1
   <th nowrap="nowrap">* <a href="/project/www/docs/ProjectAdd.html#ProjectNameField">Project Name</a>:</th>
d25 1
a25 1
   <th nowrap="nowrap">* Parent Project:</th>
d44 1
a44 1
  <th nowrap="nowrap">* <a href="/project/www/docs/ProjectAdd.html#SummaryField">Summary</a>:</th>
d52 1
a52 1
  <th nowrap="nowrap"><a href="/project/www/docs/ProjectAdd.html#DescriptionField">Description</a>:</th>
d114 1
a114 1
  <th nowrap="nowrap">Public Project:</th>
d126 1
a126 1
  <th nowrap="nowrap">Use Project Home:</th>
d139 1
a139 1
   <th nowrap="nowrap">Project Owner:</th>
d156 1
a156 1
    <th>Note:</th>      
@


1.10
log
@Link to license list instead of to nonexistant page.
@
text
@d17 1
a17 1
   <th nowrap="nowrap">* <a href="/project/www/docs/ProjectAddStep1.html#ProjectNameField">Project Name</a>:</th>
d48 1
a48 1
  <th nowrap="nowrap">* <a href="/project/www/docs/ProjectAddStep1.html#SummaryField">Summary</a>:</th>
d56 1
a56 1
  <th nowrap="nowrap"><a href="/project/www/docs/ProjectAddStep1.html#DescriptionField">Description</a>:</th>
@


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


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


1.7
log
@included "task nav" below headlines
@
text
@d1 1
d34 1
a34 1
    <select name="parent" size="1"/>
d159 1
@


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


1.5
log
@misc html usage revisions
@
text
@d3 3
@


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

@


1.3
log
@Limit category list box size to 10 items.
@
text
@d2 1
a2 1
<div id="projectadd">
d10 1
a10 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.2
log
@Enabled nested projects for regular projects.
@
text
@d66 1
a66 1
    <select name="selectedCategories" size="10" multiple="multiple">
@


1.1
log
@Adding file i forgot to add.
@
text
@d1 1
d19 23
@

