Changeset 2161

Show
Ignore:
Timestamp:
05/08/09 14:56:48
Author:
johnsa
Message:

admin client: produce email fields for notifiying event submitter

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r2160 r2161  
    217217 
    218218  <!-- Other generally useful global variables --> 
    219   <xsl:variable name="publicCal">/cal</xsl:variable> 
     219  <xsl:variable name="publicCal">http://localhost:8080/cal</xsl:variable> 
    220220 
    221221  <!-- the following variable can be set to "true" or "false"; 
     
    10641064    <xsl:variable name="guid" select="guid"/> 
    10651065    <xsl:variable name="recurrenceId" select="recurrenceId"/> 
     1066    <xsl:variable name="eventTitle" select="form/title/input/@value"/> 
    10661067 
    10671068    <h2>Event Information</h2> 
     
    10861087          Submitted by 
    10871088          <xsl:variable name="submitterEmail" select="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTER-EMAIL']/values/text"/> 
    1088           <xsl:variable name="eventTitle" select="form/title/input/@value"/> 
    10891089          <a href="mailto:{$submitterEmail}?subject=[Event%20Submission] {$eventTitle}" title="Email {$submitterEmail}"> 
    10901090            <xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTEDBY']/values/text"/> 
     
    11391139            <xsl:otherwise><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-SUBMIT-STATUS']/values/text"/></xsl:otherwise> 
    11401140          </xsl:choose> 
     1141        </xsl:attribute> 
     1142      </input> 
     1143 
     1144      <!-- Setup email notification fields --> 
     1145      <input type="hidden" id="submitNotification" name="submitNotification" value="false"/> 
     1146      <input type="hidden" name="snsubject" value="Event Approved: {$eventTitle}"/> 
     1147      <input type="hidden" name="sntext"> 
     1148        <xsl:attribute name="value"> 
     1149           Your event has been approved. 
     1150 
     1151           EVENT DETAILS 
     1152           ------------- 
     1153           Title: <xsl:value-of select="$eventTitle"/> 
     1154           Dates: 
     1155           URL: <xsl:value-of select="$publicCal"/>/event/eventView.do?subid=<xsl:value-of select="$subscriptionId"/>&amp;calPath=<xsl:value-of select="$calPathEncoded"/>&amp;guid=<xsl:value-of select="$guid"/>&amp;recurrenceId=<xsl:value-of select="$recurrenceId"/> 
    11411156        </xsl:attribute> 
    11421157      </input> 
  • trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js

    r2158 r2161  
    699699  newCalPath = document.getElementById("newCalPath"); 
    700700  newCalPath.value = publishingCal; 
    701 
    702  
    703  
     701 
     702  // If email notification is enabled, set field to true 
     703  // (set to 'true' for now to get the feature working) 
     704  submitNotification = document.getElementById("submitNotification"); 
     705  submitNotification.value = true; 
     706
     707 
     708