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


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

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

1.5
date	2001.06.19.00.40.46;	author jefflove;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.12.15.32.41;	author neil;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.06.19.30.35;	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.7
log
@removing document-related templates, since they are being extracted out into the nidaba component.
@
text
@<div id="projectdocumentadd">

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

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

<h3>Add Project Document to $sectionName: <a href="$currentProject.getProjectHome()">$currentProject.getName()</a></h3>

<form action="ProjectDocumentAdd?action=Add+Document&rootSectionID=$sectionID" method="post" enctype="multipart/form-data">
<p>* Required fields</p>

<div class="axial">
<table border="0" cellspacing="0" cellpadding="2">
 <tr>
  <th nowrap="nowrap">* Document Name:</th>
  <td><input type="text" name="name" value="$name" size="25" /></td>
 </tr>

 <tr>
  <th nowrap="nowrap">* Status:</th>
  <td>
    <select name="status">
       <option value="active"
       #if( $status.equals("active") )
         selected="selected"
       #end />Active
       <option value="Withdrawn"
       #if( $status.equals("withdrawn") )
         selected="selected"
       #end />Withdrawn
    </select>
  </td>
 </tr>

 <tr>
  <th nowrap="nowrap">Description:</th>
  <td><input type="text" name="description" value="$description" size="55" /></td>
 </tr>
</table>

<h4>Document Contents</h4>
<table border="0" cellspacing="0" cellpadding="2">
 <tr>
  <th nowrap="nowrap">File:</th>
  <td>
    <input type="file" name="file" size="20" />
   <p>
    <input type="checkbox" name="isPublic" value="Y"
          #if( $ispublic )
             checked="checked"
          #elseif ($currentproject.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" value="$url" 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" wrap="wrap">$text</textarea></td>
 </tr>

  <tr>
   <td></td>
   <td><input type="submit" name="Button" value="Add Document" />
  <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.6
log
@html usage revision
@
text
@@


1.5
log
@html usage revisions
@
text
@d15 1
a15 3
<p>
* Required fields
</p>
d18 1
a18 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
d45 1
d47 1
a47 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
d61 1
a61 4
   </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>

@


1.4
log
@ui recoded
@
text
@d15 3
d19 1
d22 1
a22 4
  <td colspan="2">* Required fields</td>
 </tr>
 <tr>
  <td nowrap="nowrap">* Document Name:</td>
d27 1
a27 1
  <td nowrap="nowrap">* Status:</td>
d43 1
a43 1
  <td nowrap="nowrap">Description:</td>
d46 3
a48 1

d50 1
a50 6
  <td nowrap="nowrap" colspan="2">Document Contents:</td>
 </tr>
 <tr>
  <td nowrap="nowrap">
   File:
  </td>
a51 1
   <p>
a52 1
   </p>
d62 4
a65 1
   </p>
d69 6
a74 11
  <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></td>
 </tr>
 <tr>
  <td nowrap="nowrap">
   Document URL:</td>
  <td><input type="text" name="url" value="$url" size="55" /></td>
 </tr>
 <tr>
  <td></td>
  <td><small>For example: "http://www.domain.com/document.html"</small></td>
d77 2
a78 2
  <td nowrap="nowrap">
   HTML Content:</td>
d84 5
a88 1
   <td><input type="submit" name="Button" value="Add Document" /></td>
a89 5
  <tr>
   <td></td>
   <td>New documents must be approved by the project owner before they will be visible to other users.</td>
  </tr>

d91 1
@


1.3
log
@if project is public, document public flag checked by default
@
text
@d1 2
d12 17
a28 26
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">
   <TR>
      <TD class="Header" nowrap><b>Add Project Document to $sectionName:</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=$sectionID" 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">
d31 2
a32 2
         SELECTED
       #end>Active
d35 28
a62 33
         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="$description" 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>
    <TD VALIGN="TOP" class="InputHeader" NOWRAP>
    <b>&nbsp;File:</b></TD>
    <TD><INPUT TYPE="file" NAME="file" SIZE="20">
    <BR>
    <INPUT TYPE="checkbox" NAME="isPublic" VALUE="Y"
          #if( $isPublic )
             CHECKED
          #elseif ($currentProject.isPublic())
             CHECKED
d64 36
a99 46
    >
    <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>
d101 1
a101 2
</FORM>
</TABLE>
@


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
@d73 2
@


1.1
log
@Adding Velocity templates.
@
text
@d1 9
d12 1
a12 1
      <TD class="Header" nowrap><b>Add Project Document:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
d17 1
a17 1
<FORM ACTION="ProjectDocumentAdd?action=Add+Document&rootSectionID=0" METHOD="POST" ENCTYPE="multipart/form-data">
d60 1
a60 1
    <TD VALIGN="top"><span class="Asterisk">*</span></TD>
d68 2
a69 1
    <TD><INPUT TYPE="file" NAME="file" SIZE="20">&nbsp;&nbsp;
d75 1
a75 1
    &nbsp;<b>Check to make file public.</b>
@

