You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2004/05/17 16:53:46 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/xslt/scheduler common.xsl

andreas     2004/05/17 07:53:46

  Modified:    src/webapp/lenya/xslt/notification message2xslt.xsl
               src/webapp/lenya/xslt/scheduler common.xsl
  Log:
  added notification for scheduling
  
  Revision  Changes    Path
  1.7       +4 -4      cocoon-lenya/src/webapp/lenya/xslt/notification/message2xslt.xsl
  
  Index: message2xslt.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/notification/message2xslt.xsl,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- message2xslt.xsl	13 Mar 2004 12:42:18 -0000	1.6
  +++ message2xslt.xsl	17 May 2004 14:53:46 -0000	1.7
  @@ -56,7 +56,7 @@
   <xsl:template match="/not:notification[@enabled = 'true']">
   	
   	<xslt:template match="not:notification">
  -		<input type="hidden" name="notification.subject"
  +		<input id="notification.subject" type="hidden" name="notification.subject"
   			value="{not:message/not:subject}"/>
   		<div class="lenya-box">
   			<div class="lenya-box-title">Notification</div>
  @@ -71,7 +71,7 @@
   				<tr>
   					<td class="lenya-entry-caption">Comment:</td>
   					<td>
  -						<textarea name="notification.message" class="lenya-form-element">
  +						<textarea id="notification.message" name="notification.message" class="lenya-form-element">
   							<xsl:text/>
   							<xsl:apply-templates select="not:message/not:body"/>
   							<xsl:text>&#160;</xsl:text>
  @@ -99,7 +99,7 @@
   	
   	
   	<xslt:template match="not:textarea">
  -		<textarea name="notification.tolist" class="lenya-form-element">&#160;</textarea>
  +		<textarea id="notification.tolist" name="notification.tolist" class="lenya-form-element">&#160;</textarea>
   	</xslt:template>
   	
   	
  
  
  
  1.17      +10 -2     cocoon-lenya/src/webapp/lenya/xslt/scheduler/common.xsl
  
  Index: common.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/scheduler/common.xsl,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- common.xsl	13 Mar 2004 12:42:07 -0000	1.16
  +++ common.xsl	17 May 2004 14:53:46 -0000	1.17
  @@ -114,7 +114,15 @@
         </input>
         </td>
         <td>
  -        <input i18n:attr="value" type="submit" value="Add" />
  +        <input type="hidden" name="notification.subject" value=""/>
  +        <input type="hidden" name="notification.message" value=""/>
  +        <input type="hidden" name="notification.tolist" value=""/>
  +        <input i18n:attr="value" type="submit" value="Add"
  +          onclick="
  +            elements['notification.subject'].value = document.getElementById('notification.subject').value;
  +            elements['notification.message'].value = document.getElementById('notification.message').value;
  +            elements['notification.tolist'].value = document.getElementById('notification.tolist').value;
  +          "/>
         </td>
       </tr>
     </xsl:template>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org