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.22.27.18;	author tfahrner;	state Exp;
branches;
next	1.6;

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

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

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

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

1.2
date	2001.05.24.18.48.47;	author dlr;	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="projectnewseditadvanced" class="app">


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

<p>
$newsItem.getEventDateString() : $newsItem.getHeadline()
</p>

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

<div class="axial">
<table border="1" cellspacing="2" cellpadding="3">
<tr>
<th>
Publish</th>

## Set date defaults
## If they had selected "immediately", default to today's date
#if( $publish.equals("immediately") )
#set( $defaultMonth = $current_month )
#set( $defaultDay = $current_day )
#set( $defaultYear = $current_year )
#else
#set( $defaultMonth = $publish_month )
#set( $defaultDay = $publish_day )
#set( $defaultYear = $publish_year )
#end
<td>
#if( $publish.equals("immediately") )
<div>
<input name="publish" type="radio" value="immediately" checked="checked" />Immediately&nbsp;
</div>
<div>
<input name="publish" type="radio" value="date" />On date:
</div>
#else
<div>
<input name="publish" type="radio" value="immediately" />Immediately&nbsp;
</div>
<div>
<input name="publish" type="radio" value="date" checked="checked" />On date:
</div>
#end
<select name="publish_month">
#parse( "org/tigris/helm/project/SelectMonth.vm" )
</select>
&nbsp;
<select name="publish_day">
#parse( "org/tigris/helm/project/SelectDay.vm" )
</select>
#if( $isDecember )
&nbsp;
<select name="publish_year">
#parse( "org/tigris/helm/project/SelectYear.vm" )
</select>
#end
</td>
</tr>

<tr>
<th>
Remove</th>
<td>
## Set date defaults
## If they had selected "never", default to one month from now
#if( $remove.equals("never") )
#set( $defaultMonth = $default_remove_month )
#set( $defaultDay = $current_day )
#set( $defaultYear = $current_year )
#else
#set( $defaultMonth = $remove_month )
#set( $defaultDay = $remove_day )
#set( $defaultYear = $remove_year )
#end
#if( $remove.equals("never") )
<div>
<input name="remove" type="radio" value="never" checked="checked" />Never&nbsp;
</div>
<div>
<input name="remove" type="radio" value="date" />On date:
</div>
#else
<div>
<input name="remove" type="radio" value="never" />Never&nbsp;
</div>
<div>
<input name="remove" type="radio" value="date" checked="checked" />On date:
</div>
#end
<select name = "remove_month">
#parse( "org/tigris/helm/project/SelectMonth.vm" )
</select>
&nbsp;
<select name="remove_day">
#parse( "org/tigris/helm/project/SelectDay.vm" )
</select>
&nbsp;
<select name="remove_year">
#parse( "org/tigris/helm/project/SelectYear.vm" )
</select>
</td>
</tr>

<!-- Comment out until mailing list notifications are taking place again
#if( $publish.equals("immediately") )
<TR>
<TD COLSPAN="2"><INPUT TYPE="checkbox" name="send_email">&nbsp; Send email to project announce list to notify of change? &nbsp;</TD>
</TR>
#else
<input type="hidden" name = "send_email" value="off">
#end
-->

<tr>
<td>&nbsp;</td>
<td>
<p>
<input type="hidden" name="newsID" value="$newsItem.getID()" />
<input type="submit" name="Button" value="Submit Changes" />
</p>
</td>
</tr>
</table>
</div>

</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>
d16 1
a16 2
Publish:
</th>
d63 1
a63 2
Remove:
</th>
@


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
@misc html usage revisions
@
text
@d2 3
@


1.6
log
@html usage revision to synch with scarab
@
text
@d12 1
a12 1
<table border="1" cellspacing="2" cellpadding="3" width="100%">
d109 1
a109 1
<TD COLSPAN="2" CLASS="PlainText"><INPUT TYPE="checkbox" name="send_email">&nbsp; Send email to project announce list to notify of change? &nbsp;</TD>
d130 1
a130 1
</div>@


