head	1.15;
access;
symbols
	TIGRIS_1_1_0RC2:1.13
	TIGRIS_1_1_0RC1:1.13
	TIGRIS_1_1:1.13.0.4
	TIGRIS_1_0_8:1.13
	TIGRIS_1_0_8RC3:1.13
	TIGRIS_1_0_8RC2:1.13
	TIGRIS_1_0_8RC1:1.13
	TIGRIS_1_0_7:1.13
	TIGRIS_1_0_7RC3:1.13
	TIGRIS_1_0_7RC2:1.13
	TIGRIS_1_0_7RC1:1.13
	TIGRIS_1_0_6:1.13
	TIGRIS_1_0_6RC5:1.13
	TIGRIS_1_0_6RC4:1.13
	TIGRIS_1_0_6RC3:1.13
	TIGRIS_1_0_6RC2:1.13
	TIGRIS_1_0_6RC1:1.13
	TIGRIS_1_0_5:1.13
	TIGRIS_1_0_5RC6:1.13
	TIGRIS_1_0_5RC5:1.13
	TIGRIS_1_0_5RC4:1.13
	TIGRIS_1_0_5RC3:1.13
	TIGRIS_1_0_5RC2:1.13
	TIGRIS_1_0_5RC1:1.13
	TIGRIS_1_0_4:1.13
	TIGRIS_1_0_3:1.13
	TIGRIS_1_0_2:1.13
	TIGRIS_1_0_1:1.13
	TIGRIS_1_0:1.13.0.6
	TIGRIS_1_0_0:1.13
	TIGRIS_1_0_0_RC1:1.13.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.10
	TIGRIS_0_9_2_3:1.10
	HELM_PEER_PORT_BRANCH:1.1.1.2
	TURBINE_PEER:1.10
	TIGRIS_0_9_2_1:1.10
	TIGRIS_0_9_2:1.10.0.4
	TIGRIS_0_9_0:1.10.0.2
	TIGRIS_0_8_4:1.5.0.2
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1;
locks; strict;
comment	@# @;


1.15
date	2001.05.23.02.04.15;	author dlr;	state dead;
branches;
next	1.14;

1.14
date	2001.05.23.00.43.49;	author ms;	state Exp;
branches;
next	1.13;

1.13
date	2001.03.05.19.34.25;	author elicia;	state Exp;
branches;
next	1.12;

1.12
date	2001.02.21.01.08.31;	author dlr;	state Exp;
branches;
next	1.11;

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

1.10
date	2000.12.15.23.57.23;	author elicia;	state Exp;
branches
	1.10.6.1;
next	1.9;

1.9
date	2000.12.15.01.19.20;	author kmaples;	state Exp;
branches;
next	1.8;

1.8
date	2000.12.12.23.04.08;	author elicia;	state Exp;
branches;
next	1.7;

1.7
date	2000.12.07.02.31.11;	author elicia;	state Exp;
branches;
next	1.6;

1.6
date	2000.12.05.00.03.37;	author susank;	state Exp;
branches;
next	1.5;

1.5
date	2000.11.28.22.02.40;	author elicia;	state Exp;
branches;
next	1.4;

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

1.3
date	2000.11.22.23.50.14;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2000.11.22.02.22.48;	author elicia;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.12.21.18.23;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.18.23;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.36.59;	author dlr;	state Exp;
branches;
next	;

1.10.6.1
date	2001.02.16.22.48.26;	author elicia;	state Exp;
branches;
next	1.10.6.2;

1.10.6.2
date	2001.02.20.20.04.11;	author elicia;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Removed WM templates in favor of Velocity templates.
@
text
@<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Edit News Item: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>
  </TR>
</TABLE>
<P>
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" WIDTH="100%">
<FORM ACTION="ProjectNewsEdit" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
	<TR>
		<TD WIDTH="210" class="InputHeader" VALIGN="MIDDLE">
			<P ALIGN="RIGHT"><B>Date&nbsp;of&nbsp;event:</B>
		</TD>
		<TD WIDTH="90%" VALIGN="TOP">
## Set date defaults as database values, 
## or user-entered values in case of error
#set $defaultMonth = $event_month
#set $defaultDay = $event_day
#set $defaultYear = $event_year
			<SELECT name = "event_month">
			#parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectMonth.wm"
			</SELECT>
			&nbsp;
			<SELECT name="event_day">
			#parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectDay.wm"
			</SELECT>
			&nbsp;
