head	1.17;
access;
symbols
	TIGRIS_1_1_0RC2:1.12.2.1
	TIGRIS_1_1_0RC1:1.12.2.1
	TIGRIS_1_1:1.12.2.1.0.2
	TIGRIS_1_0_8:1.12.2.1
	TIGRIS_1_0_8RC3:1.12.2.1
	TIGRIS_1_0_8RC2:1.12.2.1
	TIGRIS_1_0_8RC1:1.12.2.1
	TIGRIS_1_0_7:1.12.2.1
	TIGRIS_1_0_7RC3:1.12.2.1
	TIGRIS_1_0_7RC2:1.12.2.1
	TIGRIS_1_0_7RC1:1.12.2.1
	TIGRIS_1_0_6:1.12.2.1
	TIGRIS_1_0_6RC5:1.12.2.1
	TIGRIS_1_0_6RC4:1.12.2.1
	TIGRIS_1_0_6RC3:1.12.2.1
	TIGRIS_1_0_6RC2:1.12.2.1
	TIGRIS_1_0_6RC1:1.12.2.1
	TIGRIS_1_0_5:1.12.2.1
	TIGRIS_1_0_5RC6:1.12.2.1
	TIGRIS_1_0_5RC5:1.12.2.1
	TIGRIS_1_0_5RC4:1.12.2.1
	TIGRIS_1_0_5RC3:1.12.2.1
	TIGRIS_1_0_5RC2:1.12.2.1
	TIGRIS_1_0_5RC1:1.12.2.1
	TIGRIS_1_0_4:1.12.2.1
	TIGRIS_1_0_3:1.12.2.1
	TIGRIS_1_0_2:1.12.2.1
	TIGRIS_1_0_1:1.12.2.1
	TIGRIS_1_0:1.12.2.1.0.4
	TIGRIS_1_0_0:1.12.2.1
	TIGRIS_1_0_0_RC1:1.12.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.4.2.1
	TIGRIS_0_9_2_3:1.4
	HELM_PEER_PORT_BRANCH:1.1.1.2
	TURBINE_PEER:1.7
	TIGRIS_0_9_2_1:1.7
	TIGRIS_0_9_2:1.4.0.2
	TIGRIS_0_9_0:1.2.0.2
	TIGRIS_0_8_4:1.1.1.1.0.2
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1;
locks; strict;
comment	@# @;


1.17
date	2001.05.23.02.04.14;	author dlr;	state dead;
branches;
next	1.16;

1.16
date	2001.05.22.23.37.15;	author elicia;	state Exp;
branches;
next	1.15;

1.15
date	2001.05.03.00.08.00;	author elicia;	state Exp;
branches;
next	1.14;

1.14
date	2001.03.29.23.45.02;	author susank;	state Exp;
branches;
next	1.13;

1.13
date	2001.03.28.22.19.00;	author dlr;	state Exp;
branches;
next	1.12;

1.12
date	2001.03.27.19.46.06;	author leonardr;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2001.02.21.01.08.31;	author dlr;	state Exp;
branches;
next	1.10;

1.10
date	2001.02.01.17.53.03;	author jrobbins;	state Exp;
branches;
next	1.9;

1.9
date	2001.01.30.02.58.20;	author elicia;	state Exp;
branches;
next	1.8;

1.8
date	2001.01.30.02.35.30;	author elicia;	state Exp;
branches;
next	1.7;

1.7
date	2001.01.27.02.18.11;	author elicia;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2001.01.26.23.48.40;	author elicia;	state Exp;
branches;
next	1.5;

1.5
date	2001.01.23.02.39.29;	author elicia;	state Exp;
branches;
next	1.4;

1.4
date	2001.01.06.19.42.34;	author jrobbins;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2000.12.30.05.07.36;	author elicia;	state Exp;
branches;
next	1.2;

1.2
date	2000.12.05.00.03.37;	author susank;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.12.21.18.18;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.18.18;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.36.57;	author dlr;	state Exp;
branches;
next	;

1.4.2.1
date	2001.02.01.18.49.25;	author jrobbins;	state Exp;
branches;
next	;

1.7.2.1
date	2001.02.17.20.11.18;	author leonardr;	state Exp;
branches;
next	1.7.2.2;

