head	1.12;
access;
symbols
	TIGRIS_1_1_0RC2:1.7.6.1
	TIGRIS_1_1_0RC1:1.7.6.1
	TIGRIS_1_1:1.7.6.1.0.2
	TIGRIS_1_0_8:1.7.6.1
	TIGRIS_1_0_8RC3:1.7.6.1
	TIGRIS_1_0_8RC2:1.7.6.1
	TIGRIS_1_0_8RC1:1.7.6.1
	TIGRIS_1_0_7:1.7.6.1
	TIGRIS_1_0_7RC3:1.7.6.1
	TIGRIS_1_0_7RC2:1.7.6.1
	TIGRIS_1_0_7RC1:1.7.6.1
	TIGRIS_1_0_6:1.7.6.1
	TIGRIS_1_0_6RC5:1.7.6.1
	TIGRIS_1_0_6RC4:1.7.6.1
	TIGRIS_1_0_6RC3:1.7.6.1
	TIGRIS_1_0_6RC2:1.7.6.1
	TIGRIS_1_0_6RC1:1.7.6.1
	TIGRIS_1_0_5:1.7
	TIGRIS_1_0_5RC6:1.7
	TIGRIS_1_0_5RC5:1.7
	TIGRIS_1_0_5RC4:1.7
	TIGRIS_1_0_5RC3:1.7
	TIGRIS_1_0_5RC2:1.7
	TIGRIS_1_0_5RC1:1.7
	TIGRIS_1_0_4:1.7
	TIGRIS_1_0_3:1.7
	TIGRIS_1_0_2:1.7
	TIGRIS_1_0_1:1.7
	TIGRIS_1_0:1.7.0.6
	TIGRIS_1_0_0:1.7
	TIGRIS_1_0_0_RC1:1.7.0.2
	dlr:1.1.1
	HELM_PEER_PORT_BRANCH:1.1.1.1;
locks; strict;
comment	@# @;


1.12
date	2001.05.23.02.04.14;	author dlr;	state dead;
branches;
next	1.11;

1.11
date	2001.05.22.23.37.15;	author elicia;	state Exp;
branches;
next	1.10;

1.10
date	2001.05.03.01.03.42;	author elicia;	state Exp;
branches;
next	1.9;

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

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

1.7
date	2001.03.09.04.48.49;	author elicia;	state Exp;
branches
	1.7.6.1;
next	1.6;

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

1.5
date	2001.03.06.03.54.16;	author jrobbins;	state Exp;
branches;
next	1.4;

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

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

1.2
date	2001.02.21.01.56.43;	author edk;	state Exp;
branches;
next	1.1;

1.1
date	2001.02.15.19.01.32;	author elicia;	state dead;
branches
	1.1.1.1
	1.1.2.1;
next	;

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

1.1.2.1
date	2001.02.15.19.01.32;	author elicia;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2001.02.16.20.07.33;	author elicia;	state Exp;
branches;
next	;

1.7.6.1
date	2001.06.07.02.32.17;	author edk;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Removed WM templates in favor of Velocity templates.
@
text
@
## SET VARIABLES : $canEdit, $canApprove, $indentChar, 
##                 $topSections, $documents

#if ($acl.hasPermissionForProject("Project Document - Edit", $currentProject))
{
  #set $canEdit = true
}
#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject))
{
  #set $canApprove = true
}

#if ($rootSection)
{
    #set $indentChar = "&nbsp;&nbsp;"
    #set $documents = $rootSection.getDocuments()
} #else {
    #set $indentChar = ""
    #set $documents = $currentProject.getTopLevelDocuments()
}
#set $topSections =  $currentProject.getSections($rootSectionID)

top= $currentProject.getSections()
############################
## PAGE HEADER
<TABLE BORDER="0"  CELLSPACING="1" CELLPADDING="1" WIDTH="100%">
  <TR>
    <TD class="Header" width="25%" nowrap><b>Project Documents:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
  </TR>
</TABLE>
<P>


