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


1.13
date	2001.08.20.22.29.23;	author tfahrner;	state Exp;
branches;
next	1.12;

1.12
date	2001.08.03.05.45.07;	author tfahrner;	state Exp;
branches;
next	1.11;

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

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

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

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

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

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

1.5
date	2001.06.14.20.58.49;	author neil;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.08.17.33.47;	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.13
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@<div id="projectnewsedit" class="app">


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

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

<div class="axial">
<table border="1" cellspacing="2" cellpadding="3">
 <tr>
  <th nowrap="nowrap">Date&nbsp;of&nbsp;event</th>
  <td>
## 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( "org/tigris/helm/project/SelectMonth.vm" )
			</select>
			&nbsp;
			<select name="event_day">
			#parse( "org/tigris/helm/project/SelectDay.vm" )
			</select>
			&nbsp;
#if( $isDecember )
			<select name="event_year">
			#parse( "org/tigris/helm/project/SelectYear.vm" )
			</select>
#end
  </td>
 </tr>
 <tr>
  <th>Headline</th>
  <td><textarea name="headline" rows="2" cols="45">#if( !$errors.isEmpty() )$headline#else$newsItem.Headline#end</textarea></td>
 </tr>

 <tr>
  <th>Body</th>
  <td><textarea wrap="wrap" name="body" rows="18" cols="45">#if( !$errors.isEmpty() )$body#else$newsItem.Body #end</textarea></td>
 </tr>

 <tr>
  <th>Image URL</th>
  <td>
   <input type="text" name="imageUrl" size="55" maxlength="128" value=
      #if (!$errors.isEmpty() )$imageurl#else$newsItem.ImageUrl#end
    />
  </td>
 </tr>

 <tr>
  <th>Original Article URL</th>
  <td>
   <input type="text" name="articleUrl" size="55" maxlength="128" value=
    #if (!$errors.isEmpty() )$articleurl#else$newsItem.OriginalArticleUrl#end />
  </td>
 </tr>

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

</form>

</div>
@


1.12
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a1 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d11 1
a11 1
  <th nowrap="nowrap">Date&nbsp;of&nbsp;event:</th>
d34 1
a34 1
  <th>Headline:</th>
d39 1
a39 1
  <th>Body:</th>
d44 1
a44 1
  <th>Image URL:</th>
d53 1
a53 1
  <th>Original Article URL:</th>
@


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


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


1.9
log
@misc html usage revisions
@
text
@d2 3
@


1.8
log
@html usage revision to synch with scarab
@
text
@d8 1
a8 1
<table border="1" cellspacing="2" cellpadding="3" width="100%">
@


1.7
log
@eliminated white space in fields.
@
text
@d1 1
a1 1
<div id="projectnewsedit">
d8 1
a8 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.6
log
@html usage revisions
@
text
@d34 1
a34 1
  <td><textarea name="headline" rows="2" cols="45">#if( $errors )$headline#else$newsItem.getHeadline()#end</textarea></td>
d39 1
a39 1
  <td><textarea wrap="wrap" name="body" rows="18" cols="45">#if( $errors )$body}#else$newsItem.getBody() #end</textarea></td>
d46 1
a46 5
      #if ($errors)
        "$imageurl"
      #else 
        "$newsitem.getimageurl()"
      #end
d55 1
a55 1
    #if ($errors) "$articleurl" #else "$newsitem.getoriginalarticleurl()" #end />
@


1.5
log
@ui recode: adding axial class
@
text
@d66 1
d70 1
@


1.4
log
@ui recoded
@
text
@d7 1
d10 1
a10 1
  <td nowrap="nowrap">Date&nbsp;of&nbsp;event:</td>
d33 1
a33 1
  <td>Headline:</td>
d38 1
a38 1
  <td>Body:</td>
d43 1
a43 1
  <td>Image URL:</td>
d47 1
a47 1
        $imageurl
d49 1
a49 1
        $newsitem.getimageurl()
d56 1
a56 1
  <td>Original Article URL:</td>
d59 1
a59 1
    #if ($errors) $articleurl #else $newsitem.getoriginalarticleurl() #end />
d72 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 10
a10 13
<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">
d16 1
a16 1
			<SELECT name = "event_month">
d18 1
a18 1
			</SELECT>
d20 1
a20 1
			<SELECT name="event_day">
d22 1
a22 1
			</SELECT>
d25 1
a25 1
			<SELECT name="event_year">
d27 1
a27 1
			</SELECT>
d29 16
a44 21
	        </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()#end</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() #end</TEXTAREA></TD>
	</TR>


    <TR>
        <TD class="InputHeader" valign="top"><b>Image URL:</b></td>
        <td width="90%" valign="top">
          <input type="text" name="imageUrl" size="55" maxchars="128" value=
d46 1
a46 1
        $imageUrl
d48 25
a72 27
        $newsItem.getImageUrl()
      #end>
    </TD>
  </TR>

  <TR>
    <TD>&nbsp;</td>
    <td width="100%">&nbsp;</td>
  </TR>

  <TR>
    <td class="InputHeader" valign="top"><b>Original Article URL:</b></td>
    <td width="90%" valign="top">
      <input type="text" name="articleUrl" size="55" maxchars="128" value=
      #if ($errors) $articleUrl #else $newsItem.getOriginalArticleUrl() #end>
    </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>
d74 1
a74 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
@d38 1
a38 2
		<TD WIDTH="90%" VALIGN="TOP"><TEXTAREA NAME="headline" ROWS="2" COLS="45">#if( $errors )$headline}
 #else$newsItem.getHeadline()} </TEXTAREA></TD>
d40 1
d45 1
a45 2
		<TD WIDTH="90%" VALIGN="TOP"><TEXTAREA WRAP="physical" NAME="body" ROWS="18" COLS="45">#if( $errors )$body}
 #else$newsItem.getBody()}</TEXTAREA></TD>
d47 26
@


1.1
log
@Adding Velocity templates.
@
text
@d20 1
a20 1
			#parse( "${SANDBOX}/helm/templates/org/tigris/helm/project/SelectMonth.vm" )
d24 1
a24 1
			#parse( "${SANDBOX}/helm/templates/org/tigris/helm/project/SelectDay.vm" )
d29 1
a29 1
			#parse( "${SANDBOX}/helm/templates/org/tigris/helm/project/SelectYear.vm" )
@