1.7.2.2
date	2001.02.18.00.56.25;	author elicia;	state Exp;
branches;
next	1.7.2.3;

1.7.2.3
date	2001.02.20.06.31.45;	author dlr;	state Exp;
branches;
next	1.7.2.4;

1.7.2.4
date	2001.02.20.23.47.31;	author elicia;	state Exp;
branches;
next	;

1.12.2.1
date	2001.03.28.23.11.38;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.17
log
@Removed WM templates in favor of Velocity templates.
@
text
@<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">
   <TR>
      <TD class="Header" nowrap><b>Add Project Document:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
   </TR>
</TABLE>

<TABLE BORDER="0" WIDTH="100%">
<FORM ACTION="ProjectDocumentAdd?action=Add+Document&rootSectionID=0" METHOD="POST" ENCTYPE="multipart/form-data">
  <TR>
    <TD COLSPAN="3"><HR size="1" noshade></TD>
  </TR>

  <TR>
    <TD colspan="3"><span class="Asterisk">*</span> <span class="PlainText">Required fields</span></TD>
  </TR>
  <TR>
    <TD VALIGN="top"><span class="Asterisk">*</span></TD>
    <TD class="InputHeader" VALIGN="top" NOWRAP><b>Document Name:</b></TD>
    <TD WIDTH="100%"><INPUT TYPE="TEXT" NAME="name" VALUE="$name" SIZE="25"></TD>
  </TR>

  <TR>
    <TD VALIGN="top"><span class="Asterisk">*</span></TD>
    <TD class="InputHeader" VALIGN="top" NOWRAP><b>Status:</b></TD>
    <TD WIDTH="100%">
    <SELECT NAME="status">
       <option value="active"
       #if ($status.equals("active"))
       {
         SELECTED
       }>Active
       <option value="Withdrawn"
       #if ($status.equals("withdrawn"))
       {
         SELECTED
       }>Withdrawn
    </SELECT>
      </TD>
  </TR>

  <TR>
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP><b>Description:</b></TD>
    <TD><INPUT TYPE="TEXT" NAME="description" VALUE="$description" SIZE="55"></TD>
  </TR>

  <TR>
    <TD COLSPAN="3"><HR size="1" noshade></TD>
  </TR>


  <TR>
    <TD VALIGN="top"><span class="Asterisk">*</span></TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP><b>Document Contents:</b></TD>
    <TD></TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <b>&nbsp;File:</b></TD>
    <TD><INPUT TYPE="file" NAME="file" SIZE="20">&nbsp;&nbsp;
    <INPUT TYPE="checkbox" NAME="isPublic" VALUE="Y"
          #if ($isPublic)
          {
             CHECKED
          }
    >
    &nbsp;<b>Check to make file public.</b>
    </TD>
  </TR>
  <TR>
    <TD colspan="2"></TD>
    <TD class="PlainText"><small>
    Click Browse and select a file. If you do not see a Browse button, your browser does not support file uploads. (Windows users, set Files of Type: to be All Files (*.*) to get a complete file listing.) The File field cannot be used to rename files. </small></TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD COLSPAN="2" VALIGN="TOP" class="PlainText" NOWRAP></TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <b>&nbsp;Document URL:</b></TD>
    <TD><INPUT TYPE="TEXT" NAME="url"  VALUE="$url" SIZE="55"></TD>
  </TR>
  <TR>
    <TD colspan="2"></TD>
    <TD class="PlainText"><small>For example: "http://www.domain.com/document.html"</small></TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD COLSPAN="2" VALIGN="TOP" class="PlainText" NOWRAP></TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <b>&nbsp;HTML Content:</b></TD>
    <TD><TEXTAREA NAME="text" ROWS="7" COLS="55" wrap="virtual">$text</TEXTAREA></TD>
  </TR>

  <TR>
    <TD>&nbsp;</TD>
  </TR>

   <TR>
     <TD colspan="2"></TD>
     <TD><INPUT TYPE="submit" NAME="Button" VALUE="Add Document"></TD>
   </TR>
   <TR>
     <TD colspan="2"></TD>
     <TD class="PlainText" COLSPAN="2">New documents must be approved by the project owner before they will be visible to other users.</TD>
   </TR>

