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


1.8
date	2001.07.19.19.09.50;	author elicia;	state dead;
branches;
next	1.7;

1.7
date	2001.06.19.00.40.46;	author jefflove;	state Exp;
branches;
next	1.6;

1.6
date	2001.06.12.15.33.21;	author neil;	state Exp;
branches;
next	1.5;

1.5
date	2001.06.12.15.11.01;	author neil;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.12.00.10.25;	author elicia;	state Exp;
branches;
next	1.3;

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

1.2
date	2001.05.31.19.15.42;	author elicia;	state Exp;
branches;
next	1.1;

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


desc
@@


1.8
log
@removing document-related templates, since they are being extracted out into the nidaba component.
@
text
@<div id="projectdocumentedit">

#if( $section )
   #set( $sectionID = $section.getID() )
   #set( $sectionName = "folder $section.getName()")

#else
   #set( $sectionID = 0 )
   #set( $sectionName = "top level")
#end

<h3>Edit Project Document $document.getName(): <a href="$currentProject.getProjectHome()">$currentProject.getName()</a></h3>

<form action="ProjectDocumentEdit?action=Edit+Document&documentID=$document.getID()" method="post" enctype="multipart/form-data">
<p>
* Required fields
</p>

<div class="axial">
<table border="0" cellpadding="2" cellspacing="0" width="100%">
 <tr>
  <th nowrap="nowrap">* Document Name:</th>
  <td>
   <input type="text" name="name" value=
  #if( $name )
    "$name"
  #else
    "$document.getName()"
  #end size="25" />
  </td>
 </tr>
 <tr>
  <th nowrap="nowrap">* Status:</th>
  <td>
    <select name="status">
       <option value="active"
       #if( $document.getstatus().equals("active") )
         selected="selected"
       #end />Active
       <option value="Withdrawn"
       #if( $document.getstatus().equals("withdrawn") )
         selected="selected"
       #end />Withdrawn
    </select>
  </td>
 </tr>

 <tr>
  <th nowrap="nowrap">Description:</th>
  <td>
   <input type="text" name="description" value=
  #if( $description )
    "$description"
  #else
    "$!document.getDescription()"
  #end size="55" />
  </td>
 </tr>
</table>

<h4>Document Contents</h4>
  #if ($document.getFileName())
<table border="0" cellpadding="2" cellspacing="0" width="100%">
 <tr>
  <th nowrap="nowrap">File:</th>
  <td>$document.getFileName()</td>
 </tr>
 <tr>
  <th nowrap="nowrap">Replace file with:</th>

  #else
 <tr>
  <th>File:</th>
  #end
  <td>
    <input type="file" name="file" size="20" />
   <p>
    <input type="checkbox" name="isPublic" value="Y"
          #if( $ispublic )
             checked="checked"
          #end
    /> 
	Check to make file public.</p> 
<p>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.
</p>
  </td>
 </tr>
 <tr>
  <th nowrap="nowrap">
   Document URL:
  </th>
  <td><input type="text" name="url"  
   #if( $url )
     value="$url"
   #else
     value="$!document.getUrl()"
   #end 
      size="55" />
      
      <p>
For example: "http://www.domain.com/document.html"
</p>

      
  </td>
 </tr>
 <tr>
  <th nowrap="nowrap">
   HTML Content:</th>
  <td><textarea name="text" rows="7" cols="55">
        #if( $text )$text
        #else $!document.getText()
         #end</textarea>
  </td>
 </tr>

<!-- commented out area left in when ui recoded -->
<!--
<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
  #end>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
  #end
  >$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
          #end
          >$subsection.getName()</TD> 
        </TR> 
       #end
   #end
 #end
#end
<TR>
  <TD>&nbsp;</TD>
</TR>
-->

 <tr>
  <td></td>
  <td>
  <p>
 <input type="hidden" name="documentID" value="$document.getID()" />
   <input type="submit" name="Button" value="Edit Document" />
</p>
<p>
New documents must be approved by the project owner before they will be visible to other users.
</p>

  </td>
 </tr>
</table>
</div>

</form>

</div>
@


1.7
log
@html usage revisions
@
text
@@


1.6
log
@ui recode correction
@
text
@d15 3
d19 1
d22 1
a22 4
  <td colspan="2">* Required fields</td>
 </tr>
 <tr>
  <td nowrap="nowrap">* Document Name:</td>
d33 1
a33 1
  <td nowrap="nowrap">* Status:</td>
d49 1
a49 1
  <td nowrap="nowrap">Description:</td>
d59 1
d61 1
a61 4
 <tr>
  <td colspan="2" nowrap="nowrap">Document Contents:</td>
 </tr>

d63 1
d65 1
a65 1
  <td nowrap="nowrap">File:</td>
d69 1
a69 1
  <td nowrap="nowrap">Replace file with:</td>
d73 1
a73 1
  <td>File:</td>
a75 1
   <p>
a76 1
   </p>
d82 4
a85 10
    />
	Check to make file public.
   </p> 
  </td>
 </tr>

 <tr>
  <td></td>
  <td>
   <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>
d89 1
a89 1
  <td nowrap="nowrap">
d91 1
a91 1
  </td>
d99 6
d108 2
a109 6
  <td></td>
  <td><small>For example: "http://www.domain.com/document.html"</small></td>
 </tr>
 <tr>
  <td nowrap="nowrap">
   HTML Content:</td>
d166 2
a167 1
   <input type="hidden" name="documentID" value="$document.getID()" />
d169 5
a175 5
 <tr>
  <td></td>
  <td>New documents must be approved by the project owner before they will be visible to other users.</td>
 </tr>

d177 1
d181 1
a181 1
</div>@


