head	1.9;
access;
symbols
	TIGRIS_1_1_0RC2:1.6
	TIGRIS_1_1_0RC1:1.6
	TIGRIS_1_1:1.6.0.4
	TIGRIS_1_0_8:1.6
	TIGRIS_1_0_8RC3:1.6
	TIGRIS_1_0_8RC2:1.6
	TIGRIS_1_0_8RC1:1.6
	TIGRIS_1_0_7:1.6
	TIGRIS_1_0_7RC3:1.6
	TIGRIS_1_0_7RC2:1.6
	TIGRIS_1_0_7RC1:1.6
	TIGRIS_1_0_6:1.6
	TIGRIS_1_0_6RC5:1.6
	TIGRIS_1_0_6RC4:1.6
	TIGRIS_1_0_6RC3:1.6
	TIGRIS_1_0_6RC2:1.6
	TIGRIS_1_0_6RC1:1.6
	TIGRIS_1_0_5:1.6
	TIGRIS_1_0_5RC6:1.6
	TIGRIS_1_0_5RC5:1.6
	TIGRIS_1_0_5RC4:1.6
	TIGRIS_1_0_5RC3:1.6
	TIGRIS_1_0_5RC2:1.6
	TIGRIS_1_0_5RC1:1.6
	TIGRIS_1_0_4:1.6
	TIGRIS_1_0_3:1.6
	TIGRIS_1_0_2:1.6
	TIGRIS_1_0_1:1.6
	TIGRIS_1_0:1.6.0.6
	TIGRIS_1_0_0:1.6
	TIGRIS_1_0_0_RC1:1.6.0.2
	dlr:1.1.1
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TIGRIS_0_9_2_4:1.3
	TIGRIS_0_9_2:1.3.0.2;
locks; strict;
comment	@# @;


1.9
date	2001.05.23.02.04.14;	author dlr;	state dead;
branches;
next	1.8;

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

1.7
date	2001.03.29.23.45.02;	author susank;	state Exp;
branches;
next	1.6;

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

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

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

1.3
date	2001.02.01.18.21.47;	author jrobbins;	state Exp;
branches
	1.3.4.1;
next	1.2;

1.2
date	2001.02.01.17.53.03;	author jrobbins;	state Exp;
branches;
next	1.1;

1.1
date	2001.01.31.00.18.20;	author elicia;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.02.21.00.37.00;	author dlr;	state Exp;
branches;
next	;

1.3.4.1
date	2001.02.18.00.56.47;	author elicia;	state Exp;
branches;
next	1.3.4.2;

1.3.4.2
date	2001.02.20.23.48.08;	author elicia;	state Exp;
branches;
next	;


desc
@@


1.9
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>Edit Project Document:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
   </TR>
</TABLE>

<TABLE BORDER="0" WIDTH="100%">
  <TR>
    <TD COLSPAN="3"><HR size="1" noshade></TD>
  </TR>
<FORM ACTION="ProjectDocumentEdit?action=Edit+Document&documentID=$document.getID()" METHOD="POST" ENCTYPE="multipart/form-data">
  <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=
  #if ($name)
  {
    "$name"
  } #else {
    "$document.getName()"
  } SIZE="25"></TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP><b>Description:</b></TD>
    <TD><INPUT TYPE="TEXT" NAME="description" VALUE=
  #if ($description)
  {
    "$description"
  } #else {
    "$document.getDescription()"
  } SIZE="55"></TD>
  </TR>

  <TR>
    <TD COLSPAN="3"><HR size="1" noshade></TD>
  </TR>
#if (!$type)
{
   #set $type = $document.getType()
}
  <TR>
    <TD VALIGN="top"><span class="Asterisk">*</span></TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP><b>Document Contents:</b></TD>
    <TD></TD>
  </TR>
    #if ($type.equals("upload"))
    { 
  <TR>
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <INPUT TYPE="radio" name="type" value="upload" CHECKED><b>
    &nbsp;File:</b></TD>
    <TD class="PlainText">$document.getFileName()</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD class="PlainText"><b>Replace file with:</b></TD>
    <TD><INPUT TYPE="file" NAME="file" SIZE="20"></TD>
  </TR>
    } #else {
  <TR>
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <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>
  </TR>
    }
  <TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD COLSPAN="2" VALIGN="TOP" class="PlainText" NOWRAP>or</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <INPUT TYPE="radio" name="type" value="url"
    #if ($type.equals("url"))
    { 
       CHECKED
    }><b>&nbsp;Document URL:</b></TD>
    <TD><INPUT TYPE="TEXT" NAME="url"  VALUE=
   #if ($url)
   {
     "$url"
   } #else {
     "$document.getUrl()"
   } 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>or</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <INPUT TYPE="radio" name="type" value="text" #if ($type.equals("text")) { CHECKED } ><b>&nbsp;HTML Content:</b></TD>
    <TD><TEXTAREA NAME="text" ROWS="7" COLS="55">#if ($text) {$text} #else {$document.getText()}</TEXTAREA></TD>
  </TR>
  <TR>
    <TD>&nbsp;</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>Place in Section:</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>