#if ($isDecember)
{
			<SELECT name="event_year">
			#parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectYear.wm"
			</SELECT>
}
	        </TD>
	</TR>
	<TR>
		<TD class="InputHeader" WIDTH="210" VALIGN="MIDDLE">
			<P ALIGN="RIGHT"><B>Headline:</B>
		</TD>
		<TD WIDTH="90%" VALIGN="TOP"><TEXTAREA NAME="headline" ROWS="2" COLS="45">#if ($errors) {$headline} #else {$newsItem.getHeadline()} </TEXTAREA></TD>
	</TR>
	<TR>
		<TD class="InputHeader" WIDTH="210" VALIGN="top">
			<P ALIGN="RIGHT"><B>Body:</B>
		</TD>
		<TD WIDTH="90%" VALIGN="TOP"><TEXTAREA WRAP="physical" NAME="body" ROWS="18" COLS="45">#if ($errors){$body} #else {$newsItem.getBody()}</TEXTAREA></TD>
	</TR>

	<TR>
		<TD WIDTH="210">&nbsp;</TD>
		<TD WIDTH="90%">
		  <input type="hidden" name="newsID" value="$newsItem.getID()">
		  <input type="Submit" name="Button" value="Submit Changes">
		  <input type="Submit" name="Button" value="Advanced Options"></TD>
	</TR>
</FORM>
</TABLE>

  
@


1.14
log
@only let next year be specified in december of previous year
@
text
@@


1.13
log
@tweaked spacing, fonts, layout, etc.
@
text
@d27 2
d32 1
@


1.12
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d6 2
a7 2

<TABLE BORDER="0" WIDTH="100%">
d39 1
a39 1
		<TD class="InputHeader" WIDTH="210" VALIGN="MIDDLE">
@


1.11
log
@broke up add and edit into two steps (advanced options optional)
@
text
@a18 1

@


1.10
log
@changed links to support vhosting and non-vhosting modes
@
text
@d37 1
a37 1
		<TD WIDTH="90%" VALIGN="TOP"><TEXTAREA NAME="headline" ROWS="2" COLS="45">#if ($errors) {$headline} #else {$newsItem.getHeadline()}</TEXTAREA></TD>
a44 21
	<TR>
		<TD WIDTH="210">&nbsp;</TD>
		<TD WIDTH="90%">&nbsp;</TD>
	</TR>
	<TR>
		<TD WIDTH="210" class="InputHeader" VALIGN="TOP">
			<P ALIGN="RIGHT"><B>Publish:</B>
		</TD>
		<TD WIDTH="90%" VALIGN="TOP" class="InputHeader">
## 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
}
a45 73
                  #if ($publish.equals("immediately"))
		  {
		    <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:
		  }
			<SELECT name = "publish_month">
			#parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectMonth.wm"
			</SELECT>
			&nbsp;
			<SELECT name="publish_day">
			#parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectDay.wm"
			</SELECT>
			&nbsp;
			<SELECT name="publish_year">
			#parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectYear.wm"
			</SELECT>
	        </TD>
	</TR>
	<TR>
		<TD WIDTH="210" class="InputHeader" VALIGN="TOP">
			<P ALIGN="RIGHT"><B>Remove:</B>
	        </TD>
		<TD WIDTH="90%" VALIGN="TOP" class="InputHeader">
## 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 = $default_remove_day
   #set $defaultYear = $default_remove_year
} #else {
   #set $defaultMonth = $remove_month
   #set $defaultDay = $remove_day
   #set $defaultYear = $remove_year
}
                  #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:
		  }
			<SELECT name = "remove_month">
			#parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectMonth.wm"
			</SELECT>
			&nbsp;
			<SELECT name="remove_day">
			#parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectDay.wm"
			</SELECT>
			&nbsp;
			<SELECT name="remove_year">
			#parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectYear.wm"
			</SELECT>
	        </TD>
	</TR>
#if ($publish.equals("immediately"))
{
        <TR>
	       <TD WIDTH="210">&nbsp;</TD>
               <TD  CLASS="InputHeader"><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">
}
a48 1
		  <input type="hidden" name="projectID" value="$newsItem.getProjectID()">
d50 2
a51 1
		  <input type="Submit" name="Button" value="Submit Changes"></TD>
@


1.10.6.1
log
@ported to turbine
@
text
@d19 1
a19 1
event month=$event_month
d37 1
a37 1
		<TD WIDTH="90%" VALIGN="TOP"><TEXTAREA NAME="headline" ROWS="2" COLS="45">#if ($errors) {$headline} #else {$newsItem.getHeadline()} </TEXTAREA></TD>
d45 21
d67 73
d143 1
d145 1
a145 2
		  <input type="Submit" name="Button" value="Submit Changes">
		  <input type="Submit" name="Button" value="Advanced Options"></TD>