## BREAD CRUMBS
#set $jumpURL = $currentProject.getProjectPageURL("ProjectDocumentList", "rootSectionID=0")
<a href="$jumpURL">Top</a> : 
#foreach $sec in  $rootSection.getParentSections()
{
    #set $jumpURL = $currentProject.getProjectPageURL("ProjectDocumentList", "rootSectionID=$sec.getID()")
    <a href="$jumpURL">$sec.getName()</a> : 
} 
#if ($rootSection)
{
 <b>$rootSection.getName()</b>
}


## TABLE HEADER
        <TABLE BORDER="1" BORDERCOLOR="#0000000" BORDERCOLORDARK="#0000000" CELLSPACING="1" CELLPADDING="1" WIDTH="100%" >
    <TD BGCOLOR="#990000" WIDTH="30%">
       <table cellpadding="1" cellspacing="1" width=100%>
         <tr>
           <th class="Header"><font color="white">Folder</font></th?
         </tr>
        </table>
    </TD>
          
    <TD WIDTH="80%" BGCOLOR="#990000" >
       <table cellpadding="1" cellspacing="1" width=100%>
         <tr>
           <th class="Header" colspan="2"><font color="white">Documents</font></th>
         </tr>
        </table>
      </TD>
  </TR>

## LEFT PANE: FOLDERS
  <TR>
      <TD valign="top" class="PlainText">
         <table border="0" cellspacing="2" cellpadding="1" width="100%" HEIGHT="200">
           <tr>
             <td class="PlainText" valign="top">
             #if ($rootSection)
             {
               <img src="/branding/images/openfolder.gif">&nbsp;<b>$rootSection.getName()</b> 
               <br><br>
             }
        #if ($topSections.isEmpty() && !$rootSection)
        {
            <SPAN CLASS="PlainText"><i>There are no document folders for this project.
           #if (($loginUser.isAnonymous()) || (!isLoggedIn))
           {
             If you would like to add a folder, please <a href="/servlets/TLogin">log in</a></i>.
           }
           </SPAN>
        } #else {
             #foreach $section in $topSections
             {
                #set $jumpURL = $currentProject.getProjectPageURL("ProjectDocumentList", "rootSectionID=$section.getID()")
                <a href="$jumpURL">$indentChar<img src="/branding/images/closedfolder.gif" border="0" width="24" height="14">&nbsp;$section.getName()</a>
                <br><br>

               #foreach $subsection in $section.getSubsections()
               {
                  #set $jumpURL = $currentProject.getProjectPageURL("ProjectDocumentList", "rootSectionID=$subsection.getID()")
                  $indentChar;&nbsp;&nbsp; <a href="$jumpURL"><img src="/branding/images/closedfolder.gif" border="0" width="24" height="14">&nbsp;$subsection.getName()</a>
                <br><br>
               }
             }
}
             </td>
           </tr>
         </table>
      </td>
      <td valign="top">

        <table border="0" cellspacing="2" cellpadding="1" width="100%">
    #if ($rootSection && !$rootSection.getDescription().equals(""))
    {
         <tr>
          <td colspan="3"> hi $rootSection.getDescription()</td>
         </tr>
         <tr>
          <td colspan=3><hr align="center" width="100%" noshade size="1"></td>
         </tr>
    }
