Changeset 3592
- Timestamp:
- 07/24/12 10:16:39
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r3591 r3592 1582 1582 </xsl:choose> 1583 1583 </xsl:variable> 1584 <xsl:choose>1585 <xsl:when test="form/allDay/input/@checked='checked'">1586 <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/>1587 <input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayStartDateField"/>1588 < input type="hidden" name="eventEndDate.dateOnly" value="on" id="allDayEndDateField"/>1589 </xsl:when>1590 < xsl:otherwise>1591 <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/>1592 <input type="hidden" name="eventStartDate.dateOnly" value="off" id="allDayStartDateField"/>1593 <input type="hidden" name="eventEndDate.dateOnly" value="off" id="allDayEndDateField"/>1594 </xsl:otherwise>1595 </xsl:choose>1596 < xsl:copy-of select="$bwStr-AEEF-AllDay"/>1584 1585 <!-- All day flag --> 1586 <input type="checkbox" name="allDayFlag" id="allDayFlag" onclick="swapAllDayEvent(this)" value="off"> 1587 <xsl:if test="form/allDay/input/@checked='checked'"> 1588 <xsl:attribute name="checked">checked</xsl:attribute> 1589 <xsl:attribute name="value">on</xsl:attribute> 1590 </xsl:if> 1591 </input> 1592 <input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayStartDateField"/> 1593 <input type="hidden" name="eventEndDate.dateOnly" value="on" id="allDayEndDateField"/> 1594 <label for="allDayFlag"> 1595 <xsl:copy-of select="$bwStr-AEEF-AllDay"/> 1596 </label> 1597 1597 1598 1598 <!-- floating event: no timezone (and not UTC) --> … … 1600 1600 (e.g. from import); to restore this field, remove the if --> 1601 1601 <xsl:if test="form/floating/input/@checked='checked'"> 1602 <xsl:choose> 1603 <xsl:when test="form/floating/input/@checked='checked'"> 1604 <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="on" checked="checked"/> 1605 <input type="hidden" name="eventStartDate.floating" value="on" id="startFloating"/> 1606 <input type="hidden" name="eventEndDate.floating" value="on" id="endFloating"/> 1607 </xsl:when> 1608 <xsl:otherwise> 1609 <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="off"/> 1610 <input type="hidden" name="eventStartDate.floating" value="off" id="startFloating"/> 1611 <input type="hidden" name="eventEndDate.floating" value="off" id="endFloating"/> 1612 </xsl:otherwise> 1613 </xsl:choose> 1614 <xsl:copy-of select="$bwStr-AEEF-Floating"/> 1602 <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="off"> 1603 <xsl:if test="form/floating/input/@checked='checked'"> 1604 <xsl:attribute name="checked">checked</xsl:attribute> 1605 <xsl:attribute name="value">on</xsl:attribute> 1606 </xsl:if> 1607 </input> 1608 <input type="hidden" name="eventStartDate.floating" value="off" id="startFloating"/> 1609 <input type="hidden" name="eventEndDate.floating" value="off" id="endFloating"/> 1610 <label for="floatingFlag"> 1611 <xsl:copy-of select="$bwStr-AEEF-Floating"/> 1612 </label> 1615 1613 </xsl:if> 1616 1614 … … 1620 1618 to restore this field, remove the if --> 1621 1619 <xsl:if test="form/storeUTC/input/@checked='checked'"> 1622 <xsl:choose> 1623 <xsl:when test="form/storeUTC/input/@checked='checked'"> 1624 <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="on" checked="checked"/> 1625 <input type="hidden" name="eventStartDate.storeUTC" value="on" id="startStoreUTC"/> 1626 <input type="hidden" name="eventEndDate.storeUTC" value="on" id="endStoreUTC"/> 1627 </xsl:when> 1628 <xsl:otherwise> 1629 <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="off"/> 1630 <input type="hidden" name="eventStartDate.storeUTC" value="off" id="startStoreUTC"/> 1631 <input type="hidden" name="eventEndDate.storeUTC" value="off" id="endStoreUTC"/> 1632 </xsl:otherwise> 1633 </xsl:choose> 1620 <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="off"> 1621 <xsl:if test="form/storeUTC/input/@checked='checked'"> 1622 <xsl:attribute name="checked">checked</xsl:attribute> 1623 <xsl:attribute name="value">on</xsl:attribute> 1624 </xsl:if> 1625 </input> 1626 <input type="hidden" name="eventStartDate.storeUTC" value="off" id="startStoreUTC"/> 1627 <input type="hidden" name="eventEndDate.storeUTC" value="off" id="endStoreUTC"/> 1634 1628 <xsl:copy-of select="$bwStr-AEEF-StoreAsUTC"/> 1635 1629 </xsl:if> … … 1721 1715 </xsl:otherwise> 1722 1716 </xsl:choose> 1723 <xsl:copy-of select="$bwStr-AEEF-Date"/> 1717 <label for="bwEndDateTimeButton"> 1718 <xsl:copy-of select="$bwStr-AEEF-Date"/> 1719 </label> 1724 1720 <xsl:variable name="endDateTimeClass"> 1725 1721 <xsl:choose> … … 1808 1804 <xsl:choose> 1809 1805 <xsl:when test="form/end/type='D'"> 1810 <input type="radio" name="eventEndType" value="D" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>1806 <input type="radio" name="eventEndType" id="bwEndDurationButton" value="D" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 1811 1807 </xsl:when> 1812 1808 <xsl:otherwise> 1813 <input type="radio" name="eventEndType" value="D" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/>1809 <input type="radio" name="eventEndType" id="bwEndDurationButton" value="D" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 1814 1810 </xsl:otherwise> 1815 1811 </xsl:choose> 1816 <xsl:copy-of select="$bwStr-AEEF-Duration"/> 1812 <label for="bwEndDurationButton"> 1813 <xsl:copy-of select="$bwStr-AEEF-Duration"/> 1814 </label> 1817 1815 <xsl:variable name="endDurationClass"> 1818 1816 <xsl:choose> … … 1882 1880 <xsl:choose> 1883 1881 <xsl:when test="form/end/type='N'"> 1884 <input type="radio" name="eventEndType" value="N" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>1882 <input type="radio" name="eventEndType" id="bwEndNoneButton" value="N" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 1885 1883 </xsl:when> 1886 1884 <xsl:otherwise> 1887 <input type="radio" name="eventEndType" value="N" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/>1885 <input type="radio" name="eventEndType" id="bwEndNoneButton" value="N" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 1888 1886 </xsl:otherwise> 1889 1887 </xsl:choose> 1890 <xsl:copy-of select="$bwStr-AEEF-ThisEventHasNoDurationEndDate"/> 1888 <label for="bwEndNoneButton"> 1889 <xsl:copy-of select="$bwStr-AEEF-ThisEventHasNoDurationEndDate"/> 1890 </label> 1891 1891 </div> 1892 1892 </div> … … 1949 1949 <xsl:if test="$canEdit = 'false'"><xsl:attribute name="class">invisible</xsl:attribute></xsl:if> 1950 1950 <!-- set or remove "recurring" and show or hide all recurrence fields: --> 1951 <input type="radio" name="recurring" value="true" onclick="swapRecurrence(this)">1951 <input type="radio" name="recurring" id="bwRecurringOnButton" value="true" onclick="swapRecurrence(this)"> 1952 1952 <xsl:if test="form/recurringEntity = 'true'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 1953 </input><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-EventRecurs"/> 1954 <input type="radio" name="recurring" value="false" onclick="swapRecurrence(this)"> 1953 </input> 1954 <label for="bwRecurringOnButton"> 1955 <xsl:copy-of select="$bwStr-AEEF-EventRecurs"/> 1956 </label> 1957 <input type="radio" name="recurring" id="bwRecurringOffButton" value="false" onclick="swapRecurrence(this)"> 1955 1958 <xsl:if test="form/recurringEntity = 'false'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 1956 </input><xsl:text> </xsl:text><xsl:copy-of select="$bwStr-AEEF-EventDoesNotRecur"/> 1959 </input> 1960 <label for="bwRecurringOffButton"> 1961 <xsl:copy-of select="$bwStr-AEEF-EventDoesNotRecur"/> 1962 </label> 1957 1963 </div> 1958 1964 </xsl:when> … … 1985 1991 <xsl:attribute name="class">invisible</xsl:attribute> 1986 1992 </xsl:if> 1987 <input type="checkbox" name="rrulesUiSwitch" value="advanced" onchange="swapVisible(this,'advancedRrules')"/> 1988 <xsl:copy-of select="$bwStr-AEEF-ShowAdvancedRecurrenceRules"/> 1993 <input type="checkbox" name="rrulesUiSwitch" id="bwRrulesAdvancedButton" value="advanced" onchange="swapVisible(this,'advancedRrules')"/> 1994 <label for="bwRrulesAdvancedButton"> 1995 <xsl:copy-of select="$bwStr-AEEF-ShowAdvancedRecurrenceRules"/> 1996 </label> 1989 1997 </span> 1990 1998 … … 2132 2140 <td id="recurrenceFrequency" rowspan="2"> 2133 2141 <em><xsl:copy-of select="$bwStr-AEEF-Frequency"/></em><br/> 2134 <input type="radio" name="freq" value="NONE" onclick="showRrules(this.value)" checked="checked"/><xsl:copy-of select="$bwStr-AEEF-None"/><br/> 2142 <input type="radio" name="freq" id="bwFreqNone" value="NONE" onclick="showRrules(this.value)" checked="checked"/> 2143 <label for="bwFreqNone"> 2144 <xsl:copy-of select="$bwStr-AEEF-None"/> 2145 </label><br/> 2135 2146 <!--<input type="radio" name="freq" value="HOURLY" onclick="showRrules(this.value)"/>hourly<br/>--> 2136 <input type="radio" name="freq" value="DAILY" onclick="showRrules(this.value)"/><xsl:copy-of select="$bwStr-AEEF-Daily"/><br/> 2137 <input type="radio" name="freq" value="WEEKLY" onclick="showRrules(this.value)"/><xsl:copy-of select="$bwStr-AEEF-Weekly"/><br/> 2138 <input type="radio" name="freq" value="MONTHLY" onclick="showRrules(this.value)"/><xsl:copy-of select="$bwStr-AEEF-Monthly"/><br/> 2139 <input type="radio" name="freq" value="YEARLY" onclick="showRrules(this.value)"/><xsl:copy-of select="$bwStr-AEEF-Yearly"/> 2147 <input type="radio" name="freq" id="bwFreqDaily" value="DAILY" onclick="showRrules(this.value)"/> 2148 <label for="bwFreqDaily"> 2149 <xsl:copy-of select="$bwStr-AEEF-Daily"/> 2150 </label><br/> 2151 <input type="radio" name="freq" id="bwFreqWeekly" value="WEEKLY" onclick="showRrules(this.value)"/> 2152 <label for="bwFreqWeekly"> 2153 <xsl:copy-of select="$bwStr-AEEF-Weekly"/> 2154 </label><br/> 2155 <input type="radio" name="freq" id="bwFreqMonthly" value="MONTHLY" onclick="showRrules(this.value)"/> 2156 <label for="bwFreqMonthly"> 2157 <xsl:copy-of select="$bwStr-AEEF-Monthly"/> 2158 </label><br/> 2159 <input type="radio" name="freq" id="bwFreqYearly" value="YEARLY" onclick="showRrules(this.value)"/> 2160 <label for="bwFreqYearly"> 2161 <xsl:copy-of select="$bwStr-AEEF-Yearly"/> 2162 </label> 2140 2163 </td> 2141 2164 <!-- recurrence count, until, forever --> … … 2565 2588 <span> 2566 2589 <xsl:if test="$canEdit = 'false'"><xsl:attribute name="class">invisible</xsl:attribute></xsl:if> 2567 <input type="radio" name="eventStatus" value="CONFIRMED" checked="checked">2590 <input type="radio" name="eventStatus" id="bwStatusConfirmedButton" value="CONFIRMED" checked="checked"> 2568 2591 <xsl:if test="form/status = 'CONFIRMED'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 2569 </input><xsl:copy-of select="$bwStr-AEEF-Confirmed"/> 2570 <input type="radio" name="eventStatus" value="TENTATIVE"> 2592 </input> 2593 <label for="bwStatusConfirmedButton"> 2594 <xsl:copy-of select="$bwStr-AEEF-Confirmed"/> 2595 </label> 2596 <input type="radio" name="eventStatus" id="bwStatusTentativeButton" value="TENTATIVE"> 2571 2597 <xsl:if test="form/status = 'TENTATIVE'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 2572 </input><xsl:copy-of select="$bwStr-AEEF-Tentative"/> 2573 <input type="radio" name="eventStatus" value="CANCELLED"> 2598 </input> 2599 <label for="bwStatusTentativeButton"> 2600 <xsl:copy-of select="$bwStr-AEEF-Tentative"/> 2601 </label> 2602 <input type="radio" name="eventStatus" id="bwStatusCancelledButton" value="CANCELLED"> 2574 2603 <xsl:if test="form/status = 'CANCELLED'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 2575 </input><xsl:copy-of select="$bwStr-AEEF-Canceled"/> 2604 </input> 2605 <label for="bwStatusCancelledButton"> 2606 <xsl:copy-of select="$bwStr-AEEF-Canceled"/> 2607 </label> 2576 2608 </span> 2577 2609 <xsl:if test="$canEdit = 'false'"> … … 2747 2779 locations exist --> 2748 2780 <xsl:if test="form/location/preferred/select/option"> 2749 <input type="radio" name="toggleLocationLists" value="preferred" onclick="changeClass('bwPreferredLocationList','shown');changeClass('bwAllLocationList','invisible');">2781 <input type="radio" name="toggleLocationLists" id="bwLocationPreferredButton" value="preferred" onclick="changeClass('bwPreferredLocationList','shown');changeClass('bwAllLocationList','invisible');"> 2750 2782 <xsl:if test="form/location/preferred/select/option and not(form/location/all/select/option/@selected and not(form/location/preferred/select/option/@selected))"> 2751 2783 <xsl:attribute name="checked">checked</xsl:attribute> 2752 2784 </xsl:if> 2753 2785 </input> 2754 <xsl:copy-of select="$bwStr-AEEF-Preferred"/> 2755 <input type="radio" name="toggleLocationLists" value="all" onclick="changeClass('bwPreferredLocationList','invisible');changeClass('bwAllLocationList','shown');"> 2786 <label for="bwLocationPreferredButton"> 2787 <xsl:copy-of select="$bwStr-AEEF-Preferred"/> 2788 </label> 2789 <input type="radio" name="toggleLocationLists" id="bwLocationAllButton" value="all" onclick="changeClass('bwPreferredLocationList','invisible');changeClass('bwAllLocationList','shown');"> 2756 2790 <xsl:if test="form/location/all/select/option/@selected and not(form/location/preferred/select/option/@selected)"> 2757 2791 <xsl:attribute name="checked">checked</xsl:attribute> 2758 2792 </xsl:if> 2759 2793 </input> 2760 <xsl:copy-of select="$bwStr-AEEF-All"/> 2794 <label for="bwLocationAllButton"> 2795 <xsl:copy-of select="$bwStr-AEEF-All"/> 2796 </label> 2761 2797 </xsl:if> 2762 2798 </span> … … 2834 2870 contacts exist --> 2835 2871 <xsl:if test="form/contact/preferred/select/option"> 2836 <input type="radio" name="toggleContactLists" value="preferred" onclick="changeClass('bwPreferredContactList','shown');changeClass('bwAllContactList','invisible');">2872 <input type="radio" name="toggleContactLists" id="bwContactPreferredButton" value="preferred" onclick="changeClass('bwPreferredContactList','shown');changeClass('bwAllContactList','invisible');"> 2837 2873 <xsl:if test="form/contact/preferred/select/option and not(form/contact/all/select/option/@selected and not(form/contact/preferred/select/option/@selected))"> 2838 2874 <xsl:attribute name="checked">checked</xsl:attribute> 2839 2875 </xsl:if> 2840 2876 </input> 2841 <xsl:copy-of select="$bwStr-AEEF-Preferred"/> 2842 <input type="radio" name="toggleContactLists" value="all" onclick="changeClass('bwPreferredContactList','invisible');changeClass('bwAllContactList','shown');"> 2877 <label for="bwContactPreferredButton"> 2878 <xsl:copy-of select="$bwStr-AEEF-Preferred"/> 2879 </label> 2880 <input type="radio" name="toggleContactLists" id="bwContactAllButton" value="all" onclick="changeClass('bwPreferredContactList','invisible');changeClass('bwAllContactList','shown');"> 2843 2881 <xsl:if test="form/contact/all/select/option/@selected and not(form/contact/preferred/select/option/@selected)"> 2844 2882 <xsl:attribute name="checked">checked</xsl:attribute> 2845 2883 </xsl:if> 2846 2884 </input> 2847 <xsl:copy-of select="$bwStr-AEEF-All"/> 2885 <label for="bwContactAllButton"> 2886 <xsl:copy-of select="$bwStr-AEEF-All"/> 2887 </label> 2848 2888 </xsl:if> 2849 2889 </span>