1.5
log
@ui recoded
@
text
@a57 1
</table>
a58 1
<table border="1" cellpadding="2" cellspacing="0" width="100%">
@


1.4
log
@fixing the way existing/error values are handled for fields
@
text
@d1 2
d12 12
a23 20
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">
   <TR>
      <TD class="Header" nowrap><b>Edit Project Document </b> $document.getName(): <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
   </TR>
</TABLE>


<TABLE BORDER="0" WIDTH="100%">
<FORM ACTION="ProjectDocumentEdit?action=Edit+Document&documentID=$document.getID()" 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=
d28 7
a34 7
  #end 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">
d36 3
a38 3
       #if( $document.getStatus().equals("active") )
         SELECTED
       #end>Active
d40 11
a50 11
       #if( $document.getStatus().equals("withdrawn") )
         SELECTED
       #end>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=
d55 9
a63 17
  #end SIZE="55"></TD>
  </TR>

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


  <TR>
    <TD VALIGN="top"></TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP><b>Document Contents:</b></TD>
    <TD></TD>
  </TR>

  <TR>
    <TD>&nbsp;</TD>
  </TR>
d66 6
a71 8
  <TR>
    <TD>&nbsp;</TD>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP><b>File:</b></TD>
    <TD class="PlainText">$document.getFileName()</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD class="PlainText"><b>Replace file with:</b></TD>
d74 2
a75 3
  <TR>
    <TD>&nbsp;</TD>
    <TD class="PlainText"><b>File :</b></TD>
d77 8
a84 6
    <TD><INPUT TYPE="file" NAME="file" SIZE="20">

    <BR>
    <INPUT TYPE="checkbox" NAME="isPublic" VALUE="Y"
          #if( $isPublic )
             CHECKED
d86 17
a102 19
    >
    <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"  
d104 1
a104 1
     VALUE="$url"
d106 1
a106 1
     VALUE="$!document.getUrl()"
d108 11
a118 15
      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">
d121 3
a123 2
         #end</TEXTAREA></TD>
  </TR>
d125 1
a125 3
  <TR>
    <TD>&nbsp;</TD>
  </TR>
a169 9
<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>
d171 15
d187 1
a187 2
</FORM>
</TABLE>
@


1.3
log
@made status field dynamic. Checking for null url field.
@
text
@d60 1
a60 1
    "$document.getDescription()"
d121 3
a123 3
     VALUE=$url
   #elseif( $document.getUrl() )
     VALUE=$document.getUrl()
d139 4
a142 2
    <TD><TEXTAREA NAME="text" ROWS="7" COLS="55">#if( $text )$text
        #elseif ($document.getText()) $document.getText() #end</TEXTAREA></TD>
@


1.2
log
@Changed UI for Project Document component. Two-pane UI now: left pane for folder tree, right pane for document list.  There is now summary information about each document in the list. The List has a "root folder" that is the root of the tree. You add subfoldrs and sections to the root folder. Folders can now be nested to infinite number of levels.

Now a document can have 0-3 of the following: file upload, URL, or text (instead of having one and only one of the three as before).  There are now fields for modified by, modified date, and is_public (for the file upload).
@
text
@d119 1
a119 1
    <TD><INPUT TYPE="TEXT" NAME="url"  VALUE=
d121 5
a125 4
     "$url"
   #else
     "$document.getUrl()"
   #end SIZE="55"></TD>
d140 1
a140 1
        #else $document.getText() #end</TEXTAREA></TD>
@


1.1
log
@Adding Velocity templates.
@
text
@d1 9
d12 1
a12 1
      <TD class="Header" nowrap><b>Edit Project Document:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
d16 1
d18 1
d22 1
a22 1
<FORM ACTION="ProjectDocumentEdit?action=Edit+Document&documentID=$document.getID()" METHOD="POST" ENCTYPE="multipart/form-data">
d37 17
d67 2
a68 3
#if( !$type )
   #set( $type = $document.getType() )
#end
d70 1
a70 1
    <TD VALIGN="top"><span class="Asterisk">*</span></TD>
d74 1
a74 1
    #if( $type.equals("upload") )
d77 6
a82 3
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <INPUT TYPE="radio" name="type" value="upload" CHECKED><b>
    &nbsp;File:</b></TD>
d88 2
a89 3
    <TD><INPUT TYPE="file" NAME="file" SIZE="20"></TD>
  </TR>
    #else
d92 12
a103 6
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <INPUT TYPE="radio" name="type" value="upload"
    #if( $type.equals("upload") )
       CHECKED
    #end><b>&nbsp;File:</b></TD>
    <TD><INPUT TYPE="file" NAME="file" SIZE="20"></TD>
d105 1
a105 1
    #end
d107 4
d113 1
a113 1
    <TD COLSPAN="2" VALIGN="TOP" class="PlainText" NOWRAP>or</TD>
d118 1
a118 4
    <INPUT TYPE="radio" name="type" value="url"
    #if( $type.equals("url") )
       CHECKED
    #end><b>&nbsp;Document URL:</b></TD>
d128 1
a128 1
    <TD  class="PlainText"><small>For example: "http://www.domain.com/document.html"</small></TD>
d132 1
a132 1
    <TD COLSPAN="2" VALIGN="TOP" class="PlainText" NOWRAP>or</TD>
d137 3
a139 3
    <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>
d141 1
d145 4
d150 8
a157 12
  <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
    #end>None, place new document at top level</TD>
  </TR>
d160 22
a181 23
   #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
    #end
    >$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
            #end
            >$subsection.getName()</TD> 
          </TR> 
         #end
     #end
d183 17
a199 13
  #end
  <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>
a201 1

@

