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


1.11
date	2001.08.20.22.29.23;	author tfahrner;	state Exp;
branches;
next	1.10;

1.10
date	2001.08.03.05.45.07;	author tfahrner;	state Exp;
branches;
next	1.9;

1.9
date	2001.07.31.01.18.40;	author tfahrner;	state Exp;
branches;
next	1.8;

1.8
date	2001.07.31.00.01.56;	author tfahrner;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.30.21.59.23;	author tfahrner;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.30.21.24.28;	author tfahrner;	state Exp;
branches;
next	1.5;

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

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

1.3
date	2001.05.25.02.08.05;	author dlr;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.25.01.49.13;	author ms;	state Exp;
branches;
next	1.1;

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


desc
@@


1.11
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@<div id="projectnewsapproval" class="app">


<h3>Project News Approval: $currentProject.getName()</h3>

<p>News items pending approval within project $currentProject.getName():</p>

<form action="$servletName" method="post" enctype="application/x-www-form-urlencoded">


#set( $paginatableList = $currentProject.getUnapprovedNews($itemsPerPage, $filter, $acl) )
#set( $newsPage = $paginatableList.getPage($paginated_page) )

#if( !$newsPage.isEmpty() )
<table border="1" cellspacing="2" cellpadding="3" width="100%">
 <tr>
  <th>Item</th>
  <th>Date</th>
  <th>Proposed By</th>
  <th>Action</th>
 </tr>

 #set ($rowClass="a")
 #foreach( $item in $newsPage )
    #set( $viewPage = $currentProject.getProjectPageURL("NewsItemView", "newsID=$item.getID()") )
 <tr class="$rowClass"> 
  <td><a href="$viewPage">$item.getHeadline()</a></td> 
  <td>$item.getEventDate()</td> 
  <td><a href="/servlets/UserEdit?userID=$item.getProposedByUser().getID()">$item.getProposedByUser().getRealName()</a></td> 
  <td> 
   <input type="radio" name="action_$item.getID()" value="Approve" />Approve
   <input type="radio" name="action_$item.getID()" value="Defer" checked="checked" />Defer
   <input type="radio" name="action_$item.getID()" value="Disapprove" />Disapprove 
  </td> 
 </tr> 
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
 #end
 <tr>
  <td></td>
  <td></td>
  <td></td>
  <td><input type="submit" name="Button" value="Perform Actions" /></td>
 </tr>
</table>
#else
<p><strong class="alert">
No news items pending approval.
</strong>
</p>
#end
<p>
  ${paginatableList.navigationBar($currentProject.getProjectPageURL($servletName), $paginated_page)}
</p>
</form>
</div>
@


1.10
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a1 3
<h2>
 #parse( "Nomen.vm" )
</h2>
@


1.9
log
@included "task nav" below headlines
@
text
@a4 3
#if( !$loginUser.isAnonymous() && $servletTaskBar.available($servletName))
#parse("$servletTaskBar.getPath($servletName)")
#end
@


1.8
log
@pulled admin options, added headlines
@
text
@d5 4
@


1.7
log
@html usage revision to synch with scarab
@
text
@d2 3
@


1.6
log
@removed dependency on CSS for differentiation of alerts
@
text
@d1 1
a1 1
<div id="projectnewsapproval">
d14 1
a14 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.5
log
@stylistic html tweaks
@
text
@d49 1
a49 1
<p class="alert">
d51 1
d58 1
a58 1
</div>@


1.4
log
@ui recoded
@
text
@d9 5
d22 1
a22 4
#set( $paginatableList = $currentProject.getUnapprovedNews($itemsPerPage, $filter, $acl) )
#set( $newsPage = $paginatableList.getPage($paginated_page) )

#if( !$newsPage.isEmpty() )
d25 1
a25 1
 <tr> 
d35 5
d47 1
a47 5
 <tr>
  <td colspan="4">
  ${paginatableList.navigationBar($currentProject.getProjectPageURL($servletName), $paginated_page)}
  </td>
 </tr>
d49 3
a51 3
 <tr>
  <td colspan="4">No news items pending approval.</td>
 </tr>
d53 3
a55 3

</table>

a56 1

@


1.3
log
@Corrected VTL syntax error(s).
@
text
@d1 15
a15 21
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap><b>Project News Approval:</b> <SPAN CLASS="ProjectNameHeader">$currentProject.getName()</SPAN></TD>  
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="2" BORDER="0" WIDTH="100%">
  <TR>
    <TD CLASS="Welcome"><b>News items pending approval within project $currentProject.getName():</b></TD>
   </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" width="100%">
<FORM ACTION="$servletName" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">

  <TR>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Item</b></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Date</b></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Proposed By</b></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef"><b>Action</b></TD>
  </TR>
d23 10
a32 10
  <TR> 
   <TD class="TableData" VALIGN="top"><A HREF="$viewPage">$item.getHeadline()</A></TD> 
   <TD class="PlainText" VALIGN="top">$item.getEventDate()</TD> 
   <TD class="TableData" VALIGN="top"><A HREF="/servlets/UserEdit?userID=$item.getProposedByUser().getID()" class="TableData">$item.getProposedByUser().getRealName()</A></TD> 
   <TD class="PlainText"> 
    <INPUT TYPE="radio" NAME="action_$item.getID()" VALUE="Approve">Approve
    <INPUT TYPE="radio" NAME="action_$item.getID()" VALUE="Defer" CHECKED>Defer
    <INPUT TYPE="radio" NAME="action_$item.getID()" VALUE="Disapprove">Disapprove 
   </TD> 
  </TR> 
d34 8
a41 7
 <TR>
  <TD></TD>
  <TD></TD>
  <TD></TD>
  <TD class="PlainText"><INPUT TYPE="submit" NAME="Button" VALUE="Perform Actions"></TD>
 </TR>
 <TR><TD COLSPAN="4" ALIGN="center" CLASS="PlainText">
d43 2
a44 1
 </TD></TR>
d46 3
a48 3
 <TR>
  <TD class="PlainText" COLSPAN="4">No news items pending approval.</TD>
 </TR>
d50 6
a55 2
</FORM>
</TABLE>
@


1.2
log
@fixed broken args passing in templates made by conversion program
@
text
@d23 1
a23 1
#set( $paginatableList = ${currentProject.getUnapprovedNews($itemsPerPage, $filter, $acl)}
d28 1
a28 1
    #set( $viewPage = $currentProject.getProjectPageURL("NewsItemView", "newsID=$item.getID()")
@


1.1
log
@Adding Velocity templates.
@
text
@d23 1
a23 1
#set( $paginatableList = ${currentProject.getUnapprovedNews($itemsPerPage, )$filter, $acl)}
d28 1
a28 1
    #set( $viewPage = $currentProject.getProjectPageURL("NewsItemView", )"newsID=$item.getID()")
@

