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


1.14
date	2001.07.23.23.58.55;	author leonardr;	state dead;
branches;
next	1.13;

1.13
date	2001.07.05.22.21.40;	author leonardr;	state Exp;
branches;
next	1.12;

1.12
date	2001.06.21.00.22.15;	author leonardr;	state Exp;
branches;
next	1.11;

1.11
date	2001.06.20.05.24.44;	author jefflove;	state Exp;
branches;
next	1.10;

1.10
date	2001.06.13.21.25.04;	author beril;	state Exp;
branches;
next	1.9;

1.9
date	2001.06.13.15.30.19;	author beril;	state Exp;
branches;
next	1.8;

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

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

1.6
date	2001.06.08.04.25.09;	author jefflove;	state Exp;
branches;
next	1.5;

1.5
date	2001.06.07.22.38.06;	author beril;	state Exp;
branches;
next	1.4;

1.4
date	2001.05.25.17.34.30;	author dlr;	state Exp;
branches;
next	1.3;

1.3
date	2001.05.25.17.10.00;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.23.02.24.39;	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.14
log
@Got rid of ugly multi-page project add in favor of lovely single-page project add. Those adjectives are not subjective in any way.
@
text
@<div id="projectaddstep2">

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

<form method="post" action="ProjectAddStep2">
<div class="axial">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
 <tr>
  <th nowrap="nowrap">Project Name:</th>
  <td>$newProjectName</td>
 </tr>
 #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="/project/www/docs/ProjectAddStep2.html">Need more
     information on licenses?</a>
    </p>     
   </td>
  </tr>
 #end

 <tr>
  <th nowrap="nowrap">Public Project:</th>
  <td>
   <input type="hidden" name="screen2Seen" 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>

 #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="10" 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

#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

###set( $inputTitle = "Project )Profile:"
###foreach $pt in $projectProfList
##{
##  <tr>      
##  	<th nowrap="nowrap">
##  #if (!$inputTitle.equals(""))
##  {
##          <a href="/project/www/docs/ProjectAddStep2.html#ProjectProfileField">$inputTitle</a>
##  }
##        </th>
##  	<TD VALIGN="top">
##  	  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2">
##  	    <TR>
##              <TD VALIGN="top"><input type="radio" name="projectProfileKey" value="$pt.getKey()"
##  #if ($projectProfileKey.equals($pt.getKey()))
##  {
##    checked
##  }
##              ></TD>
##              <TD class="PlainText" VALIGN="top">
##                <B>$pt.getName()</B><br>
##                $pt.getDescription()
##              </TD>
##  	    </TR>
##  	  </TABLE>
##  	</TD>
##  </TR>
##  ##get rid of input title for all other loop iterations
##  #set( $inputTitle = "" )
##}
  <tr>
   <td></td>
   <td>
    <input type="submit" name="Button" value="$prevStep" />&nbsp;
    <input type="submit" name="Button" value="$nextStep" />
   </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.13
log
@Licenses are now contained in a database-managed table rather than in a custom Java class (yay!)
@
text
@@


1.12
log
@Projects can now belong to more than one category.
@
text
@d12 23
a34 16
 <tr>
  <th nowrap="nowrap"><a href="/project/www/docs/ProjectAddStep2.html#LicenseField">License</a>:</th>
  <td>
   <select name="license">
   #foreach( $l in $licenseList )
  	    <option value="$l"
   #if( $license.equals($l) )
    selected="selected"
   #end
>$l</option>
   #end
   </select>
   <p>Designate a software license for your project. <a href="/project/www/docs/ProjectAddStep2.html">Need
more information on licenses?</a></p>
  </td>
 </tr>
d83 1
a83 1
   <input type="text" maxlength="64" name="projectOwner" value=#if( $projectOwner )"$projectOwner"#else"${loginUser.getLoginName()}"#end size="30" />
@


1.11
log
@html usage revision
@
text
@d39 22
a60 11
 <tr>
  <th nowrap="nowrap"><a href="/project/www/docs/ProjectAddStep2.html#ProjectCategoryField">Project Category</a>:</th>
  <td>
    <select name="catTypeID">
    #foreach( $ct in $currentDomain.getCategories($acl) )
     <option value="$ct.getID()"
    #if( $catTypeID.equals($ct.getID()) )
    selected="selected"
    #end
>$ct.getName()</option>
    #end
d62 10
a71 3
    <p>Select a category 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>
@


1.10
log
@xhtml cleanup
@
text
@d19 1
a19 1
    selected
d21 1
a21 1
                                        >$l</option>
d46 1
a46 1
    selected
d48 1
a48 1
                                        >$ct.getName()</option>
@


1.9
log
@converted some of the redundant <th> tags to <td>
@
text
@d6 1
d109 1
@