</FORM>
</TABLE>
@


1.16
log
@started making changes for new ProjectDocument UI.  checking in unfinished so that dlr can convert to velocity templates
@
text
@@


1.15
log
@changed "section" to "folder" in the UI
@
text
@d8 1
a8 1
<FORM ACTION="ProjectDocumentAdd?action=Add+Document" METHOD="POST" ENCTYPE="multipart/form-data">
d21 20
d60 10
a69 6
    <INPUT TYPE="radio" name="type" value="upload"
    #if ($type.equals("upload"))
    { 
       CHECKED
    }><b>&nbsp;File:</b></TD>
    <TD><INPUT TYPE="file" NAME="file" SIZE="20"></TD>
d78 1
a78 1
    <TD COLSPAN="2" VALIGN="TOP" class="PlainText" NOWRAP>or</TD>
d83 1
a83 5
    <INPUT TYPE="radio" name="type" value="url"
    #if ($type.equals("url"))
    { 
       CHECKED
    }><b>&nbsp;Document URL:</b></TD>
d92 1
a92 1
    <TD COLSPAN="2" VALIGN="TOP" class="PlainText" NOWRAP>or</TD>
d97 1
a97 5
    <INPUT TYPE="radio" name="type" value="text"
    #if ($type.equals("text"))
    { 
       CHECKED
    }><b>&nbsp;HTML Content:</b></TD>
d100 1
d105 8
a112 14
  <TR>
    <TD COLSPAN="3"><HR size="1" noshade></TD>
  </TR>

  <TR>
    <TD VALIGN="top"><span class="Asterisk">*</span></TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP><b>Place in Folder:</b></TD>
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="0"
    #if ($sectionID.equals("0")) 
    {
       CHECKED
    }
    > None, place new document at top level</TD>
  </TR>
a113 45

#foreach $section in $currentProject.getSections()
  {
    #if ($section.isApproved())
    {
  <TR> 
    <TD></TD> 
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="$section.getID()"
    #if ($sectionID == $section.getID())
    {
       CHECKED
    }
>$section.getName()</TD> 
    <TD></TD> 
  </TR> 
     #foreach $subsection in $section.getSubsections()
     {
        #if ($subsection.isApproved())
        {
          <TR> 
            <TD></TD> 
            <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="RADIO" NAME="sectionID" VALUE="$subsection.getID()"
    #if ($sectionID == $subsection.getID())
    {
       CHECKED
    }
 >$subsection.getName()</TD> 
            <TD></TD> 
          </TR> 
        }
     }
   }
  }

  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <TR>
    <TD></TD>
    <TD><INPUT TYPE="submit" NAME="Button" VALUE="Add Document"></TD>
  </TR>
  <TR>
    <TD></TD>
    <TD class="PlainText" COLSPAN="2">New documents must be approved by the project owner before they will be visible to other users.</TD>
  </TR>
a115 1

@


1.14
log
@merges UI cleanup changes from sc10inst
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d94 1
a94 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP><b>Place in Section:</b></TD>
@


1.13
log
@Added word wrap.
@
text
@d3 1
a3 1
      <TD class="Header" nowrap>Add Project Document: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
d18 1
a18 1
    <TD class="InputHeader" VALIGN="top" NOWRAP>Document Name:</TD>
d23 1
a23 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Description:</TD>
d34 1
a34 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Document Contents:</TD>
d44 1
a44 1
    }>&nbsp;File:</TD>
d63 1
a63 1
    }>&nbsp;Document URL:</TD>
d81 1
a81 1
    }>&nbsp;HTML Content:</TD>
d94 1
a94 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Place in Section:</TD>
@


1.12
log
@Corrected typo.
@
text
@d82 1
a82 1
    <TD><TEXTAREA NAME="text" ROWS="7" COLS="55">$text</TEXTAREA></TD>
@


1.12.2.1
log
@Merging in bug fix from HEAD.
@
text
@d82 1
a82 1
    <TD><TEXTAREA NAME="text" ROWS="7" COLS="55" wrap="virtual">$text</TEXTAREA></TD>
@