1.5
log
@html usage revisions
@
text
@d1 1
a1 1
<div id="projectnewseditadvanced">
d12 1
a12 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.4
log
@ui recoded
@
text
@d6 1
a6 1
 $newsItem.getEventDateString() : $newsItem.getHeadline()
d11 1
d13 4
a16 4
 <tr>
  <td>
   Publish:
  </td>
d21 3
a23 3
   #set( $defaultMonth = $current_month )
   #set( $defaultDay = $current_day )
   #set( $defaultYear = $current_year )
d25 27
a51 27
   #set( $defaultMonth = $publish_month )
   #set( $defaultDay = $publish_day )
   #set( $defaultYear = $publish_year )
#end
  <td>
   #if( $publish.equals("immediately") )
    <p>
     <input name="publish" type="radio" value="immediately" checked="checked" />Immediately&nbsp;
    </p>
    <p>
     <input name="publish" type="radio" value="date" />On date:
	</p>
   #else
    <p>
     <input name="publish" type="radio" value="immediately" />Immediately&nbsp;
    </p>
    <p>
     <input name="publish" type="radio" value="date" checked="checked" />On date:
    </p>
		  #end
			<select name="publish_month">
			#parse( "org/tigris/helm/project/SelectMonth.vm" )
			</select>
			&nbsp;
			<select name="publish_day">
			#parse( "org/tigris/helm/project/SelectDay.vm" )
			</select>
d53 13
a65 13
			&nbsp;
			<select name="publish_year">
			#parse( "org/tigris/helm/project/SelectYear.vm" )
			</select>
#end
  </td>
 </tr>

 <tr>
  <td>
    Remove:
  </td>
  <td>
d69 3
a71 3
   #set( $defaultMonth = $default_remove_month )
   #set( $defaultDay = $current_day )
   #set( $defaultYear = $current_year )
d73 32
a104 32
   #set( $defaultMonth = $remove_month )
   #set( $defaultDay = $remove_day )
   #set( $defaultYear = $remove_year )
#end
   #if( $remove.equals("never") )
     <p>
      <input name="remove" type="radio" value="never" checked="checked" />Never&nbsp;
     </p>
     <p>
      <input name="remove" type="radio" value="date" />On date:
     </p>
   #else
     <p>
      <input name="remove" type="radio" value="never" />Never&nbsp;
     </p>
     <p>
      <input name="remove" type="radio" value="date" checked="checked" />On date:
     </p>
   #end
			<select name = "remove_month">
			#parse( "org/tigris/helm/project/SelectMonth.vm" )
			</select>
			&nbsp;
			<select name="remove_day">
			#parse( "org/tigris/helm/project/SelectDay.vm" )
			</select>
			&nbsp;
			<select name="remove_year">
			#parse( "org/tigris/helm/project/SelectYear.vm" )
			</select>
  </td>
 </tr>
d108 3
a110 3
        <TR>
          <TD COLSPAN="2" CLASS="PlainText"><INPUT TYPE="checkbox" name="send_email">&nbsp; Send email to project announce list to notify of change? &nbsp;</TD>
       </TR>
d112 1
a112 1
   <input type="hidden" name = "send_email" value="off">
d116 9
a124 10
 <tr>
  <td colspan="3">&nbsp;</td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td>
   <input type="hidden" name="newsID" value="$newsItem.getID()" />
   <input type="submit" name="Button" value="Submit Changes" />
  </td>
 </tr>
d126 1
d129 1
a129 1
  
@


1.3
log
@added two new fields: imageURl and original article URL.

Now on the List page headline is no longer linked. There is a "View" link that goes to the NewsItemView page. On the view page you see the two new fields and all other info.
@
text
@d1 16
a16 13
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap><b>Edit News Item:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN>
    <P><SPAN class="StatText"><b>$newsItem.getEventDateString() : $newsItem.getHeadline()</b></TD>
  </TR>