1.8
log
@recoded the html according to new css/html standards
@
text
@d94 1
a94 1
   <th></th>
@


1.7
log
@recoded the html according to new css/html standards
@
text
@d3 1
a3 1
<h4>Create New Project (Step Two) : $currentDomain.getName()</h4>
@


1.6
log
@general xhtml cleanup
@
text
@d3 1
a3 1
<h3>Create New Project (Step Two): $currentDomain.getName()</h3>
@


1.5
log
@recoded the servlet pages according to the new css/html standards
@
text
@d3 1
a3 1
<h4>Create New Project (Step Two) : $currentDomain.getName()</h4>
@


1.4
log
@HTML entities must be semi-colon terminated.
@
text
@d1 1
d3 1
a3 1
<FORM METHOD="post" ACTION="ProjectAddStep2">
d5 11
a15 13
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="70%">
  <TR>
    <TD CLASS="Header" COLSPAN="2" NOWRAP>Create New Project (Step Two): <SPAN CLASS="ProjectNameHeader">$currentDomain.getName()</SPAN></TD>
  </TR>
  <TR>      
    <TD class="InputHeader" VALIGN="top" NOWRAP>Project Name:</TD>
    <TD class="PlainText" VALIGN="top">$newProjectName</TD>
  </TR>
  <TR>      
  	<TD class="InputHeader" VALIGN="top" NOWRAP><a href="/project/www/docs/ProjectAddStep2.html#LicenseField">License</a>:</TD>
  	<TD class="PlainText" VALIGN="top">
          <select name="license">
#foreach( $l in $licenseList )
d17 1
a17 1
  #if( $license.equals($l) )
d19 1
a19 1
  #end
d21 11
a31 12
#end
  	  </select>
          <br>
           Designate a software license for your project.  <a href="/project/www/docs/ProjectAddStep2.html">Need
more information on licenses?</a></TD>
  </TR>

  <TR>
   <TD class="InputHeader" VALIGN="top" NOWRAP>Public Project:</TD>
   <TD class="PlainText" VALIGN="top">
    <input type="hidden" name="screen2Seen" value="true">    
    <input type="checkbox" name="isPublic"
d33 12
a44 14
           checked
     #end
    ><BR>
    Check this box to make this project publically viewable to the
    site at large.<BR>
  </TR>

  <TR>      
  	<TD class="InputHeader" VALIGN="top" NOWRAP><a href="/project/www/docs/ProjectAddStep2.html#ProjectCategoryField">Project Category</a>:</TD>
  	<TD class="PlainText" VALIGN="top">
          <select name="catTypeID">
#foreach( $ct in $currentDomain.getCategories($acl) )
            <option value="$ct.getID()"
  #if( $catTypeID.equals($ct.getID()) )
d46 1
a46 1
  #end
d48 5
a52 6
#end
  	  </select>
	  <br>Select a category 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.
  	</TD>
  </TR>
d54 7
a60 13
  <TR>      
  	<TD class="InputHeader" VALIGN="top" NOWRAP>Project Owner:</TD>
  	<TD class="PlainText" VALIGN="top">
         <input type="text" maxlength="64" name="projectOwner"
                value=#if( $projectOwner )"$projectOwner"#else"${loginUser.getLoginName()}"#end
                size="30">
<BR>
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.
</TD>
  </TR>
d66 2
a67 2
##  <TR>      
##  	<TD class="InputHeader" VALIGN="top" NOWRAP>
d72 1
a72 1
##        </TD>
d93 7
a99 7
  <TR>
  	<TD></TD>
  	<TD>
          <INPUT TYPE="submit" NAME="Button" VALUE="$prevStep">&nbsp;
          <INPUT TYPE="submit" NAME="Button" VALUE="$nextStep">
        </TD>
  </TR>
d101 5
a105 7
 <TR>      
  	<TD></TD>      
  	<TD class="PlainText"><B>Note:</B>
  	Once you create your project, it must be approved by the site moderators before it will be accessible to other
users.<br>
        </TD>      
  </TR>      
d107 4
a110 2
</TABLE>
</FORM>
@


1.3
log
@Corrected bad conversion.
@
text
@d107 1
a107 1
          <INPUT TYPE="submit" NAME="Button" VALUE="$prevStep">&nbsp
@


1.2
log
@Cleaned up VTL on project owner field.
@
text
@d107 1
a107 1
          <INPUT TYPE="submit" NAME="Button" VALUE="${prevStep">&nbsp}
@


1.1
log
@Adding Velocity templates.
@
text
@d61 4
a64 6
  	<TD class="PlainText" VALIGN="top"><input type="text" maxlength="64" name="projectOwner" value=
#if( $projectOwner )
"$projectOwner"
#else
"${loginUser.getLoginName()}"
#end size="30">
@

