Changeset 2121
- Timestamp:
- 04/08/09 23:59:42
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/resources/xsl/default/default/bedeworkAccess.xsl
r2083 r2121 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 2 <xsl:stylesheet 3 version="1.0" 4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 5 xmlns="http://www.w3.org/1999/xhtml"> 6 <xsl:output 7 method="xml" 8 indent="no" 9 media-type="text/html" 10 doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" 11 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 12 standalone="yes" 13 omit-xml-declaration="yes"/> 3 14 <xsl:template name="entityAccessForm"> 4 15 <xsl:param name="type"/><!-- optional: currently used for inbox and outbox to conditionally display scheduling access --> trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r2119 r2121 1538 1538 </xsl:choose> 1539 1539 </xsl:variable> 1540 <xsl:variable name="calendarColor"> 1541 <xsl:choose> 1542 <xsl:when test="xproperties/X-BEDEWORK-ALIAS/values/text = /bedework/myCalendars//calendar/path"><xsl:value-of select="/bedework/myCalendars//calendar[path=xproperties/X-BEDEWORK-ALIAS/values/text]/color"/></xsl:when> 1543 <xsl:when test="calendar/color != ''"><xsl:value-of select="calendar/color"/></xsl:when> 1544 </xsl:choose> 1545 </xsl:variable> 1540 1546 <!-- Calendar colors are set in the add/modify calendar forms which, if present, 1541 1547 override the background-color set by eventClass. User styles should … … 1544 1550 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" 1545 1551 class="{$eventRootClass} {$eventClass}"> 1546 <xsl:if test="status != 'CANCELLED' and calendar/color != ''">1547 <xsl:attribute name="style">background-color: <xsl:value-of select=" calendar/color"/>; color: black;</xsl:attribute>1552 <xsl:if test="status != 'CANCELLED' and $calendarColor != ''"> 1553 <xsl:attribute name="style">background-color: <xsl:value-of select="$calendarColor"/>; color: black;</xsl:attribute> 1548 1554 </xsl:if> 1549 1555 <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if> … … 2596 2602 </xsl:otherwise> 2597 2603 </xsl:choose> 2598 <script language="JavaScript"type="text/javascript">2604 <script type="text/javascript"> 2599 2605 <xsl:comment> 2600 2606 startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/'); … … 2608 2614 </span --> 2609 2615 <input type="text" name="bwEventWidgetStartDate" id="bwEventWidgetStartDate" size="10"/> 2610 <script language="JavaScript"type="text/javascript">2616 <script type="text/javascript"> 2611 2617 <xsl:comment> 2612 2618 $("#bwEventWidgetStartDate").datepicker({ … … 2693 2699 </xsl:otherwise> 2694 2700 </xsl:choose> 2695 <script language="JavaScript"type="text/javascript">2701 <script type="text/javascript"> 2696 2702 <xsl:comment> 2697 2703 endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/'); … … 2705 2711 </span--> 2706 2712 <input type="text" name="bwEventWidgetEndDate" id="bwEventWidgetEndDate" size="10"/> 2707 <script language="JavaScript"type="text/javascript">2713 <script type="text/javascript"> 2708 2714 <xsl:comment> 2709 2715 $("#bwEventWidgetEndDate").datepicker({ … … 3294 3300 <input type="hidden" name="bwEventUntilDate" id="bwEventUntilDate" size="10"/> 3295 3301 <input type="text" name="bwEventWidgetUntilDate" id="bwEventWidgetUntilDate" size="10" onfocus="selectRecurCountUntil('recurUntil')"/> 3296 <script language="JavaScript"type="text/javascript">3302 <script type="text/javascript"> 3297 3303 <xsl:comment> 3298 3304 $("#bwEventWidgetUntilDate").datepicker({ … … 3551 3557 iconURL="{$resourcesRoot}/resources/calIcon.gif"/--> 3552 3558 <input type="text" name="eventRdate.date" id="bwEventWidgetRdate" size="10"/> 3553 <script language="JavaScript"type="text/javascript">3559 <script type="text/javascript"> 3554 3560 <xsl:comment> 3555 3561 $("#bwEventWidgetRdate").datepicker({ … … 4894 4900 <xsl:with-param name="colorFieldId">bwCalColor</xsl:with-param> 4895 4901 </xsl:call-template> 4896 <!-- select name="calendar.color">4897 <option value="">default</option>4898 <xsl:for-each select="document('../../../bedework-common/default/default/subColors.xml')/subscriptionColors/color">4899 <xsl:variable name="subColor" select="."/>4900 <xsl:variable name="subColorClass" select="@classname"/>4901 <option value="{$subColor}" style="background-color:{$subColor};color:black;">4902 <xsl:value-of select="@name"/>4903 </option>4904 </xsl:for-each>4905 </select-->4906 4902 </td> 4907 4903 </tr> … … 5576 5572 </xsl:template> 5577 5573 5574 <!-- This template is deprecated --> 5578 5575 <xsl:template name="addPublicAlias"> 5579 5576 <h2>Subscribe to a Public Calendar</h2> … … 6841 6838 </xsl:choose> 6842 6839 </div> 6843 <!--<script language="JavaScript"type="text/javascript">6840 <!--<script type="text/javascript"> 6844 6841 <xsl:comment> 6845 6842 startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback'); … … 6889 6886 </xsl:choose> 6890 6887 </div> 6891 <!--<script language="JavaScript"type="text/javascript">6888 <!--<script type="text/javascript"> 6892 6889 <xsl:comment> 6893 6890 endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(/bedework/formElements/form/start/yearText/input/@value)"/>, <xsl:value-of select="number(/bedework/formElements/form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(/bedework/formElements/form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback');