1.11
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d146 1
a146 1
    <TD class="PlainText" COLSPAN="2">New documents must be approved by the project owner before then will be visible to other users.</TD>
@


1.10
log
@made input widgets wider and corrected table cell for indented section list
@
text
@a0 1

d96 5
a100 4
#if ($sectionID.equals("") || $sectionID.equals("0"))
{
 CHECKED
} >None, place new document at top level</TD>
d110 6
a116 5
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="$section.getID()"
#if ($section.getID().equals($sectionID))
{
  CHECKED
} >$section.getName()</TD> 
d124 6
a130 1
            <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="RADIO" NAME="sectionID" VALUE="$subsection.getID()">$subsection.getName()</TD> 
@


1.9
log
@cleanup
@
text
@d25 1
a25 1
    <TD><INPUT TYPE="TEXT" NAME="description" VALUE="$description" SIZE="25"></TD>
d65 1
a65 1
    <TD><INPUT TYPE="TEXT" NAME="url"  VALUE="$url" SIZE="25"></TD>
d83 1
a83 1
    <TD><TEXTAREA NAME="text" ROWS="7" COLS="34">$text</TEXTAREA></TD>
d110 1
d122 1
@


1.8
log
@now pre-selected data entered prior to an error
@
text
@a101 1
secid= $sectionID
@


1.7
log
@added checks for suggestedBy - user who suggests documents can edit them before they are approved
@
text
@d96 5
a100 1
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="section_id" VALUE="0" CHECKED >$sectionID None, place new document at top level</TD>
d102 3
d111 5
a115 1
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="section_id" VALUE="$section.getID()">$section.getName()</TD> 
d123 1
a123 1
            <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="RADIO" NAME="section_id" VALUE="$subsection.getID()">$subsection.getName()</TD> 
@


1.7.2.1
log
@Ported changes from head.
@
text
@d25 1
a25 1
    <TD><INPUT TYPE="TEXT" NAME="description" VALUE="$description" SIZE="55"></TD>
d65 1
a65 1
    <TD><INPUT TYPE="TEXT" NAME="url"  VALUE="$url" SIZE="55"></TD>
d83 1
a83 1
    <TD><TEXTAREA NAME="text" ROWS="7" COLS="55">$text</TEXTAREA></TD>
d96 1
a96 5
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="0"
#if ($sectionID.equals("") || $sectionID.equals("0"))
{
 CHECKED
} >None, place new document at top level</TD>
a97 2


d104 1
a104 6
    <TD></TD> 
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="$section.getID()"
#if ($section.getID().equals($sectionID))
{
  CHECKED
} >$section.getName()</TD> 
d112 1
a112 2
            <TD></TD> 
            <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="RADIO" NAME="sectionID" VALUE="$subsection.getID()">$subsection.getName()</TD> 
@


1.7.2.2
log
@fixed conflicts
@
text
@d96 5
a100 1
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="0" CHECKED >$sectionID None, place new document at top level</TD>
a109 1
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="$section.getID()">$section.getName()</TD> 
d111 1
d123 1
a124 1
            <TD></TD> 
@


1.7.2.3
log
@Merged in changes from the HEAD and broke a long line.
@
text
@d96 2
a97 6
#if ($sectionID.equals("") || $sectionID.equals("0"))
{
        CHECKED
}
        >None, place new document at top level</TD>
   </TR>
d101 1
a101 1
{
d105 3
a107 4
    <TD>&nbsp;</TD> 
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID"
        VALUE="$section.getID()">$section.getName()</TD> 
    <TD>&nbsp;</TD> 
d118 1
a118 1
            <TD>&nbsp;</TD> 
d120 1
a120 1
            <TD>&nbsp;</TD>
d125 1
a125 1
}
@


1.7.2.4
log
@preselecting values for section IDs
@
text
@d1 1
d96 6
a101 7
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="0"
    #if ($sectionID.equals("0")) 
    {
       CHECKED
    }
    > None, place new document at top level</TD>
  </TR>
