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


1.4
date	2001.07.09.18.17.08;	author leonardr;	state dead;
branches;
next	1.3;

1.3
date	2001.06.15.18.47.59;	author neil;	state Exp;
branches;
next	1.2;

1.2
date	2001.06.07.20.49.02;	author neil;	state Exp;
branches;
next	1.1;

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


desc
@@


1.4
log
@Getting rid of residual download stuff.
@
text
@<div id="projectdownloadedit">

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

<form method="post" action="ProjectDownloadEdit">

#if( $downloads )

<table border="0" cellspacing="0" cellpadding="2" width="100%">
 <tr>
  <th nowrap="nowrap">File Name</th>
  <th nowrap="nowrap">Description</th>
  <th nowrap="nowrap">Access Control</th>
  <th nowrap="nowrap">Delete File</th>
 </tr>
  #set ($rowClass="a")
  #foreach( $download in $downloads )
 <tr class="$rowClass">
  <td><a href="ProjectDownloadList?action=download&amp;dlID=$download.getID()">$download.getFileName()</a></td>
  <td><textarea name="edit $download.getID()" cols="30" rows="3">$download.getDescription()</textarea></td>
  <td>
     <input type="checkbox" name="public $download.getID()"
    #if( $download.ispublic() )
             checked="checked"
    #end
      />&nbsp; Public
  </td>
  <td><input type="checkbox" name="delete ${download.getID()" />&nbsp; Delete</td>
 </tr>

  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
 
  #end
 <tr>
  <td colspan="4"><input type="submit" name="Button" value="Edit Downloads" /></td>
 </tr>
</table>

#else
 <p class="alert">
  No downloads for this project.
 </p>
#end

<input type="hidden" name="projectID" value="$currentProject.getID()" />

</form>

</div>@


1.3
log
@ui recoded
@
text
@@


1.2
log
@ui recoded
@
text
@d7 2
d16 1
a16 1
#if( $downloads )
d18 1
a18 1
 <tr>
d31 6
d41 2
d44 3
a46 3
 <tr>
  <td colspan="4">No downloads for this project.</td>
 </tr>
a47 2

</table>
@


1.1
log
@Adding Velocity templates.
@
text
@d1 13
a13 14
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
  <TR>
    <TD CLASS="Header" nowrap><b>Edit Downloads:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" width="100%">
<FORM METHOD="POST" ACTION="ProjectDownloadEdit">
  <TR>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" width="15%" NOWRAP><b>File Name</b></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" width="35%"><b>Description</TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP><b>Access Control</b></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP><b>Delete File</b></TD>
  </TR>
d16 7
a22 11
  <TR>
    <TD CLASS="ProjectName" VALIGN="top">
        <A HREF="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</A>
    </TD>
    <TD CLASS="PlainText" VALIGN="top">
       <TEXTAREA name="edit $download.getID()" cols="30" rows="3">$download.getDescription()</TEXTAREA>
    </TD>
    <TD CLASS="PlainText" ALIGN="left" VALIGN="top">
      <INPUT TYPE="checkbox" NAME="public $download.getID()"
    #if( $download.isPublic() )
             CHECKED
d24 5
a28 13
      >&nbsp; Public
    </TD>
    <TD CLASS="PlainText" ALIGN="left" VALIGN="top"><INPUT TYPE="checkbox" name="delete ${download.getID()">&nbsp} Delete</TD>
  </TR>
  <TR>
    <TD COLSPAN="8">
      <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>
d30 3
a32 3
  <TR>
    <TD><INPUT TYPE="submit" NAME="Button" VALUE="Edit Downloads"></TD>
  </TR>
d34 3
a36 3
  <TR>
    <TD CLASS="PlainText" COLSPAN="2"><I>No downloads for this project.</I></TD>
  </TR>
d38 8
a45 3
<INPUT TYPE="hidden" NAME="projectID" VALUE="$currentProject.getID()">
</FORM>
</TABLE>
@