## RIGHT PANE: DOCUMENTS
   #if (!$documents.isEmpty())
   {
     #foreach $document in $documents
     {
         <tr>
          <td width="45%" class="PlainText" valign="top">
          #if (!$document.getText().equals(""))
          {
            #set $URL = "$currentProject.getProjectPageURL("ProjectDocumentView", "documentID=$document.getID()")"
           <a href="$URL"><b>$document.getName()</b></a>
          } #else {
           <b>$document.getName()</b> 
          }
          <td width="5%" rowspan=5></td>
          <td>Status: Active</td>
        </tr>
        <tr>
          <td rowspan=2 valign="top" class="PlainText">$document.getDescription()</td>
          <td>Created by elicia on 01-09-01</td>
        </tr>
        <tr>
          <td class="PlainText" valign="top" >Modified by jenifer on 02-09-01</td>
        </tr>
        <tr>
           <td class="PlainText" valign="top" ><a href="$document.getDownloadPath()"><img src="/branding/images/icon_pdf.gif" align="texttop" > $document.getFileName()</a></td>
           <td class=""PlainText" valign="top" >File Size: $document.getSize()</td>
        </tr>
        <tr>
          <td>
          #if (!$document.getUrl().equals(""))
          {
            URL: <a href="$document.getUrl()">$document.getUrl()</a>
          }</td>
          <td class="PlainText" valign="top">
          #set $viewURL = $currentProject.getProjectPageURL("ProjectDocumentView", "documentID=$document.getID()")
          #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()")
          #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
          <a href="$viewURL">View</a> | <a href="$editURL">Edit</a> | <a href="$deleteURL">Delete</a></td>
        </tr>
        <tr>
          <td colspan=3><hr align="center" width="100%" noshade size="1"></td>
        </tr>
}
       </table>
     } #else {
        <tr>
         <td colspan="3"><i>There are no documents in this folder.</i></td>
        </tr>
     }
</table>
</TABLE>
@


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


1.10
log
@fixed Pending approval link
@
text
@d1 3
a3 15
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="85%">
  <TR>
    <TD class="Header" nowrap><b>Project Documents:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
	#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject))
	{
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Add New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Add New Folder</a></TD>
    } #else {
        #if ($acl.hasPermissionForProject("Project Document - Suggest", $currentProject))
        {
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Suggest New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Suggest New Folder</a></TD>
        }
    }
       
  </TR>
</TABLE>
a12 1
<P>
d14 1
a14 4
<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0">
#set $topDocuments = $currentProject.getTopLevelDocuments()
#set $topSections = $currentProject.getSections()
#if ($topSections.isEmpty() && $topDocuments.isEmpty())
d16 2
a17 10
 <TR>
  <TD class="PlainText" >
   <i>There are no documents for this project.</i>
   #if (($loginUser.isAnonymous()) || (!isLoggedIn))
   {
    <P>
    <i>If you would like to add or edit a document, please <a href="/servlets/TLogin">log in</a></i>.
   }
  </TD>
 </TR>
d19 9
d29 1
a29 1
    <TD CLASS="InputHeader" VALIGN="top"><b>Table of Contents:</b></TD>