#foreach $section in $currentProject.getSections()
  {
   #if ($section.isApproved())
   {
  <TR> 
    <TD></TD> 
    <TD></TD> 
    <TD class="PlainText"><INPUT TYPE="RADIO" NAME="sectionID" VALUE="$section.getID()"
    #if ($sectionID.equals($section.getID()))
    {
       CHECKED
    }
    >$section.getName()</TD> 
  </TR> 
     #foreach $subsection in $section.getSubsections()
     {
         #if ($subsection.isApproved())
         {
          <TR> 
            <TD></TD> 
            <TD></TD> 
            <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="RADIO" NAME="sectionID" VALUE="$subsection.getID()"
            #if ($sectionID.equals($subsection.getID()))
            {
               CHECKED
            }
            >$subsection.getName()</TD> 
          </TR> 
         }
     }
   }
  }
  <TR>
    <TD>&nbsp;</TD>
  </TR>
  <TR>
    <TD></TD>
    <INPUT TYPE="hidden" NAME="documentID" VALUE="$document.getID()"></TD>
    <TD><INPUT TYPE="submit" NAME="Button" VALUE="Edit Document"></TD>
  </TR>
  <TR>
    <TD></TD>
    <TD class="PlainText" COLSPAN="2">New documents must be approved by the project owner before then will be visible to other users.</TD>
  </TR>
</FORM>
</TABLE>

@


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


1.7
log
@merges UI cleanup changes from sc10inst
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@a160 1

@


1.6
log
@Corrected typo.
@
text
@d3 1
a3 1
      <TD class="Header" nowrap>Edit Project Document: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
d17 1
a17 1
    <TD class="InputHeader" VALIGN="top" NOWRAP>Document Name:</TD>
d28 1
a28 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Description:</TD>
d47 1
a47 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Document Contents:</TD>
d55 2
a56 2
    <INPUT TYPE="radio" name="type" value="upload" CHECKED>
    &nbsp;File:</TD>
d61 1
a61 1
    <TD class="PlainText">Replace file with:</TD>
d72 1
a72 1
    }>&nbsp;File:</TD>
d88 1
a88 1
    }>&nbsp;Document URL:</TD>
d108 1
a108 1
    <INPUT TYPE="radio" name="type" value="text" #if ($type.equals("text")) { CHECKED } >&nbsp;HTML Content:</TD>
d121 1
a121 1
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>Place in Section:</TD>
d172 1
a172 1
    <TD class="PlainText" COLSPAN="2">New documents must be approved by the project owner before they will be visible to other users.</TD>
@


1.5
log
@now prepopulating section Id's after an error
@
text
@d172 1
a172 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.4
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@a118 7
#if (!$sectionID)
{
  #set $sectionID = $document.getSectionID()
} #else {
  #set $sectionID = $Integer.parseInt($sectionID)
}
$sectionID
d123 1
a123 1
    #if ($sectionID == 0)
d137 1
a137 1
    #if ($sectionID == $section.getSectionId())
d151 1
a151 1
            #if ($sectionID == $subsection.getSectionId())
@


1.3
log
@added more style
@
text
@d57 1
a57 1
    <TD class="PlainText">$document.getFilename()</TD>
d122 2
d125 1
d130 1
a130 1
    #if ($sectionID.equals("0"))
d133 1
a133 1
    }>None, place new section at top level</TD>
d144 1
a144 1
    #if ($sectionID.equals($section.getID()))
d158 1
a158 1
            #if ($sectionID.equals($subsection.getID()))
@


1.3.4.1
log
@ported to turbine
@
text
@d57 1
a57 1
    <TD class="PlainText">$document.getFileName()</TD>
d127 1
a127 1
    #if ($sectionID == 0)
d141 1
a141 1
    #if ($sectionID == $section.getSectionId())
d155 1
a155 1
            #if ($sectionID == $subsection.getSectionId())
@


1.3.4.2
log
@cleanup
@
text
@a121 2
} #else {
  #set $sectionID = $Integer.parseInt($sectionID)
a122 1
$sectionID
d130 1
a130 1
    }>None, place new document at top level</TD>
@


1.2
log
@made input widgets wider and corrected table cell for indented section list
@
text
@d57 1
a57 1
    <TD>$document.getFilename()</TD>
d61 1
a61 1
    <TD>Replace file with:</TD>
@


1.1
log
@initial revision
@
text
@d35 1
a35 1
  } SIZE="25"></TD>
d95 1
a95 1
   } SIZE="25"></TD>
d109 1
a109 1
    <TD><TEXTAREA NAME="text" ROWS="7" COLS="34">#if ($text) {$text} #else {$document.getText()}</TEXTAREA></TD>
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d35 1
a35 1
  } SIZE="55"></TD>
d57 1
a57 1
    <TD class="PlainText">$document.getFileName()</TD>
d61 1
a61 1
    <TD class="PlainText">Replace file with:</TD>
d95 1
a95 1
   } SIZE="55"></TD>
d109 1
a109 1
    <TD><TEXTAREA NAME="text" ROWS="7" COLS="55">#if ($text) {$text} #else {$document.getText()}</TEXTAREA></TD>
a121 2
} #else {
  #set $sectionID = $Integer.parseInt($sectionID)
a122 1
$sectionID
d127 1
a127 1
    #if ($sectionID == 0)
d130 1
a130 1
    }>None, place new document at top level</TD>
d141 1
a141 1
    #if ($sectionID == $section.getSectionId())
d155 1
a155 1
            #if ($sectionID == $subsection.getSectionId())
@


