Changeset 2167

Show
Ignore:
Timestamp:
05/11/09 15:55:10
Author:
johnsa
Message:

admin client: expose topical areas in submissions comment for submitted event

Files:

Legend:

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

    r2166 r2167  
    332332} 
    333333#bwSubmittedEventCommentBlock p { 
     334  margin: 0; 
     335  padding: 1em 0 0 0; 
    334336  clear: both; 
    335337} 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r2166 r2167  
    10801080          '<xsl:call-template name="escapeApos"><xsl:with-param name="str" select="form/xproperties/node()[name()='X-BEDEWORK-CONTACT']/parameters/node()[name()='X-BEDEWORK-PARAM-URL']"/></xsl:call-template>', 
    10811081          '<xsl:call-template name="escapeApos"><xsl:with-param name="str" select="form/xproperties/node()[name()='X-BEDEWORK-CONTACT']/parameters/node()[name()='X-BEDEWORK-PARAM-EMAIL']"/></xsl:call-template>', 
    1082           '<ul><xsl:for-each select="form/categories/current//keyword"><li><xsl:call-template name="escapeApos"><xsl:with-param name="str" select="."/></xsl:call-template></li></xsl:for-each></ul>', 
     1082          '<xsl:for-each select="form/xproperties/node()[name()='X-BEDEWORK-ALIAS']/values/text"><xsl:call-template name="escapeApos"><xsl:with-param name="str"><xsl:call-template name="substring-afterLastInstanceOf"><xsl:with-param name="string" select="."/><xsl:with-param name="char">/</xsl:with-param></xsl:call-template></xsl:with-param></xsl:call-template><br/></xsl:for-each>', 
    10831083          '<xsl:call-template name="escapeApos"><xsl:with-param name="str" select="form/xproperties/node()[name()='X-BEDEWORK-CATEGORIES']/values/text"/></xsl:call-template>', 
    10841084          '<xsl:call-template name="escapeApos"><xsl:with-param name="str" select="form/xproperties/node()[name()='X-BEDEWORK-SUBMIT-COMMENT']/values/text"/></xsl:call-template>'); 
     
    10911091          <a href="mailto:{$submitterEmail}?subject=[Event%20Submission] {$eventTitle}" title="Email {$submitterEmail}" class="submitter"> 
    10921092            <xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-SUBMITTEDBY']/values/text"/> 
    1093           </a><br/
    1094           <a href="mailto:{$submitterEmail}?subject=[Event%20Submission] {$eventTitle}" title="Email {$submitterEmail}"> 
     1093          </a><xsl:text> </xsl:text
     1094          (<a href="mailto:{$submitterEmail}?subject=[Event%20Submission] {$eventTitle}" title="Email {$submitterEmail}"> 
    10951095            <img src="{$resourcesRoot}/resources/email.gif" border="0"/> 
    10961096            send message 
    1097           </a> 
     1097          </a>) 
    10981098        </div> 
    10991099        <h4>Comments from Submitter</h4> 
  • trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js

    r2166 r2167  
    243243 * contactUrl: value of contact's parameter X-BEDEWORK-PARAM-URL 
    244244 * contactEmail: value of contact's parameter X-BEDEWORK-PARAM-EMAIL 
    245  * categories: list of categories derived from submitted topical areas 
     245 * topicalAreas: list of submitted topical areas (may not match the event admin's view 
    246246 * category: value of x-property X-BEDEWORK-CATEGORIES - a freeform user suggestion 
    247247 * notes: value of the x-property X-BEDEWORK-SUBMIT-COMMENT 
    248248 */ 
    249 function bwSubmitComment(locationAddress,locationSubaddress,locationUrl,contactName,contactPhone,contactUrl,contactEmail,categories,category,notes) { 
     249function bwSubmitComment(locationAddress,locationSubaddress,locationUrl,contactName,contactPhone,contactUrl,contactEmail,topicalAreas,category,notes) { 
    250250  this.locationAddress = locationAddress; 
    251251  this.locationSubaddress = locationSubaddress; 
     
    255255  this.contactUrl = contactUrl; 
    256256  this.contactEmail = contactEmail; 
    257   this.categories = categories; 
     257  this.topicalAreas = topicalAreas; 
    258258  this.category = category; 
    259259  this.notes = notes; 
     
    278278      output += '</table>'; 
    279279    } 
    280     if (this.categories != "") { 
     280    if (this.topicalAreas != "") { 
    281281      output += '<table>'; 
    282       output += '<tr><th>Suggested Categories:</th></tr>'; 
    283       output += '<tr><td>' + this.categories + '</td></tr>'; 
     282      output += '<tr><th>Suggested Topical Areas:</th></tr>'; 
     283      output += '<tr><td>' + this.topicalAreas + '</td></tr>'; 
    284284      output += '</table>'; 
    285285    } 
    286286    if (this.category != "") { 
    287       output += '<p><strong>Type of Event:</strong> (if categories weren\'t sufficient)<br/>'; 
     287      output += '<p><strong>Type of Event:</strong> (if Topical Areas weren\'t sufficient)<br/>'; 
    288288      output += this.category; 
    289289      output += '</p>';