d105 1
a105 1
  {
d109 8
a116 8
    <TD></TD> 
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="$section.getID()"
    #if ($sectionID == $section.getID())
    {
       CHECKED
    }
>$section.getName()</TD> 
    <TD></TD> 
d123 3
a125 8
            <TD></TD> 
            <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="RADIO" NAME="sectionID" VALUE="$subsection.getID()"
    #if ($sectionID == $subsection.getID())
    {
       CHECKED
    }
 >$subsection.getName()</TD> 
            <TD></TD> 
d130 1
a130 1
  }
@


1.6
log
@added instructional text
@
text
@d96 1
a96 1
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="section_id" VALUE="0" CHECKED>None, place new document at top level</TD>
a97 1

d100 2
d108 2
d114 1
d116 1
@


1.5
log
@changed location variable to "type"
@
text
@d42 1
a42 1
    #if ($location.equals("upload"))
d45 1
a45 1
    }>&nbsp;Upload File:</TD>
d49 5
d66 4
@


1.4
log
@changed style a little and changed file upload form type
@
text
@d9 5
a13 1
<FORM ACTION="$servletName" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
d28 3
a30 9
       <TR>
        <TD COLSPAN="3">
          <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>
d35 1
a35 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Document Cotents:</TD>
d40 6
a45 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Upload File:</TD>
d54 6
a59 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Document URL:</TD>
d68 7
a74 2
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>HTML Content:</TD>
    <TD><TEXTAREA NAME="text" NAME="htmlContent" ROWS="7" COLS="34">$text</TEXTAREA></TD>
d79 5
a83 9
       <TR>
        <TD COLSPAN="3">
          <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>
d87 1
a87 1
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="section_id" VALUE="0" CHECKED>None, place new section at top level</TD>
@


1.4.2.1
log
@moved changed from HEAD for ProjectDocuments and ProjectDownloads
@
text
@d9 1
a9 5
<FORM ACTION="ProjectDocumentAdd?action=Add+Document" METHOD="POST" ENCTYPE="multipart/form-data">
  <TR>
    <TD COLSPAN="3"><HR size="1" noshade></TD>
  </TR>

d21 1
a21 1
    <TD><INPUT TYPE="TEXT" NAME="description" VALUE="$description" SIZE="55"></TD>
d24 9
a32 3
  <TR>
    <TD COLSPAN="3"><HR size="1" noshade></TD>
  </TR>
d37 1
a37 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Document Contents:</TD>
d42 1
a42 6
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <INPUT TYPE="radio" name="type" value="upload"
    #if ($type.equals("upload"))
    { 
       CHECKED
    }>&nbsp;File:</TD>
a45 5
    <TD colspan="2"></TD>
    <TD class="PlainText"><small>
    Click Browse and select a file. If you do not see a Browse button, your browser does not support file uploads. (Windows users, set Files of Type: to be All Files (*.*) to get a complete file listing.) The File field cannot be used to rename files. </small></TD>
  </TR>
  <TR>
d51 2
a52 11
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <INPUT TYPE="radio" name="type" value="url"
    #if ($type.equals("url"))
    { 
       CHECKED
    }>&nbsp;Document URL:</TD>
    <TD><INPUT TYPE="TEXT" NAME="url"  VALUE="$url" SIZE="55"></TD>
  </TR>
  <TR>
    <TD colspan="2"></TD>
    <TD class="PlainText"><small>For example: "http://www.domain.com/document.html"</small></TD>
d60 2
a61 7
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <INPUT TYPE="radio" name="type" value="text"
    #if ($type.equals("text"))
    { 
       CHECKED
    }>&nbsp;HTML Content:</TD>
    <TD><TEXTAREA NAME="text" ROWS="7" COLS="55">$text</TEXTAREA></TD>
d66 9
a74 5

  <TR>
    <TD COLSPAN="3"><HR size="1" noshade></TD>
  </TR>

d78 1
a78 5
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="0"
#if ($sectionID.equals("") || $sectionID.equals("0"))
{
 CHECKED
} >None, place new document at top level</TD>
a80 1

a82 2
    #if ($section.isApproved())
    {
d85 1
a85 6
    <TD></TD> 
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="$section.getID()"
#if ($section.getID().equals($sectionID))
{
  CHECKED
} >$section.getName()</TD> 
a88 2
        #if ($subsection.isApproved())
        {
d91 1
a91 2
            <TD></TD> 
            <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="RADIO" NAME="sectionID" VALUE="$subsection.getID()">$subsection.getName()</TD> 
a92 1
        }
a93 1
   }