d31 15
a46 2
</TABLE>
<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0" width="85%">
d48 10
a57 67
         #if (!$topDocuments.isEmpty())
         {
            #foreach $document in $topDocuments
            {
              #set $proposedByUser = false
              #if ($document.getProposedBy().equals($acl.getUser().getID())) 
              {
                 #set $proposedByUser = true
              }
               <TR>
                 #if ($document.isApproved())
                 {
		         <TD class="PlainText"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp<A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
                 } #else {
                   #if ($canApprove)
                   {
                    <TD class="PlainText"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp<A HREF="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
                   } #else {
                     #if ($proposedByUser)
                     {
                    <TD class="PlainText"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
                     }
                   }
                 }
                 #if ($canEdit || $proposedByUser)
                 {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getDocumentId()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getDocumentId()")
                    <TD class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
               </TR>

                <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>
            }
         }

         #if (!$topSections.isEmpty())
         {
            #foreach $section in $topSections
            {
              #set $proposedByUser = false
              #if ($section.getProposedBy().toString().equals($acl.getUser().getID()))
              {
                 #set $proposedByUser = true
              }
               <TR>
                 #if ($section.isApproved())
                 {
		         <TD class="PlainText"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<B>$section.getName()</B> : $section.getDescription()</B></TD>
                 } #else {
                   #if ($canApprove)
                   {
                     <TD class="PlainText"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")"><font color="red">Pending Approval</a>: </font><B>$section.getName()</B> : $section.getDescription()</B></TD>
                  } #else {
                     #if ($proposedByUser)
                     {
                     <TD class="PlainText"><font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>: </font><B>$section.getName()</B> : $section.getDescription()</B></TD>
                     }
                  }
d59 40
a98 144
                 }
                 #if ($canEdit || $proposedByUser)
                 {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$section.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$section.getID()")
                    <TD class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
                <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>
                #set $documents = $section.getDocuments()
                #if (!$documents.isEmpty())
                {
                  #foreach $document in $documents
                  {
                     #set $proposedByUser = false
                     #if ($document.getProposedBy().toString().equals($acl.getUser().getID()))
                     {
                        #set $proposedByUser = true
                     }
                  <TR>
                 #if ($document.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
                 } #else {
                   #if ($canApprove)
                   {
                    <TD class="PlainText"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp<A HREF="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
                   } #else {
                     #if ($proposedByUser)
                     {
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
                     }
                   }
                  }
                  #if ($canEdit || $proposedByUser)
                  {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getDocumentId()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getDocumentId()")
                    <TD class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
                  </TR>
                <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>
                  }
                }
                #set $subsections = $section.getSubsections()
                #if (!$subsections.isEmpty())
                {
                  #foreach $subsection in $subsections
                  {
                     #set $proposedByUser = false
                     #if ($subsection.getProposedBy().toString().equals($acl.getUser().getID()))
                     {
                        #set $proposedByUser = true
                     }
                  <TR>
                 #if ($subsection.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<B>$subsection.getName()</B> : $subsection.getDescription()</B></TD>
                 } #else {
                   #if ($canApprove)
                   {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")"><font color="red">Pending Approval</a>:</font> <B>$subsection.getName()</B> : $subsection.getDescription()</B></TD>
                   } #else {
                     #if ($proposedByUser)
                     {
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>: </font><B>$subsection.getName()</B> : $subsection.getDescription()</B></TD>
                     }
                   }
                 }
                   #if ($canEdit || $proposedByUser)
                   {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$subsection.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$subsection.getID()")
                    <TD class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                   }
                  </TR>
                <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>
                  #set $documents = $subsection.getDocuments()
                  #if (!$documents.isEmpty())
                  { 
                    #foreach $document in $documents
                    {
                     #set $proposedByUser = false
                     #if ($document.getProposedBy().toString().equals($acl.getUser().getID()))
                     {
                        #set $proposedByUser = true
                     }
                      <TR>
                         #if ($document.isApproved())
                         {
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
                         } #else {
                           #if ($canApprove)
                           {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
                           } #else {
                             #if ($proposedByUser)
                             {
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval: </font><B>$document.getName()</B> : $document.getDescription()</B></TD>
                             }
                           }
                         } 
                         #if ($canEdit || $proposedByUser)
                         {
                           #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getDocumentId()")
                           #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getDocumentId()")
                           <TD class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                         }
                      </TR>
                <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>
                    }
                   }
                 }
d100 69
a168 2
           }            
        }
@


1.9
log
@changed "section" to "folder" in the UI
@
text
@d66 1
a66 1
                    <TD class="PlainText"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp<A HREF="$document.getLink($currentProject)" target="_blank"><font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
d110 1
a110 1
                     <TD class="PlainText"><font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>: </font><B>$section.getName()</B> : $section.getDescription()</B></TD>
d151 1
a151 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
d155 1
a155 1
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
d194 1
a194 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B> : $subsection.getDescription()</B></TD>
d235 1
a235 1
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font> <IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp<A HREF="$document.getLink($currentProject)" target="_blank">$document.getName()</A> : $document.getDescription()</TD>
d239 1
a239 1
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>: </font><B>$document.getName()</B> : $document.getDescription()</B></TD>
@


1.8
log
@merges UI cleanup changes from sc10inst
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d6 1
a6 1
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Add New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Add New Section</a></TD>
d10 1
a10 1
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Suggest New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Suggest New Section</a></TD>
@


1.7
log
@made ui consistant. added line prompting guest users to log in if they wish to add or edit.
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Project Documents: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
d44 1
a44 1
    <TD CLASS="InputHeader" VALIGN="top">Table of Contents:</TD>
@


1.7.6.1
log
@support private documents
@
text
@d134 1
a134 1
                #set $documents = $section.getDocuments($acl)
d218 1
a218 1
                  #set $documents = $subsection.getDocuments($acl)