</TABLE>
<P>
<FORM ACTION="$servletName" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="100%">
	<TR>
		<TD  class="InputHeader" VALIGN="TOP">
			<P ALIGN="RIGHT"><B>Publish:</B>
		</TD>
d28 1
a28 1
		<TD  VALIGN="TOP" class="PlainText">
d30 13
a42 7
		    <INPUT name="publish" type="radio" value="immediately" CHECKED>Immediately&nbsp;
		    <BR>
		    <INPUT name="publish" type="radio" value="date">On date:
		  #else
		    <INPUT name="publish" type="radio" value="immediately" >Immediately&nbsp;
		    <BR>
		    <INPUT name="publish" type="radio" value="date" CHECKED>On date:
d44 1
a44 1
			<SELECT name = "publish_month">
d46 1
a46 1
			</SELECT>
d48 1
a48 1
			<SELECT name="publish_day">
d50 1
a50 1
			</SELECT>
d53 1
a53 1
			<SELECT name="publish_year">
d55 1
a55 1
			</SELECT>
d57 2
a58 2
      </TD>
	</TR>
d60 5
a64 5
	<TR>
		<TD  class="InputHeader" VALIGN="TOP">
			<P ALIGN="RIGHT"><B>Remove:</B>
	        </TD>
		<TD WIDTH="90%" VALIGN="TOP" class="PlainText">
d76 16
a91 10
                  #if( $remove.equals("never") )
		    <INPUT name="remove" type="radio" value="never" CHECKED>Never&nbsp;
		    <BR>
		    <INPUT name="remove" type="radio" value="date">On date:
		  #else
		    <INPUT name="remove" type="radio" value="never" >Never&nbsp;
		    <BR>
		    <INPUT name="remove" type="radio" value="date" CHECKED>On date:
		  #end
			<SELECT name = "remove_month">
d93 1
a93 1
			</SELECT>
d95 1
a95 1
			<SELECT name="remove_day">
d97 1
a97 1
			</SELECT>
d99 1
a99 1
			<SELECT name="remove_year">
d101 4
a104 3
			</SELECT>
	        </TD>
	</TR>
d115 11
a125 12
  <TR>
    <TD colspan="3">&nbsp;</TD>
  </TR>

	<TR>
		<TD >&nbsp;</TD>
		<TD >
		  <input type="hidden" name="newsID" value="$newsItem.getID()">
		  <input type="Submit" name="Button" value="Submit Changes"></TD>
	</TR>
</FORM>
</TABLE>
d127 1
d129 1
@


1.2
log
@Removed BRAND_TEMPLATE_ROOT, SERVLET_TEMPLATE_ROOT, and SANDBOX from use in #include and #parse directives (deprecated by multiple template paths).
@
text
@d4 1
a4 1
    <P><SPAN class="StatText"><b>$newsItem.getEventDate() : $newsItem.getHeadline()</b></TD>
@


1.1
log
@Adding Velocity templates.
@
text
@d36 1
a36 1
			#parse( "${SANDBOX}/helm/templates/org/tigris/helm/project/SelectMonth.vm" )
d40 1
a40 1
			#parse( "${SANDBOX}/helm/templates/org/tigris/helm/project/SelectDay.vm" )
d45 1
a45 1
			#parse( "${SANDBOX}/helm/templates/org/tigris/helm/project/SelectYear.vm" )
d77 1
a77 1
			#parse( "${SANDBOX}/helm/templates/org/tigris/helm/project/SelectMonth.vm" )
d81 1
a81 1
			#parse( "${SANDBOX}/helm/templates/org/tigris/helm/project/SelectDay.vm" )
d85 1
a85 1
			#parse( "${SANDBOX}/helm/templates/org/tigris/helm/project/SelectYear.vm" )
@