@


1.3
log
@made functional and fixed UI
@
text
@d8 1
a9 2

<TABLE BORDER="0" WIDTH="100%">
d11 4
d19 2
a20 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Optional Description:</TD>
d23 12
d36 6
d43 1
a43 1
    <TD><INPUT TYPE="TEXT" NAME="location" VALUE="$location" SIZE="25">&nbsp;&nbsp;<INPUT TYPE="SUBMIT" NAME="browseFiles" VALUE="Browse..."></TD>
d46 1
d50 1
d55 1
d59 1
d66 9
d76 1
d78 1
a78 1
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="section_id" VALUE="0">None, place new section at top level</TD>
d105 1
a105 1
    <TD class="PlainText">New documents must be approved by the project owner before then will be visible to other users.</TD>
d107 1
a109 1
</FORM>
@


1.2
log
@changed project name in title to link to ProjectHome
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@a0 13
## <!-- webmacro variables --> 
## <!-- $docName -->
## <!-- $description -->
## <!-- $filePath -->
## <!-- $browseFiles: submit button form widget -->
## <!-- $fileURL -->
## <!-- $htmlContent -->
## <!-- $sectionRadio: radio form widget -->
## <!-- $project: $project.getSections() -->
## <!-- $section: $section.getName() -->
## <!-- $addDocument: submit button form widget -->

<FORM NAME="ProjectDocumentAddForm" ACTION="default.cgi" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
d4 1
a4 1
      <TD class="Header" nowrap>Add a Project Document: <SPAN CLASS="ProjectNameHeader"><A HREF="/servlets/ProjectHome?projectID=$currentProject.getID()">$currentProject.getName()</a></SPAN></TD>  
d8 2
d13 1
a13 1
    <TD WIDTH="100%"><INPUT TYPE="TEXT" NAME="docName" VALUE="$docName" SIZE="25"></TD>
d21 1
a21 1
    <TD><INPUT TYPE="TEXT" NAME="filePath" VALUE="$filePath" SIZE="25">&nbsp;&nbsp;<INPUT TYPE="SUBMIT" NAME="browseFiles" VALUE="Browse..."></TD>
d28 1
a28 1
    <TD><INPUT TYPE="TEXT" NAME="fileURL"  VALUE="$fileURL" SIZE="25"></TD>
d35 1
a35 1
    <TD><TEXTAREA NAME="TextArea" NAME="htmlContent" ROWS="7" COLS="34">$htmlContent</TEXTAREA></TD>
d42 1
a42 23
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionRadio" VALUE="new">None, place new section at top level</TD>
  </TR>

<!-- temporary static html -->
  <TR>
    <TD></TD>
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionRadio" VALUE="Radio">Section one</TD>
  </TR>
  <TR>
    <TD></TD>
    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="RADIO" NAME="sectionRadio" VALUE="Radio">Subtitle one</TD>
  </TR>
  <TR>
    <TD></TD>
    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="RADIO" NAME="sectionRadio" VALUE="Radio">Subtitle two</TD>
  </TR>
  <TR>
    <TD></TD>
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionRadio" VALUE="Radio">Section two</TD>
  </TR>
  <TR>
    <TD></TD>
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionRadio" VALUE="Radio">Section three</TD>
d45 1
a45 4
<!-- webmacro commented out while servlet not functional -->
#if (false)
{
#foreach $section in $project.getSections()
d49 1
a49 1
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionRadio" VALUE="$section.getName()">$section.getName()</TD> 
d51 7
a58 1
}
d65 1
a65 1
    <TD><INPUT TYPE="submit" NAME="addDocument" VALUE="Add Document"></TD>
@


1.1
log
@Initial revision
@
text
@d17 1
a17 1
      <TD class="Header" nowrap>Add a Project Document: <SPAN CLASS="ProjectNameHeader">$currentProject.getName()</SPAN></TD>  
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d1 14
d17 1
a17 1
      <TD class="Header" nowrap>Add Project Document: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