@


1.6
log
@set it so documents get opened in a new browse window
@
text
@d35 5
d81 1
a90 1

a124 1
               </TR>
@


1.5
log
@adjusted spacing and span of links
now icons are never linked and the spaces bewteen icons and links is never itself linked
spacing around colons cone consistenly
@
text
@d57 1
a57 1
		         <TD class="PlainText"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d61 1
a61 1
                    <TD class="PlainText"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)"><font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d65 1
a65 1
                    <TD class="PlainText"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d143 1
a143 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d147 1
a147 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d151 1
a151 1
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d227 1
a227 1
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d231 1
a231 1
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font> <IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
@


1.4
log
@changed text style on Edit/Delete links
@
text
@d57 1
a57 1
		         <TD class="PlainText"><A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
d61 1
a61 1
                    <TD class="PlainText"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d105 1
a105 1
                     <TD class="PlainText"><font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font><B>$section.getName()</B> : $section.getDescription()</B></TD>
d109 1
a109 1
                     <TD class="PlainText"><font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$section.getName()</B> : $section.getDescription()</B></TD>
d143 1
a143 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16"><A HREF="$document.getLink($currentProject)">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
d147 1
a147 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d186 1
a186 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
d190 1
a190 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
d194 1
a194 1
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$subsection.getName()</B> : $subsection.getDescription()</B></TD>
d227 1
a227 1
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
d231 1
a231 1
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
d235 1
a235 1
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval</a>:</font><B>$document.getName()</B> : $document.getDescription()</B></TD>
@


1.3
log
@added "there are no documents" message
@
text
@d73 1
a73 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d118 1
a118 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d159 1
a159 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d202 1
a202 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d243 1
a243 1
                           <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
@


1.2
log
@add new files from the branch to the head (there should be only added
files, ie. no modified files).
@
text
@d26 1
d28 10
a37 1

d41 1
a42 1

a44 1
         #set $topDocuments = $currentProject.getTopLevelDocuments()
a88 1
         #set $topSections = $currentProject.getSections()
@


1.1
log
@file ProjectDocumentList.wm was initially added on branch HELM_PEER_PORT_BRANCH.
@
text
@d1 253
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@a0 253
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="85%">
  <TR>
    <TD class="Header" nowrap>Project Documents: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
	#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject))
	{
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Add New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Add New Section</a></TD>
    } #else {
        #if ($acl.hasPermissionForProject("Project Document - Suggest", $currentProject))
        {
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Suggest New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Suggest New Section</a></TD>
        }
    }
       
  </TR>
</TABLE>

#if ($acl.hasPermissionForProject("Project Document - Edit", $currentProject))
{
  #set $canEdit = true
}
#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject))
{
  #set $canApprove = true
}
<P>
<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0">

  <TR>
    <TD CLASS="InputHeader" VALIGN="top">Table of Contents:</TD>
  </TR>
</TABLE>