@


1.10.6.2
log
@removed debugging code
@
text
@d19 1
@


1.9
log
@Changed wrap type to physical so that when displayed through eyebrowse, the
lines don't trail endlessly to the right.
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Edit News Item: <SPAN CLASS="ProjectNameHeader"><A HREF="/servlets/ProjectHome?projectID=$currentProject.getID()">$currentProject.getName()</a></SPAN></TD>
@


1.8
log
@setting removal date default to one month from now
@
text
@d43 1
a43 1
		<TD WIDTH="90%" VALIGN="TOP"><TEXTAREA WRAP="virtual" NAME="body" ROWS="18" COLS="45">#if ($errors){$body} #else {$newsItem.getBody()}</TEXTAREA></TD>
@


1.7
log
@added checkbox for user to indicate if they wish an email to be sent to the project announce list of the news item change
@
text
@d100 2
a101 2
   #set $defaultDay = $current_day
   #set $defaultYear = $current_year
d137 3
a139 1
}    
@


1.6
log
@changed project name in title to link to ProjectHome
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d130 8
@


1.5
log
@pre-populating fields with correct values
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Edit News Item: <SPAN CLASS="ProjectNameHeader">$currentProject.getName()</SPAN></TD>
@


1.4
log
@added radio buttons to allow publish date field to default to "immediately", andremove date field to default to "never"
@
text
@d14 6
a19 3
		  #set $month = $event_month
		  #set $day = $event_day
		  #set $year = $event_year
d37 1
a37 1
		<TD WIDTH="90%" VALIGN="TOP"><TEXTAREA NAME="headline" ROWS="2" COLS="45">$newsItem.getHeadline()</TEXTAREA></TD>
d43 1
a43 1
		<TD WIDTH="90%" VALIGN="TOP"><TEXTAREA WRAP="virtual" NAME="body" ROWS="18" COLS="45">$newsItem.getBody()</TEXTAREA></TD>
d54 14
a67 1
		  #if ($publish.equals("immediately"))
a76 3
		  #set $month = $publish_month
		  #set $day = $publish_day
		  #set $year = $publish_year
d95 13
a107 1
		  #if ($remove.equals("never"))
a115 3
		  #set $month = $remove_month
		  #set $day = $remove_day
		  #set $year = $remove_year
@


1.3
log
@Some preemptive button name changes.
@
text
@d47 2
a48 2
		<TD WIDTH="210" class="InputHeader" VALIGN="MIDDLE">
			<P ALIGN="RIGHT"><B>Publish on:</B>
d50 11
a60 1
		<TD WIDTH="90%" VALIGN="TOP">
d78 13
a90 4
		<TD WIDTH="210" class="InputHeader" VALIGN="MIDDLE">
			<P ALIGN="RIGHT"><B>Remove on:</B>
		</TD>
		<TD WIDTH="90%" VALIGN="TOP">
d94 1
@


1.2
log
@modernized files

added fields for publish_on and remove_on fields
@
text
@d93 1
a93 1
		  <input type="Submit" name="Button" value="Edit News Item"></TD>
@


1.1
log
@Initial revision
@
text
@d14 4
a17 1
			<SELECT name = "month">
d21 1
a21 1
			<SELECT name="day">
d25 1
a25 1
			<SELECT name="year">
d47 42
d92 1
a92 1
		  <input type="hidden" name="newsID" value="$newsItem.getNewsID()">
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Edit News Item: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>
d14 1
a14 6
## Set date defaults as database values, 
## or user-entered values in case of error
#set $defaultMonth = $event_month
#set $defaultDay = $event_day
#set $defaultYear = $event_year
			<SELECT name = "event_month">
d18 1
a18 1
			<SELECT name="event_day">
d22 1
a22 1
			<SELECT name="event_year">
d31 1
a31 1
		<TD WIDTH="90%" VALIGN="TOP"><TEXTAREA NAME="headline" ROWS="2" COLS="45">#if ($errors) {$headline} #else {$newsItem.getHeadline()} </TEXTAREA></TD>
d37 5
a41 1
		<TD WIDTH="90%" VALIGN="TOP"><TEXTAREA WRAP="physical" NAME="body" ROWS="18" COLS="45">#if ($errors){$body} #else {$newsItem.getBody()}</TEXTAREA></TD>
a42 1

d46 3
a48 3
		  <input type="hidden" name="newsID" value="$newsItem.getID()">
		  <input type="Submit" name="Button" value="Submit Changes">
		  <input type="Submit" name="Button" value="Advanced Options"></TD>
@