a21 5
<FORM ACTION="ProjectDocumentAdd?action=Add+Document" METHOD="POST" ENCTYPE="multipart/form-data">
  <TR>
    <TD COLSPAN="3"><HR size="1" noshade></TD>
  </TR>

a22 4
    <TD colspan="3"><span class="Asterisk">*</span> <span class="PlainText">Required fields</span></TD>
  </TR>
  <TR>
    <TD VALIGN="top"><span class="Asterisk">*</span></TD>
d24 1
a24 1
    <TD WIDTH="100%"><INPUT TYPE="TEXT" NAME="name" VALUE="$name" SIZE="25"></TD>
d27 2
a28 3
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Description:</TD>
    <TD><INPUT TYPE="TEXT" NAME="description" VALUE="$description" SIZE="55"></TD>
a29 1

d31 2
a32 1
    <TD COLSPAN="3"><HR size="1" noshade></TD>
a33 2


d35 1
a35 3
    <TD VALIGN="top"><span class="Asterisk">*</span></TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Document Contents:</TD>
    <TD></TD>
d38 2
a39 8
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <INPUT TYPE="radio" name="type" value="upload"
    #if ($type.equals("upload"))
    { 
       CHECKED
    }>&nbsp;File:</TD>
    <TD><INPUT TYPE="file" NAME="file" SIZE="20"></TD>
d42 1
a42 3
    <TD colspan="2"></TD>
    <TD class="PlainText"><small>
    Click Browse and select a file. If you do not see a Browse button, your browser does not support file uploads. (Windows users, set Files of Type: to be All Files (*.*) to get a complete file listing.) The File field cannot be used to rename files. </small></TD>
d45 2
a46 2
    <TD>&nbsp;</TD>
    <TD COLSPAN="2" VALIGN="TOP" class="PlainText" NOWRAP>or</TD>
a49 7
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <INPUT TYPE="radio" name="type" value="url"
    #if ($type.equals("url"))
    { 
       CHECKED
    }>&nbsp;Document URL:</TD>
    <TD><INPUT TYPE="TEXT" NAME="url"  VALUE="$url" SIZE="55"></TD>
d52 2
a53 2
    <TD colspan="2"></TD>
    <TD class="PlainText"><small>For example: "http://www.domain.com/document.html"</small></TD>
d55 2
d58 2
a59 2
    <TD>&nbsp;</TD>
    <TD COLSPAN="2" VALIGN="TOP" class="PlainText" NOWRAP>or</TD>
d62 2
a63 8
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <INPUT TYPE="radio" name="type" value="text"
    #if ($type.equals("text"))
    { 
       CHECKED
    }>&nbsp;HTML Content:</TD>
    <TD><TEXTAREA NAME="text" ROWS="7" COLS="55">$text</TEXTAREA></TD>
d66 2
a67 1
    <TD>&nbsp;</TD>
a68 1

d70 2
a71 1
    <TD COLSPAN="3"><HR size="1" noshade></TD>
a72 1

d74 2
a75 8
    <TD VALIGN="top"><span class="Asterisk">*</span></TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Place in Section:</TD>
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="0"
    #if ($sectionID.equals("0")) 
    {
       CHECKED
    }
    > None, place new document at top level</TD>
d78 4
a81 2

#foreach $section in $currentProject.getSections()
a82 2
    #if ($section.isApproved())
    {
d85 1
a85 7
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="$section.getID()"
    #if ($sectionID == $section.getID())
    {
       CHECKED
    }
>$section.getName()</TD> 
    <TD></TD> 
a86 17
     #foreach $subsection in $section.getSubsections()
     {
        #if ($subsection.isApproved())
        {
          <TR> 
            <TD></TD> 
            <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="RADIO" NAME="sectionID" VALUE="$subsection.getID()"
    #if ($sectionID == $subsection.getID())
    {
       CHECKED
    }
 >$subsection.getName()</TD> 
            <TD></TD> 
          </TR> 
        }
     }
   }
d88 1
d95 1
a95 1
    <TD><INPUT TYPE="submit" NAME="Button" VALUE="Add Document"></TD>
d99 1
a99 1
    <TD class="PlainText" COLSPAN="2">New documents must be approved by the project owner before then will be visible to other users.</TD>
a100 1
</FORM>
d103 1
@