<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0" width="85%">

         #set $topDocuments = $currentProject.getTopLevelDocuments()
         #if (!$topDocuments.isEmpty())
         {
            #foreach $document in $topDocuments
            {
              #set $proposedByUser = false
              #if ($document.getProposedBy().equals($acl.getUser().getID())) 
              {
                 #set $proposedByUser = true
              }
               <TR>
                 #if ($document.isApproved())
                 {
		         <TD class="PlainText"><A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
                 } #else {
                   #if ($canApprove)
                   {
                    <TD class="PlainText"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
                   } #else {
                     #if ($proposedByUser)
                     {
                    <TD class="PlainText"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
                     }
                   }
                 }
                 #if ($canEdit || $proposedByUser)
                 {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getDocumentId()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getDocumentId()")
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
               </TR>
                <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>

            }
         }

         #set $topSections = $currentProject.getSections()
         #if (!$topSections.isEmpty())
         {
            #foreach $section in $topSections
            {
              #set $proposedByUser = false
              #if ($section.getProposedBy().toString().equals($acl.getUser().getID()))
              {
                 #set $proposedByUser = true
              }
               <TR>
                 #if ($section.isApproved())
                 {
		         <TD class="PlainText"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<B>$section.getName()</B> : $section.getDescription()</B></TD>
                 } #else {
                   #if ($canApprove)
                   {
                     <TD class="PlainText"><font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font><B>$section.getName()</B> : $section.getDescription()</B></TD>
                  } #else {
                     #if ($proposedByUser)
                     {
                     <TD class="PlainText"><font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$section.getName()</B> : $section.getDescription()</B></TD>
                     }
                  }
          
                 }
                 #if ($canEdit || $proposedByUser)
                 {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$section.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$section.getID()")
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
               </TR>
                <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>
                #set $documents = $section.getDocuments()
                #if (!$documents.isEmpty())
                {
                  #foreach $document in $documents
                  {
                     #set $proposedByUser = false
                     #if ($document.getProposedBy().toString().equals($acl.getUser().getID()))
                     {
                        #set $proposedByUser = true
                     }
                  <TR>
                 #if ($document.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16"><A HREF="$document.getLink($currentProject)">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
                 } #else {
                   #if ($canApprove)
                   {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
                   } #else {
                     #if ($proposedByUser)
                     {
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
                     }
                   }
                  }
                  #if ($canEdit || $proposedByUser)
                  {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getDocumentId()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getDocumentId()")
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
                  </TR>
                <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>
                  }
                }
                #set $subsections = $section.getSubsections()
                #if (!$subsections.isEmpty())
                {
                  #foreach $subsection in $subsections
                  {
                     #set $proposedByUser = false
                     #if ($subsection.getProposedBy().toString().equals($acl.getUser().getID()))
                     {
                        #set $proposedByUser = true
                     }
                  <TR>
                 #if ($subsection.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
                 } #else {
                   #if ($canApprove)
                   {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
                   } #else {
                     #if ($proposedByUser)
                     {
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$subsection.getName()</B> : $subsection.getDescription()</B></TD>
                     }
                   }
                 }
                   #if ($canEdit || $proposedByUser)
                   {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$subsection.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$subsection.getID()")
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                   }
                  </TR>
                <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>
                  #set $documents = $subsection.getDocuments()
                  #if (!$documents.isEmpty())
                  { 
                    #foreach $document in $documents
                    {
                     #set $proposedByUser = false
                     #if ($document.getProposedBy().toString().equals($acl.getUser().getID()))
                     {
                        #set $proposedByUser = true
                     }
                      <TR>
                         #if ($document.isApproved())
                         {
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
                         } #else {
                           #if ($canApprove)
                           {
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
                           } #else {
                             #if ($proposedByUser)
                             {
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval</a>:</font><B>$document.getName()</B> : $document.getDescription()</B></TD>
                             }
                           }
                         } 
                         #if ($canEdit || $proposedByUser)
                         {
                           #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getDocumentId()")
                           #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getDocumentId()")
                           <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                         }
                      </TR>
                <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>
                    }
                   }
                 }
               }
           }            
        }
</TABLE>
@


1.1.2.1
log
@changed name
@
text
@a0 254
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="85%">
  <TR>
    <TD class="Header" nowrap>Project Documents: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
	#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject))
	{
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Add New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Add New Section</a></TD>
    } #else {
        #if ($acl.hasPermissionForProject("Project Document - Suggest", $currentProject))
        {
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Suggest New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Suggest New Section</a></TD>
        }
    }
       
  </TR>
</TABLE>

#if ($acl.hasPermissionForProject("Project Document - Edit", $currentProject))
{
  #set $canEdit = true
}
#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject))
{
  #set $canApprove = true
}
<P>
<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0">

  <TR>
    <TD CLASS="InputHeader" VALIGN="top">Table of Contents:</TD>
  </TR>
</TABLE>

