Changeset 1628
- Timestamp:
- 11/30/07 07:46:29
- Files:
-
- branches/xslt-rewrite/deployment/resources/xsl/default/default/event-form.xsl (modified) (1 diff)
- branches/xslt-rewrite/deployment/resources/xsl/default/default/event-form.xsl.orig (added)
- branches/xslt-rewrite/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/xslt-rewrite/deployment/resources/xsl/default/default/event-form.xsl
r1622 r1628 7290 7290 </xsl:choose> 7291 7291 </xsl:template> 7292 7293 <xsl:template match="formElements" mode="addEvent"> 7294 <!-- The name "eventForm" is referenced by several javascript functions. Do not 7295 change it without modifying bedework.js --> 7296 <form name="eventForm" method="post" action="{$addEvent}" id="standardForm" onsubmit="setEventFields(this)"> 7297 <h2> 7298 <span class="formButtons"> 7299 <input name="submit" type="submit" value="save"/> 7300 <input name="cancelled" type="submit" value="cancel"/> 7301 </span> 7302 <xsl:choose> 7303 <xsl:when test="form/entityType = '2'">Add Task</xsl:when> 7304 <xsl:when test="form/scheduleMethod = '2'">Add Meeting</xsl:when> 7305 <xsl:otherwise>Add Event</xsl:otherwise> 7306 </xsl:choose> 7307 </h2> 7308 <xsl:apply-templates select="." mode="eventForm"/> 7309 </form> 7310 </xsl:template> 7311 7312 <xsl:template match="formElements" mode="editEvent"> 7313 <!-- The name "eventForm" is referenced by several javascript functions. Do not 7314 change it without modifying bedework.js --> 7315 <form name="eventForm" method="post" action="{$updateEvent}" id="standardForm" onsubmit="setEventFields(this)"> 7316 <h2> 7317 <span class="formButtons"> 7318 <input name="submit" type="submit" value="save"/> 7319 <input name="cancelled" type="submit" value="cancel"/> 7320 </span> 7321 <xsl:choose> 7322 <xsl:when test="form/entityType = '2'">Edit Task</xsl:when> 7323 <xsl:when test="form/scheduleMethod = '2'">Edit Meeting</xsl:when> 7324 <xsl:otherwise>Edit Event</xsl:otherwise> 7325 </xsl:choose> 7326 </h2> 7327 <xsl:apply-templates select="." mode="eventForm"/> 7328 </form> 7329 </xsl:template> 7292 7330 </xsl:stylesheet> branches/xslt-rewrite/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1627 r1628 879 879 </table> 880 880 </xsl:template> 881 882 <!--==== ADD EVENT ====-->883 <xsl:template match="formElements" mode="addEvent">884 <!-- The name "eventForm" is referenced by several javascript functions. Do not885 change it without modifying bedework.js -->886 <form name="eventForm" method="post" action="{$addEvent}" id="standardForm" onsubmit="setEventFields(this)">887 <h2>888 <span class="formButtons">889 <input name="submit" type="submit" value="save"/>890 <input name="cancelled" type="submit" value="cancel"/>891 </span>892 <xsl:choose>893 <xsl:when test="form/entityType = '2'">Add Task</xsl:when>894 <xsl:when test="form/scheduleMethod = '2'">Add Meeting</xsl:when>895 <xsl:otherwise>Add Event</xsl:otherwise>896 </xsl:choose>897 </h2>898 <xsl:apply-templates select="." mode="eventForm"/>899 </form>900 </xsl:template>901 902 <!--==== EDIT EVENT ====-->903 <xsl:template match="formElements" mode="editEvent">904 <!-- The name "eventForm" is referenced by several javascript functions. Do not905 change it without modifying bedework.js -->906 <form name="eventForm" method="post" action="{$updateEvent}" id="standardForm" onsubmit="setEventFields(this)">907 <h2>908 <span class="formButtons">909 <input name="submit" type="submit" value="save"/>910 <input name="cancelled" type="submit" value="cancel"/>911 </span>912 <xsl:choose>913 <xsl:when test="form/entityType = '2'">Edit Task</xsl:when>914 <xsl:when test="form/scheduleMethod = '2'">Edit Meeting</xsl:when>915 <xsl:otherwise>Edit Event</xsl:otherwise>916 </xsl:choose>917 </h2>918 <xsl:apply-templates select="." mode="eventForm"/>919 </form>920 </xsl:template>921 922 881 <xsl:template name="buildNumberOptions"> 923 882 <xsl:param name="current"/>