<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0" width="85%">

         #set $topDocuments = $currentProject.getTopLevelDocuments()

         #if (!$topDocuments.isEmpty())
         {
            #foreach $document in $topDocuments
            {
              #set $proposedByUser = false
              #if ($document.getProposedBy().equals($acl.getUser().getID())) 
              {
                 #set $proposedByUser = true
              }
               <TR>
                 #if ($document.isApproved())
                 {
		         <TD class="PlainText"><A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
                 } #else {
                   #if ($canApprove)
                   {
                    <TD class="PlainText"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
                   } #else {
                     #if ($proposedByUser)
                     {
                    <TD class="PlainText"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
                     }
                   }
                 }
                 #if ($canEdit || $proposedByUser)
                 {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
               </TR>
                <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>

            }
         }

         #set $topSections = $currentProject.getSections()
         #if (!$topSections.isEmpty())
         {
            #foreach $section in $topSections
            {
              #set $proposedByUser = false
              #if ($section.getProposedBy().toString().equals($acl.getUser().getID()))
              {
                 #set $proposedByUser = true
              }
               <TR>
                 #if ($section.isApproved())
                 {
		         <TD class="PlainText"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<B>$section.getName()</B> : $section.getDescription()</B></TD>
                 } #else {
                   #if ($canApprove)
                   {
                     <TD class="PlainText"><font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font><B>$section.getName()</B> : $section.getDescription()</B></TD>
                  } #else {
                     #if ($proposedByUser)
                     {
                     <TD class="PlainText"><font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$section.getName()</B> : $section.getDescription()</B></TD>
                     }
                  }
          
                 }
                 #if ($canEdit || $proposedByUser)
                 {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$section.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$section.getID()")
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
               </TR>
                <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>
                #set $documents = $section.getDocuments()
                #if (!$documents.isEmpty())
                {
                  #foreach $document in $documents
                  {
                     #set $proposedByUser = false
                     #if ($document.getProposedBy().toString().equals($acl.getUser().getID()))
                     {
                        #set $proposedByUser = true
                     }
                  <TR>
                 #if ($document.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16"><A HREF="$document.getLink($currentProject)">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
                 } #else {
                   #if ($canApprove)
                   {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
                   } #else {
                     #if ($proposedByUser)
                     {
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
                     }
                   }
                  }
                  #if ($canEdit || $proposedByUser)
                  {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
                  </TR>
                <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>
                  }
                }
                #set $subsections = $section.getSubsections()
                #if (!$subsections.isEmpty())
                {
                  #foreach $subsection in $subsections
                  {
                     #set $proposedByUser = false
                     #if ($subsection.getProposedBy().toString().equals($acl.getUser().getID()))
                     {
                        #set $proposedByUser = true
                     }
                  <TR>
                 #if ($subsection.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
                 } #else {
                   #if ($canApprove)
                   {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
                   } #else {
                     #if ($proposedByUser)
                     {
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$subsection.getName()</B> : $subsection.getDescription()</B></TD>
                     }
                   }
                 }
                   #if ($canEdit || $proposedByUser)
                   {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$subsection.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$subsection.getID()")
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                   }
                  </TR>
                <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>
                  #set $documents = $subsection.getDocuments()
                  #if (!$documents.isEmpty())
                  { 
                    #foreach $document in $documents
                    {
                     #set $proposedByUser = false
                     #if ($document.getProposedBy().toString().equals($acl.getUser().getID()))
                     {
                        #set $proposedByUser = true
                     }
                      <TR>
                         #if ($document.isApproved())
                         {
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
                         } #else {
                           #if ($canApprove)
                           {
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
                           } #else {
                             #if ($proposedByUser)
                             {
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval</a>:</font><B>$document.getName()</B> : $document.getDescription()</B></TD>
                             }
                           }
                         } 
                         #if ($canEdit || $proposedByUser)
                         {
                           #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()")
                           #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                           <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                         }
                      </TR>
                <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>
                    }
                   }
                 }
               }
           }            
        }
</TABLE>
@


1.1.2.2
log
@changed getID method on document
@
text
@d36 1
d63 2
a64 2
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getDocumentId()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getDocumentId()")
d150 2
a151 2
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getDocumentId()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getDocumentId()")
d234 2
a235 2
                           #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getDocumentId()")
                           #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getDocumentId()")
@


