| 1750 | | <input type="hidden" name="endType" value="date"/> |
|---|
| 1751 | | <h2>Add Event</h2> |
|---|
| 1752 | | <table class="common" cellspacing="0"> |
|---|
| 1753 | | <tr> |
|---|
| 1754 | | <td class="fieldname"> |
|---|
| 1755 | | Title: |
|---|
| 1756 | | </td> |
|---|
| 1757 | | <td class="fieldval"> |
|---|
| 1758 | | <xsl:variable name="title" select="/bedework/formElements/form/title/input/@value"/> |
|---|
| 1759 | | <input type="text" name="summary" size="80" value="{$title}"/> |
|---|
| 1760 | | </td> |
|---|
| 1761 | | </tr> |
|---|
| 1762 | | <tr> |
|---|
| 1763 | | <td class="fieldname"> |
|---|
| 1764 | | Type: |
|---|
| 1765 | | </td> |
|---|
| 1766 | | <td class="fieldval"> |
|---|
| 1767 | | <input type="radio" name="schedule" size="80" value="" checked="checked"/>my event |
|---|
| 1768 | | <input type="radio" name="schedule" size="80" value="request"/>meeting request |
|---|
| 1769 | | <input type="radio" name="schedule" size="80" value="publish"/>published event |
|---|
| 1770 | | </td> |
|---|
| 1771 | | </tr> |
|---|
| 1772 | | <tr> |
|---|
| 1773 | | <td class="fieldname"> |
|---|
| 1774 | | Calendar: |
|---|
| 1775 | | </td> |
|---|
| 1776 | | <td class="fieldval"> |
|---|
| 1777 | | <xsl:variable name="newCalPath" select="/bedework/formElements/form/calendar/path"/> |
|---|
| 1778 | | <input type="hidden" name="newCalPath" value="{$newCalPath}"/> |
|---|
| 1779 | | <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable> |
|---|
| 1780 | | <span id="bwEventCalDisplay"> |
|---|
| 1781 | | <xsl:choose> |
|---|
| 1782 | | <xsl:when test="contains(/bedework/formElements/form/calendar/path,$userPath)"> |
|---|
| 1783 | | <xsl:value-of select="substring-after(/bedework/formElements/form/calendar/path,$userPath)"/> |
|---|
| 1784 | | </xsl:when> |
|---|
| 1785 | | <xsl:otherwise> |
|---|
| 1786 | | <xsl:value-of select="/bedework/formElements/form/calendar/path"/> |
|---|
| 1787 | | </xsl:otherwise> |
|---|
| 1788 | | </xsl:choose> |
|---|
| 1789 | | </span> |
|---|
| 1790 | | <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a> |
|---|
| 1791 | | </td> |
|---|
| 1792 | | </tr> |
|---|
| 1793 | | <tr> |
|---|
| 1794 | | <td class="fieldname"> |
|---|
| 1795 | | Date & Time: |
|---|
| 1796 | | </td> |
|---|
| 1797 | | <td class="fieldval"> |
|---|
| 1798 | | <!-- Set the timefields class for the first load of the page; |
|---|
| 1799 | | subsequent changes will take place using javascript without a |
|---|
| 1800 | | page reload. --> |
|---|
| 1801 | | <xsl:variable name="timeFieldsClass"> |
|---|
| 1802 | | <xsl:choose> |
|---|
| 1803 | | <xsl:when test="/bedework/formElements/form/allDay/input/@checked='checked'">invisible</xsl:when> |
|---|
| 1804 | | <xsl:otherwise>timeFields</xsl:otherwise> |
|---|
| 1805 | | </xsl:choose> |
|---|
| 1806 | | </xsl:variable> |
|---|
| 1807 | | <xsl:choose> |
|---|
| 1808 | | <xsl:when test="/bedework/formElements/form/allDay/input/@checked='checked'"> |
|---|
| 1809 | | <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/> |
|---|
| 1810 | | <input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayStartDateField"/> |
|---|
| 1811 | | <input type="hidden" name="eventEndDate.dateOnly" value="on" id="allDayEndDateField"/> |
|---|
| 1812 | | </xsl:when> |
|---|
| 1813 | | <xsl:otherwise> |
|---|
| 1814 | | <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/> |
|---|
| 1815 | | <input type="hidden" name="eventStartDate.dateOnly" value="off" id="allDayStartDateField"/> |
|---|
| 1816 | | <input type="hidden" name="eventEndDate.dateOnly" value="off" id="allDayEndDateField"/> |
|---|
| 1817 | | </xsl:otherwise> |
|---|
| 1818 | | </xsl:choose> |
|---|
| 1819 | | all day event |
|---|
| 1820 | | <xsl:choose> |
|---|
| 1821 | | <xsl:when test="/bedework/formElements/form/floating/input/@checked='checked'"> |
|---|
| 1822 | | <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="on" checked="checked"/> |
|---|
| 1823 | | <input type="hidden" name="eventStartDate.floating" value="on" id="startFloating"/> |
|---|
| 1824 | | <input type="hidden" name="eventEndDate.floating" value="on" id="endFloating"/> |
|---|
| 1825 | | </xsl:when> |
|---|
| 1826 | | <xsl:otherwise> |
|---|
| 1827 | | <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="off"/> |
|---|
| 1828 | | <input type="hidden" name="eventStartDate.floating" value="off" id="startFloating"/> |
|---|
| 1829 | | <input type="hidden" name="eventEndDate.floating" value="off" id="endFloating"/> |
|---|
| 1830 | | </xsl:otherwise> |
|---|
| 1831 | | </xsl:choose> |
|---|
| 1832 | | floating |
|---|
| 1833 | | <xsl:choose> |
|---|
| 1834 | | <xsl:when test="/bedework/formElements/form/floating/input/@checked='checked'"> |
|---|
| 1835 | | <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="on" checked="checked"/> |
|---|
| 1836 | | <input type="hidden" name="eventStartDate.storeUTC" value="on" id="startStoreUTC"/> |
|---|
| 1837 | | <input type="hidden" name="eventEndDate.storeUTC" value="on" id="endStoreUTC"/> |
|---|
| 1838 | | </xsl:when> |
|---|
| 1839 | | <xsl:otherwise> |
|---|
| 1840 | | <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="off"/> |
|---|
| 1841 | | <input type="hidden" name="eventStartDate.storeUTC" value="off" id="startStoreUTC"/> |
|---|
| 1842 | | <input type="hidden" name="eventEndDate.storeUTC" value="off" id="endStoreUTC"/> |
|---|
| 1843 | | </xsl:otherwise> |
|---|
| 1844 | | </xsl:choose> |
|---|
| 1845 | | store as UTC |
|---|
| 1846 | | <br/> |
|---|
| 1847 | | <div class="dateStartEndBox"> |
|---|
| 1848 | | <strong>Start:</strong> |
|---|
| 1849 | | <div class="dateFields"> |
|---|
| 1850 | | <span class="startDateLabel">Date </span> |
|---|
| 1851 | | <xsl:copy-of select="/bedework/formElements/form/start/month/*"/> |
|---|
| 1852 | | <xsl:copy-of select="/bedework/formElements/form/start/day/*"/> |
|---|
| 1853 | | <xsl:choose> |
|---|
| 1854 | | <xsl:when test="/bedework/creating = 'true'"> |
|---|
| 1855 | | <xsl:copy-of select="/bedework/formElements/form/start/year/*"/> |
|---|
| 1856 | | </xsl:when> |
|---|
| 1857 | | <xsl:otherwise> |
|---|
| 1858 | | <xsl:copy-of select="/bedework/formElements/form/start/yearText/*"/> |
|---|
| 1859 | | </xsl:otherwise> |
|---|
| 1860 | | </xsl:choose> |
|---|
| 1861 | | </div> |
|---|
| 1862 | | <script language="JavaScript" type="text/javascript"> |
|---|
| 1863 | | <xsl:comment> |
|---|
| 1864 | | 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/'); |
|---|
| 1865 | | </xsl:comment> |
|---|
| 1866 | | </script> |
|---|
| 1867 | | <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> |
|---|
| 1868 | | <div class="{$timeFieldsClass}" id="startTimeFields"> |
|---|
| 1869 | | <span id="calWidgetStartTimeHider" class="show"> |
|---|
| 1870 | | <xsl:copy-of select="/bedework/formElements/form/start/hour/*"/> |
|---|
| 1871 | | <xsl:copy-of select="/bedework/formElements/form/start/minute/*"/> |
|---|
| 1872 | | <xsl:if test="/bedework/formElements/form/start/ampm"> |
|---|
| 1873 | | <xsl:copy-of select="/bedework/formElements/form/start/ampm/*"/> |
|---|
| 1874 | | </xsl:if> |
|---|
| 1875 | | <xsl:text> </xsl:text> |
|---|
| 1876 | | <a href="javascript:bwClockLaunch('eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> |
|---|
| 1877 | | |
|---|
| 1878 | | <select name="eventStartDate.tzid" id="startTzid" class="timezones"> |
|---|
| 1879 | | <xsl:for-each select="/bedework/timezones/timezone"> |
|---|
| 1880 | | <option> |
|---|
| 1881 | | <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> |
|---|
| 1882 | | <xsl:if test="/bedework/formElements/form/start/tzid = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> |
|---|
| 1883 | | <xsl:value-of select="name"/> |
|---|
| 1884 | | </option> |
|---|
| 1885 | | </xsl:for-each> |
|---|
| 1886 | | </select> |
|---|
| 1887 | | </span> |
|---|
| 1888 | | </div> |
|---|
| 1889 | | </div> |
|---|
| 1890 | | <div class="dateStartEndBox"> |
|---|
| 1891 | | <strong>End:</strong> |
|---|
| 1892 | | <xsl:choose> |
|---|
| 1893 | | <xsl:when test="/bedework/formElements/form/end/type='E'"> |
|---|
| 1894 | | <input type="radio" name="eventEndType" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> |
|---|
| 1895 | | </xsl:when> |
|---|
| 1896 | | <xsl:otherwise> |
|---|
| 1897 | | <input type="radio" name="eventEndType" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> |
|---|
| 1898 | | </xsl:otherwise> |
|---|
| 1899 | | </xsl:choose> |
|---|
| 1900 | | Date |
|---|
| 1901 | | <xsl:variable name="endDateTimeClass"> |
|---|
| 1902 | | <xsl:choose> |
|---|
| 1903 | | <xsl:when test="/bedework/formElements/form/end/type='E'">shown</xsl:when> |
|---|
| 1904 | | <xsl:otherwise>invisible</xsl:otherwise> |
|---|
| 1905 | | </xsl:choose> |
|---|
| 1906 | | </xsl:variable> |
|---|
| 1907 | | <div class="{$endDateTimeClass}" id="endDateTime"> |
|---|
| 1908 | | <div class="dateFields"> |
|---|
| 1909 | | <xsl:copy-of select="/bedework/formElements/form/end/dateTime/month/*"/> |
|---|
| 1910 | | <xsl:copy-of select="/bedework/formElements/form/end/dateTime/day/*"/> |
|---|
| 1911 | | <xsl:choose> |
|---|
| 1912 | | <xsl:when test="/bedework/creating = 'true'"> |
|---|
| 1913 | | <xsl:copy-of select="/bedework/formElements/form/end/dateTime/year/*"/> |
|---|
| 1914 | | </xsl:when> |
|---|
| 1915 | | <xsl:otherwise> |
|---|
| 1916 | | <xsl:copy-of select="/bedework/formElements/form/end/dateTime/yearText/*"/> |
|---|
| 1917 | | </xsl:otherwise> |
|---|
| 1918 | | </xsl:choose> |
|---|
| 1919 | | </div> |
|---|
| 1920 | | <script language="JavaScript" type="text/javascript"> |
|---|
| 1921 | | <xsl:comment> |
|---|
| 1922 | | 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/'); |
|---|
| 1923 | | </xsl:comment> |
|---|
| 1924 | | </script> |
|---|
| 1925 | | <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> |
|---|
| 1926 | | <div class="{$timeFieldsClass}" id="endTimeFields"> |
|---|
| 1927 | | <span id="calWidgetEndTimeHider" class="show"> |
|---|
| 1928 | | <xsl:copy-of select="/bedework/formElements/form/end/dateTime/hour/*"/> |
|---|
| 1929 | | <xsl:copy-of select="/bedework/formElements/form/end/dateTime/minute/*"/> |
|---|
| 1930 | | <xsl:if test="/bedework/formElements/form/end/dateTime/ampm"> |
|---|
| 1931 | | <xsl:copy-of select="/bedework/formElements/form/end/dateTime/ampm/*"/> |
|---|
| 1932 | | </xsl:if> |
|---|
| 1933 | | <xsl:text> </xsl:text> |
|---|
| 1934 | | <a href="javascript:bwClockLaunch('eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> |
|---|
| 1935 | | |
|---|
| 1936 | | <select name="eventEndDate.tzid" id="endTzid" class="timezones"> |
|---|
| 1937 | | <xsl:for-each select="/bedework/timezones/timezone"> |
|---|
| 1938 | | <option> |
|---|
| 1939 | | <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> |
|---|
| 1940 | | <xsl:if test="/bedework/formElements/form/end/dateTime/tzid = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> |
|---|
| 1941 | | <xsl:value-of select="name"/> |
|---|
| 1942 | | </option> |
|---|
| 1943 | | </xsl:for-each> |
|---|
| 1944 | | </select> |
|---|
| 1945 | | </span> |
|---|
| 1946 | | </div> |
|---|
| 1947 | | </div><br/> |
|---|
| 1948 | | <div class="dateFields"> |
|---|
| 1949 | | <xsl:choose> |
|---|
| 1950 | | <xsl:when test="/bedework/formElements/form/end/type='D'"> |
|---|
| 1951 | | <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> |
|---|
| 1952 | | </xsl:when> |
|---|
| 1953 | | <xsl:otherwise> |
|---|
| 1954 | | <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> |
|---|
| 1955 | | </xsl:otherwise> |
|---|
| 1956 | | </xsl:choose> |
|---|
| 1957 | | Duration |
|---|
| 1958 | | <xsl:variable name="endDurationClass"> |
|---|
| 1959 | | <xsl:choose> |
|---|
| 1960 | | <xsl:when test="/bedework/formElements/form/end/type='D'">shown</xsl:when> |
|---|
| 1961 | | <xsl:otherwise>invisible</xsl:otherwise> |
|---|
| 1962 | | </xsl:choose> |
|---|
| 1963 | | </xsl:variable> |
|---|
| 1964 | | <xsl:variable name="durationHrMinClass"> |
|---|
| 1965 | | <xsl:choose> |
|---|
| 1966 | | <xsl:when test="/bedework/formElements/form/allDay/input/@checked='checked'">invisible</xsl:when> |
|---|
| 1967 | | <xsl:otherwise>shown</xsl:otherwise> |
|---|
| 1968 | | </xsl:choose> |
|---|
| 1969 | | </xsl:variable> |
|---|
| 1970 | | <div class="{$endDurationClass}" id="endDuration"> |
|---|
| 1971 | | <xsl:choose> |
|---|
| 1972 | | <xsl:when test="/bedework/formElements/form/end/duration/weeks/input/@value = '0'"> |
|---|
| 1973 | | <!-- we are using day, hour, minute format --> |
|---|
| 1974 | | <!-- must send either no week value or week value of 0 (zero) --> |
|---|
| 1975 | | <div class="durationBox"> |
|---|
| 1976 | | <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/> |
|---|
| 1977 | | <xsl:variable name="daysStr" select="/bedework/formElements/form/end/duration/days/input/@value"/> |
|---|
| 1978 | | <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays"/>days |
|---|
| 1979 | | <span id="durationHrMin" class="{$durationHrMinClass}"> |
|---|
| 1980 | | <xsl:variable name="hoursStr" select="/bedework/formElements/form/end/duration/hours/input/@value"/> |
|---|
| 1981 | | <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours"/>hours |
|---|
| 1982 | | <xsl:variable name="minutesStr" select="/bedework/formElements/form/end/duration/minutes/input/@value"/> |
|---|
| 1983 | | <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes"/>minutes |
|---|
| 1984 | | </span> |
|---|
| 1985 | | </div> |
|---|
| 1986 | | <span class="durationSpacerText">or</span> |
|---|
| 1987 | | <div class="durationBox"> |
|---|
| 1988 | | <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/> |
|---|
| 1989 | | <xsl:variable name="weeksStr" select="/bedework/formElements/form/end/duration/weeks/input/@value"/> |
|---|
| 1990 | | <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="true"/>weeks |
|---|
| 1991 | | </div> |
|---|
| 1992 | | </xsl:when> |
|---|
| 1993 | | <xsl:otherwise> |
|---|
| 1994 | | <!-- we are using week format --> |
|---|
| 1995 | | <div class="durationBox"> |
|---|
| 1996 | | <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/> |
|---|
| 1997 | | <xsl:variable name="daysStr" select="/bedework/formElements/form/end/duration/days/input/@value"/> |
|---|
| 1998 | | <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="true"/>days |
|---|
| 1999 | | <span id="durationHrMin" class="{$durationHrMinClass}"> |
|---|
| 2000 | | <xsl:variable name="hoursStr" select="/bedework/formElements/form/end/duration/hours/input/@value"/> |
|---|
| 2001 | | <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="true"/>hours |
|---|
| 2002 | | <xsl:variable name="minutesStr" select="/bedework/formElements/form/end/duration/minutes/input/@value"/> |
|---|
| 2003 | | <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="true"/>minutes |
|---|
| 2004 | | </span> |
|---|
| 2005 | | </div> |
|---|
| 2006 | | <span class="durationSpacerText">or</span> |
|---|
| 2007 | | <div class="durationBox"> |
|---|
| 2008 | | <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')" checked="checked"/> |
|---|
| 2009 | | <xsl:variable name="weeksStr" select="/bedework/formElements/form/end/duration/weeks/input/@value"/> |
|---|
| 2010 | | <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks"/>weeks |
|---|
| 2011 | | </div> |
|---|
| 2012 | | </xsl:otherwise> |
|---|
| 2013 | | </xsl:choose> |
|---|
| 2014 | | </div> |
|---|
| 2015 | | </div><br/> |
|---|
| 2016 | | <div class="dateFields" id="noDuration"> |
|---|
| 2017 | | <xsl:choose> |
|---|
| 2018 | | <xsl:when test="/bedework/formElements/form/end/type='N'"> |
|---|
| 2019 | | <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> |
|---|
| 2020 | | </xsl:when> |
|---|
| 2021 | | <xsl:otherwise> |
|---|
| 2022 | | <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> |
|---|
| 2023 | | </xsl:otherwise> |
|---|
| 2024 | | </xsl:choose> |
|---|
| 2025 | | This event has no duration / end date |
|---|
| 2026 | | </div> |
|---|
| 2027 | | </div> |
|---|
| 2028 | | </td> |
|---|
| 2029 | | </tr> |
|---|
| 2030 | | <!-- Status --> |
|---|
| 2031 | | <tr> |
|---|
| 2032 | | <td class="fieldname"> |
|---|
| 2033 | | Status: |
|---|
| 2034 | | </td> |
|---|
| 2035 | | <td class="fieldval"> |
|---|
| 2036 | | <xsl:choose> |
|---|
| 2037 | | <xsl:when test="/bedework/formElements/form/status = 'TENTATIVE'"> |
|---|
| 2038 | | <input type="radio" name="newEvent.status" value="CONFIRMED"/>confirmed <input type="radio" name="newEvent.status" value="TENTATIVE" checked="checked"/>tentative <input type="radio" name="newEvent.status" value="CANCELLED"/>cancelled |
|---|
| 2039 | | </xsl:when> |
|---|
| 2040 | | <xsl:when test="/bedework/formElements/form/status = 'CANCELLED'"> |
|---|
| 2041 | | <input type="radio" name="newEvent.status" value="CONFIRMED"/>confirmed <input type="radio" name="newEvent.status" value="TENTATIVE"/>tentative <input type="radio" name="newEvent.status" value="CANCELLED" checked="checked"/>cancelled |
|---|
| 2042 | | </xsl:when> |
|---|
| 2043 | | <xsl:otherwise> |
|---|
| 2044 | | <input type="radio" name="newEvent.status" value="CONFIRMED" checked="checked"/>confirmed <input type="radio" name="newEvent.status" value="TENTATIVE"/>tentative <input type="radio" name="newEvent.status" value="CANCELLED"/>cancelled |
|---|
| 2045 | | </xsl:otherwise> |
|---|
| 2046 | | </xsl:choose> |
|---|
| 2047 | | </td> |
|---|
| 2048 | | </tr> |
|---|
| 2049 | | <!-- Transparency --> |
|---|
| 2050 | | <tr> |
|---|
| 2051 | | <td class="fieldname"> |
|---|
| 2052 | | Effects free/busy: |
|---|
| 2053 | | </td> |
|---|
| 2054 | | <td class="fieldval"> |
|---|
| 2055 | | <input type="radio" name="newEvent.transparency" value="OPAQUE" checked="checked"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/> |
|---|
| 2056 | | <input type="radio" name="newEvent.transparency" value="TRANSPARENT"/>no <span class="note">(transparent: event status does not affect your free/busy)</span> |
|---|
| 2057 | | </td> |
|---|
| 2058 | | </tr> |
|---|
| 2059 | | <!-- Description --> |
|---|
| 2060 | | <tr> |
|---|
| 2061 | | <td class="fieldname">Description:</td> |
|---|
| 2062 | | <td class="fieldval"> |
|---|
| 2063 | | <textarea name="description" cols="60" rows="4"> |
|---|
| 2064 | | <xsl:value-of select="/bedework/formElements/form/desc/textarea"/> |
|---|
| 2065 | | </textarea> |
|---|
| 2066 | | </td> |
|---|
| 2067 | | </tr> |
|---|
| 2068 | | <!-- Recipients and Attendees --> |
|---|
| 2069 | | <tr> |
|---|
| 2070 | | <td class="fieldname"> |
|---|
| 2071 | | Recipients &<br/> Attendees: |
|---|
| 2072 | | </td> |
|---|
| 2073 | | <td class="fieldval posrelative"> |
|---|
| 2074 | | <!--<input type="button" value="Manage recipients and attendees" onclick="changeClass('recipientsAndAttendees','shown')"/>--> |
|---|
| 2075 | | <input type="button" value="Manage recipients and attendees" onclick="launchSizedWindow('{$event-showAttendeesForEvent}','500','400')"/> |
|---|
| 2076 | | </td> |
|---|
| 2077 | | </tr> |
|---|
| 2078 | | <tr> |
|---|
| 2079 | | <td class="fieldname">Location:</td> |
|---|
| 2080 | | <td class="fieldval" align="left"> |
|---|
| 2081 | | <span class="std-text">choose: </span> |
|---|
| 2082 | | <span id="eventFormLocationList"> |
|---|
| 2083 | | <select name="locationUid"> |
|---|
| 2084 | | <option value="-1">select...</option> |
|---|
| 2085 | | <xsl:copy-of select="/bedework/formElements/form/location/locationmenu/select/*"/> |
|---|
| 2086 | | </select> |
|---|
| 2087 | | </span> |
|---|
| 2088 | | <span class="std-text"> or add new: </span> |
|---|
| 2089 | | <input type="text" name="locationAddress.value" value="" /> |
|---|
| 2090 | | </td> |
|---|
| 2091 | | </tr> |
|---|
| 2092 | | <tr> |
|---|
| 2093 | | <td class="fieldname">Event Link:</td> |
|---|
| 2094 | | <td class="fieldval"> |
|---|
| 2095 | | <xsl:variable name="link" select="/bedework/formElements/form/link/input/@value"/> |
|---|
| 2096 | | <input type="text" name="newEvent.link" size="80" value="{$link}"/> |
|---|
| 2097 | | </td> |
|---|
| 2098 | | </tr> |
|---|
| 2099 | | |
|---|
| 2100 | | <!-- Category --> |
|---|
| 2101 | | <tr> |
|---|
| 2102 | | <td class="fieldname"> |
|---|
| 2103 | | Categories: |
|---|
| 2104 | | </td> |
|---|
| 2105 | | <td class="fieldval" align="left"> |
|---|
| 2106 | | <table cellpadding="0" id="allCategoryCheckboxes"> |
|---|
| 2107 | | <tr> |
|---|
| 2108 | | <xsl:variable name="catCount" select="count(/bedework/formElements/form/categories/all/category)"/> |
|---|
| 2109 | | <td> |
|---|
| 2110 | | <xsl:for-each select="/bedework/formElements/form/categories/all/category[position() <= ceiling($catCount div 2)]"> |
|---|
| 2111 | | <input type="checkbox" name="categoryKey"> |
|---|
| 2112 | | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| 2113 | | <xsl:value-of select="keyword"/> |
|---|
| 2114 | | </input><br/> |
|---|
| 2115 | | </xsl:for-each> |
|---|
| 2116 | | </td> |
|---|
| 2117 | | <td> |
|---|
| 2118 | | <xsl:for-each select="/bedework/formElements/form/categories/all/category[position() > ceiling($catCount div 2)]"> |
|---|
| 2119 | | <input type="checkbox" name="categoryKey"> |
|---|
| 2120 | | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| 2121 | | <xsl:value-of select="keyword"/> |
|---|
| 2122 | | </input><br/> |
|---|
| 2123 | | </xsl:for-each> |
|---|
| 2124 | | </td> |
|---|
| 2125 | | </tr> |
|---|
| 2126 | | </table> |
|---|
| 2127 | | </td> |
|---|
| 2128 | | </tr> |
|---|
| 2129 | | |
|---|
| 2130 | | <tr> |
|---|
| 2131 | | <td class="fieldname"> </td> |
|---|
| 2132 | | <td class="fieldval"> |
|---|
| 2133 | | <input name="submit" type="submit" value="Submit Event"/>  |
|---|
| 2134 | | <input name="cancelled" type="submit" value="Cancel"/> |
|---|
| 2135 | | </td> |
|---|
| 2136 | | </tr> |
|---|
| 2137 | | </table> |
|---|
| 2138 | | </form> |
|---|
| 2139 | | |
|---|
| 2140 | | <!-- pop-up dialog boxes in use with the events page --> |
|---|
| 2141 | | <!-- these should follow other items in the form and in some cases |
|---|
| 2142 | | be in a different form --> |
|---|
| 2143 | | |
|---|
| 2144 | | <div id="clock" class="invisible"> |
|---|
| 2145 | | <xsl:call-template name="clock"/> |
|---|
| 2146 | | </div> |
|---|
| 2147 | | </xsl:template> |
|---|
| 2148 | | |
|---|
| 2149 | | <xsl:template name="clock"> |
|---|
| 2150 | | <div id="bwClock"> |
|---|
| 2151 | | <!-- Bedework 24-Hour Clock time selection widget |
|---|
| 2152 | | used with resources/bwClock.js and resources/bwClock.css --> |
|---|
| 2153 | | <div id="bwClockClock"> |
|---|
| 2154 | | <img id="clockMap" src="{$resourcesRoot}/resources/clockMap.gif" width="368" height="368" border="0" alt="" usemap="#bwClockMap" /> |
|---|
| 2155 | | </div> |
|---|
| 2156 | | <div id="bwClockCover"> |
|---|
| 2157 | | <!-- this is a special effect div used simply to cover the pixelated edge |
|---|
| 2158 | | where the clock meets the clock box title --> |
|---|
| 2159 | | </div> |
|---|
| 2160 | | <div id="bwClockBox"> |
|---|
| 2161 | | <h2> |
|---|
| 2162 | | Bedework 24-Hour Clock |
|---|
| 2163 | | </h2> |
|---|
| 2164 | | <div id="bwClockDateTypeIndicator"> |
|---|
| 2165 | | type |
|---|
| 2166 | | </div> |
|---|
| 2167 | | <div id="bwClockTime"> |
|---|
| 2168 | | select time |
|---|
| 2169 | | </div> |
|---|
| 2170 | | <div id="bwClockCloseText"> |
|---|
| 2171 | | close |
|---|
| 2172 | | </div> |
|---|
| 2173 | | <div id="bwClockCloseButton"> |
|---|
| 2174 | | <a href="javascript:bwClockClose();">X</a> |
|---|
| 2175 | | </div> |
|---|
| 2176 | | </div> |
|---|
| 2177 | | <map name="bwClockMap" id="bwClockMap"> |
|---|
| 2178 | | <area shape="rect" alt="close clock" title="close clock" coords="160,167, 200,200" href="javascript:bwClockClose()"/> |
|---|
| 2179 | | <area shape="poly" alt="minute 00:55" title="minute 00:55" coords="156,164, 169,155, 156,107, 123,128" href="javascript:bwClockUpdateDateTimeForm('minute','55')" /> |
|---|
| 2180 | | <area shape="poly" alt="minute 00:50" title="minute 00:50" coords="150,175, 156,164, 123,128, 103,161" href="javascript:bwClockUpdateDateTimeForm('minute','50')" /> |
|---|
| 2181 | | <area shape="poly" alt="minute 00:45" title="minute 00:45" coords="150,191, 150,175, 103,161, 103,206" href="javascript:bwClockUpdateDateTimeForm('minute','45')" /> |
|---|
| 2182 | | <area shape="poly" alt="minute 00:40" title="minute 00:40" coords="158,208, 150,191, 105,206, 123,237" href="javascript:bwClockUpdateDateTimeForm('minute','40')" /> |
|---|
| 2183 | | <area shape="poly" alt="minute 00:35" title="minute 00:35" coords="171,218, 158,208, 123,238, 158,261" href="javascript:bwClockUpdateDateTimeForm('minute','35')" /> |
|---|
| 2184 | | <area shape="poly" alt="minute 00:30" title="minute 00:30" coords="193,218, 172,218, 158,263, 209,263" href="javascript:bwClockUpdateDateTimeForm('minute','30')" /> |
|---|
| 2185 | | <area shape="poly" alt="minute 00:25" title="minute 00:25" coords="209,210, 193,218, 209,261, 241,240" href="javascript:bwClockUpdateDateTimeForm('minute','25')" /> |
|---|
| 2186 | | <area shape="poly" alt="minute 00:20" title="minute 00:20" coords="216,196, 209,210, 241,240, 261,206" href="javascript:bwClockUpdateDateTimeForm('minute','20')" /> |
|---|
| 2187 | | <area shape="poly" alt="minute 00:15" title="minute 00:15" coords="216,178, 216,196, 261,206, 261,159" href="javascript:bwClockUpdateDateTimeForm('minute','15')" /> |
|---|
| 2188 | | <area shape="poly" alt="minute 00:10" title="minute 00:10" coords="209,164, 216,178, 261,159, 240,126" href="javascript:bwClockUpdateDateTimeForm('minute','10')" /> |
|---|
| 2189 | | <area shape="poly" alt="minute 00:05" title="minute 00:05" coords="196,155, 209,164, 238,126, 206,107" href="javascript:bwClockUpdateDateTimeForm('minute','05')" /> |
|---|
| 2190 | | <area shape="poly" alt="minute 00:00" title="minute 00:00" coords="169,155, 196,155, 206,105, 156,105" href="javascript:bwClockUpdateDateTimeForm('minute','00')" /> |
|---|
| 2191 | | <area shape="poly" alt="11 PM, 2300 hour" title="11 PM, 2300 hour" coords="150,102, 172,96, 158,1, 114,14" href="javascript:bwClockUpdateDateTimeForm('hour','23')" /> |
|---|
| 2192 | | <area shape="poly" alt="10 PM, 2200 hour" title="10 PM, 2200 hour" coords="131,114, 150,102, 114,14, 74,36" href="javascript:bwClockUpdateDateTimeForm('hour','22')" /> |
|---|
| 2193 | | <area shape="poly" alt="9 PM, 2100 hour" title="9 PM, 2100 hour" coords="111,132, 131,114, 74,36, 40,69" href="javascript:bwClockUpdateDateTimeForm('hour','21')" /> |
|---|
| 2194 | | <area shape="poly" alt="8 PM, 2000 hour" title="8 PM, 2000 hour" coords="101,149, 111,132, 40,69, 15,113" href="javascript:bwClockUpdateDateTimeForm('hour','20')" /> |
|---|
| 2195 | | <area shape="poly" alt="7 PM, 1900 hour" title="7 PM, 1900 hour" coords="95,170, 101,149, 15,113, 1,159" href="javascript:bwClockUpdateDateTimeForm('hour','19')" /> |
|---|
| 2196 | | <area shape="poly" alt="6 PM, 1800 hour" title="6 PM, 1800 hour" coords="95,196, 95,170, 0,159, 0,204" href="javascript:bwClockUpdateDateTimeForm('hour','18')" /> |
|---|
| 2197 | | <area shape="poly" alt="5 PM, 1700 hour" title="5 PM, 1700 hour" coords="103,225, 95,196, 1,205, 16,256" href="javascript:bwClockUpdateDateTimeForm('hour','17')" /> |
|---|
| 2198 | | <area shape="poly" alt="4 PM, 1600 hour" title="4 PM, 1600 hour" coords="116,245, 103,225, 16,256, 41,298" href="javascript:bwClockUpdateDateTimeForm('hour','16')" /> |
|---|
| 2199 | | <area shape="poly" alt="3 PM, 1500 hour" title="3 PM, 1500 hour" coords="134,259, 117,245, 41,298, 76,332" href="javascript:bwClockUpdateDateTimeForm('hour','15')" /> |
|---|
| 2200 | | <area shape="poly" alt="2 PM, 1400 hour" title="2 PM, 1400 hour" coords="150,268, 134,259, 76,333, 121,355" href="javascript:bwClockUpdateDateTimeForm('hour','14')" /> |
|---|
| 2201 | | <area shape="poly" alt="1 PM, 1300 hour" title="1 PM, 1300 hour" coords="169,273, 150,268, 120,356, 165,365" href="javascript:bwClockUpdateDateTimeForm('hour','13')" /> |
|---|
| 2202 | | <area shape="poly" alt="Noon, 1200 hour" title="Noon, 1200 hour" coords="193,273, 169,273, 165,365, 210,364" href="javascript:bwClockUpdateDateTimeForm('hour','12')" /> |
|---|
| 2203 | | <area shape="poly" alt="11 AM, 1100 hour" title="11 AM, 1100 hour" coords="214,270, 193,273, 210,363, 252,352" href="javascript:bwClockUpdateDateTimeForm('hour','11')" /> |
|---|
| 2204 | | <area shape="poly" alt="10 AM, 1000 hour" title="10 AM, 1000 hour" coords="232,259, 214,270, 252,352, 291,330" href="javascript:bwClockUpdateDateTimeForm('hour','10')" /> |
|---|
| 2205 | | <area shape="poly" alt="9 AM, 0900 hour" title="9 AM, 0900 hour" coords="251,240, 232,258, 291,330, 323,301" href="javascript:bwClockUpdateDateTimeForm('hour','09')" /> |
|---|
| 2206 | | <area shape="poly" alt="8 AM, 0800 hour" title="8 AM, 0800 hour" coords="263,219, 251,239, 323,301, 349,261" href="javascript:bwClockUpdateDateTimeForm('hour','08')" /> |
|---|
| 2207 | | <area shape="poly" alt="7 AM, 0700 hour" title="7 AM, 0700 hour" coords="269,194, 263,219, 349,261, 363,212" href="javascript:bwClockUpdateDateTimeForm('hour','07')" /> |
|---|
| 2208 | | <area shape="poly" alt="6 AM, 0600 hour" title="6 AM, 0600 hour" coords="269,172, 269,193, 363,212, 363,155" href="javascript:bwClockUpdateDateTimeForm('hour','06')" /> |
|---|
| 2209 | | <area shape="poly" alt="5 AM, 0500 hour" title="5 AM, 0500 hour" coords="263,150, 269,172, 363,155, 351,109" href="javascript:bwClockUpdateDateTimeForm('hour','05')" /> |
|---|
| 2210 | | <area shape="poly" alt="4 AM, 0400 hour" title="4 AM, 0400 hour" coords="251,130, 263,150, 351,109, 325,68" href="javascript:bwClockUpdateDateTimeForm('hour','04')" /> |
|---|
| 2211 | | <area shape="poly" alt="3 AM, 0300 hour" title="3 AM, 0300 hour" coords="234,112, 251,130, 325,67, 295,37" href="javascript:bwClockUpdateDateTimeForm('hour','03')" /> |
|---|
| 2212 | | <area shape="poly" alt="2 AM, 0200 hour" title="2 AM, 0200 hour" coords="221,102, 234,112, 295,37, 247,11" href="javascript:bwClockUpdateDateTimeForm('hour','02')" /> |
|---|
| 2213 | | <area shape="poly" alt="1 AM, 0100 hour" title="1 AM, 0100 hour" coords="196,96, 221,102, 247,10, 209,-1, 201,61, 206,64, 205,74, 199,75" href="javascript:bwClockUpdateDateTimeForm('hour','01')" /> |
|---|
| 2214 | | <area shape="poly" alt="Midnight, 0000 hour" title="Midnight, 0000 hour" coords="172,96, 169,74, 161,73, 161,65, 168,63, 158,-1, 209,-1, 201,61, 200,62, 206,64, 205,74, 198,75, 196,96, 183,95" href="javascript:bwClockUpdateDateTimeForm('hour','00')" /> |
|---|
| 2215 | | </map> |
|---|
| 2216 | | </div> |
|---|
| 2217 | | </xsl:template> |
|---|
| 2218 | | |
|---|
| 2219 | | <xsl:template name="attendees"> |
|---|
| 2220 | | <form name="raForm" id="recipientsAndAttendees" action="{$event-attendeesForEvent}" method="post"> |
|---|
| 2221 | | <div id="recipientsAndAttendeesBox"> |
|---|
| 2222 | | <h4 id="dialogTitle"> |
|---|
| 2223 | | Recipients and Attendees |
|---|
| 2224 | | </h4> |
|---|
| 2225 | | <xsl:call-template name="messagesAndErrors"/> |
|---|
| 2226 | | <div id="raContent"> |
|---|
| 2227 | | <table cellspacing="0"> |
|---|
| 2228 | | <tr> |
|---|
| 2229 | | <td> |
|---|
| 2230 | | <input name="uri" width="40"/> |
|---|
| 2231 | | <input type="submit" value="add" /> |
|---|
| 2232 | | <br/> |
|---|
| 2233 | | <input type="checkbox" name="recipient" value="true" checked="checked"/> recipient |
|---|
| 2234 | | <input type="checkbox" name="attendee" value="true" checked="checked"/> attendee |
|---|
| 2235 | | </td> |
|---|
| 2236 | | <td> |
|---|
| 2237 | | Role: |
|---|
| 2238 | | <select name="role"> |
|---|
| 2239 | | <option value="REQ-PARTICIPANT">required participant</option> |
|---|
| 2240 | | <option value="OPT-PARTICIPANT">optional participant</option> |
|---|
| 2241 | | <option value="CHAIR">chair</option> |
|---|
| 2242 | | <option value="NON-PARTICIPANT">non-participant</option> |
|---|
| 2243 | | </select><br/> |
|---|
| 2244 | | Status: |
|---|
| 2245 | | <select name="partstat"> |
|---|
| 2246 | | <option value="NEEDS-ACTION">needs action</option> |
|---|
| 2247 | | <option value="ACCEPTED">accepted</option> |
|---|
| 2248 | | <option value="DECLINED">declined</option> |
|---|
| 2249 | | <option value="TENTATIVE">tentative</option> |
|---|
| 2250 | | <option value="DELEGATED">delegated</option> |
|---|
| 2251 | | </select> |
|---|
| 2252 | | </td> |
|---|
| 2253 | | </tr> |
|---|
| 2254 | | </table> |
|---|
| 2255 | | <xsl:if test="/bedework/attendees/attendee"> |
|---|
| 2256 | | <table id="attendees" class="widget" cellspacing="0"> |
|---|
| 2257 | | <tr> |
|---|
| 2258 | | <th colspan="4">Attendees</th> |
|---|
| 2259 | | </tr> |
|---|
| 2260 | | <!--<tr> |
|---|
| 2261 | | <td>attendee</td> |
|---|
| 2262 | | <td>role</td> |
|---|
| 2263 | | <td>status</td> |
|---|
| 2264 | | </tr>--> |
|---|
| 2265 | | <xsl:for-each select="/bedework/attendees/attendee"> |
|---|
| 2266 | | <xsl:sort select="cn" order="ascending" case-order="upper-first"/> |
|---|
| 2267 | | <xsl:sort select="attendeeUri" order="ascending" case-order="upper-first"/> |
|---|
| 2268 | | <xsl:variable name="attendeeUri" select="attendeeUri"/> |
|---|
| 2269 | | <tr> |
|---|
| 2270 | | <td class="trash"> |
|---|
| 2271 | | <a href="{$event-attendeesForEvent}&uri={$attendeeUri}&attendee=true&delete=true" title="remove"> |
|---|
| 2272 | | <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> |
|---|
| 2273 | | </a> |
|---|
| 2274 | | </td> |
|---|
| 2275 | | <td> |
|---|
| 2276 | | <a href="{$attendeeUri}"> |
|---|
| 2277 | | <xsl:choose> |
|---|
| 2278 | | <xsl:when test="cn != ''"> |
|---|
| 2279 | | <xsl:value-of select="cn"/> |
|---|
| 2280 | | </xsl:when> |
|---|
| 2281 | | <xsl:otherwise> |
|---|
| 2282 | | <xsl:value-of select="attendeeUri"/> |
|---|
| 2283 | | </xsl:otherwise> |
|---|
| 2284 | | </xsl:choose> |
|---|
| 2285 | | </a> |
|---|
| 2286 | | </td> |
|---|
| 2287 | | <td class="role"> |
|---|
| 2288 | | <xsl:value-of select="role"/> |
|---|
| 2289 | | </td> |
|---|
| 2290 | | <td class="status"> |
|---|
| 2291 | | <xsl:value-of select="partstat"/> |
|---|
| 2292 | | </td> |
|---|
| 2293 | | </tr> |
|---|
| 2294 | | </xsl:for-each> |
|---|
| 2295 | | </table> |
|---|
| 2296 | | </xsl:if> |
|---|
| 2297 | | |
|---|
| 2298 | | <xsl:if test="/bedework/recipients/recipient"> |
|---|
| 2299 | | <table id="attendees" class="widget" cellspacing="0"> |
|---|
| 2300 | | <tr> |
|---|
| 2301 | | <th colspan="2">Recipients</th> |
|---|
| 2302 | | </tr> |
|---|
| 2303 | | <xsl:for-each select="/bedework/recipients/recipient"> |
|---|
| 2304 | | <xsl:variable name="recipientUri" select="."/> |
|---|
| 2305 | | <tr> |
|---|
| 2306 | | <td class="trash"> |
|---|
| 2307 | | <a href="{$event-attendeesForEvent}&uri={$recipientUri}&recipient=true&delete=true" title="remove"> |
|---|
| 2308 | | <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> |
|---|
| 2309 | | </a> |
|---|
| 2310 | | </td> |
|---|
| 2311 | | <td> |
|---|
| 2312 | | <a href="{$recipientUri}"> |
|---|
| 2313 | | <xsl:value-of select="."/> |
|---|
| 2314 | | </a> |
|---|
| 2315 | | </td> |
|---|
| 2316 | | </tr> |
|---|
| 2317 | | </xsl:for-each> |
|---|
| 2318 | | </table> |
|---|
| 2319 | | </xsl:if> |
|---|
| 2320 | | |
|---|
| 2321 | | <input type="button" value="done" onclick="window.close()"/> |
|---|
| 2322 | | </div> |
|---|
| 2323 | | </div> |
|---|
| | 1750 | <xsl:apply-templates select="." mode="eventForm"/> |
|---|
| 2337 | | <input type="hidden" name="endType" value="date"/> |
|---|
| 2338 | | <h2>Edit Event</h2> |
|---|
| 2339 | | <table class="common" cellspacing="0"> |
|---|
| 2340 | | <tr> |
|---|
| 2341 | | <th colspan="2" class="commonHeader"> |
|---|
| 2342 | | <div id="eventActions"> |
|---|
| 2343 | | <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> |
|---|
| 2344 | | <img src="{$resourcesRoot}/resources/glassFill-icon-viewGray.gif" width="13" height="13" border="0" alt="view"/> |
|---|
| 2345 | | View |
|---|
| 2346 | | </a> |
|---|
| 2347 | | <xsl:if test="currentAccess/current-user-privilege-set/privilege/unbind"> |
|---|
| 2348 | | | |
|---|
| 2349 | | <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPathEncoded}&guid={$guid}&recurrenceId={$recurrenceId}"> |
|---|
| 2350 | | <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> |
|---|
| 2351 | | Delete |
|---|
| 2352 | | </a> |
|---|
| 2353 | | </xsl:if> |
|---|
| 2354 | | </div> |
|---|
| 2355 | | Personal Event |
|---|
| 2356 | | </th> |
|---|
| 2357 | | </tr> |
|---|
| 2358 | | <tr> |
|---|
| 2359 | | <td class="fieldname"> |
|---|
| 2360 | | Title: |
|---|
| 2361 | | </td> |
|---|
| 2362 | | <td class="fieldval"> |
|---|
| 2363 | | <xsl:variable name="title" select="form/title/input/@value"/> |
|---|
| 2364 | | <input type="text" name="summary" size="80" value="{$title}"/> |
|---|
| 2365 | | </td> |
|---|
| 2366 | | </tr> |
|---|
| 2367 | | <tr> |
|---|
| 2368 | | <td class="fieldname"> |
|---|
| 2369 | | Calendar: |
|---|
| 2370 | | </td> |
|---|
| 2371 | | <td class="fieldval"> |
|---|
| 2372 | | <xsl:variable name="newCalPath" select="/bedework/formElements/form/calendar/path"/> |
|---|
| 2373 | | <input type="hidden" name="newCalPath" value="{$newCalPath}"/> |
|---|
| 2374 | | <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable> |
|---|
| 2375 | | <span id="bwEventCalDisplay"> |
|---|
| 2376 | | <xsl:choose> |
|---|
| 2377 | | <xsl:when test="contains(/bedework/formElements/form/calendar/path,$userPath)"> |
|---|
| 2378 | | <xsl:value-of select="substring-after(/bedework/formElements/form/calendar/path,$userPath)"/> |
|---|
| 2379 | | </xsl:when> |
|---|
| 2380 | | <xsl:otherwise> |
|---|
| 2381 | | <xsl:value-of select="/bedework/formElements/form/calendar/path"/> |
|---|
| 2382 | | </xsl:otherwise> |
|---|
| 2383 | | </xsl:choose> |
|---|
| 2384 | | </span> |
|---|
| 2385 | | <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a> |
|---|
| 2386 | | </td> |
|---|
| 2387 | | </tr> |
|---|
| 2388 | | <tr> |
|---|
| 2389 | | <td class="fieldname"> |
|---|
| 2390 | | Date & Time: |
|---|
| 2391 | | </td> |
|---|
| 2392 | | <td class="fieldval"> |
|---|
| 2393 | | <!-- Set the timefields class for the first load of the page; |
|---|
| 2394 | | subsequent changes will take place using javascript without a |
|---|
| 2395 | | page reload. --> |
|---|
| 2396 | | <xsl:variable name="timeFieldsClass"> |
|---|
| 2397 | | <xsl:choose> |
|---|
| 2398 | | <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> |
|---|
| 2399 | | <xsl:otherwise>timeFields</xsl:otherwise> |
|---|
| 2400 | | </xsl:choose> |
|---|
| 2401 | | </xsl:variable> |
|---|
| 2402 | | <xsl:choose> |
|---|
| 2403 | | <xsl:when test="form/allDay/input/@checked='checked'"> |
|---|
| 2404 | | <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/> |
|---|
| 2405 | | <input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayStartDateField"/> |
|---|
| 2406 | | <input type="hidden" name="eventEndDate.dateOnly" value="on" id="allDayEndDateField"/> |
|---|
| 2407 | | </xsl:when> |
|---|
| 2408 | | <xsl:otherwise> |
|---|
| 2409 | | <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/> |
|---|
| 2410 | | <input type="hidden" name="eventStartDate.dateOnly" value="off" id="allDayStartDateField"/> |
|---|
| 2411 | | <input type="hidden" name="eventEndDate.dateOnly" value="off" id="allDayEndDateField"/> |
|---|
| 2412 | | </xsl:otherwise> |
|---|
| 2413 | | </xsl:choose> |
|---|
| 2414 | | all day event |
|---|
| 2415 | | <xsl:choose> |
|---|
| 2416 | | <xsl:when test="/bedework/formElements/form/floating/input/@checked='checked'"> |
|---|
| 2417 | | <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="on" checked="checked"/> |
|---|
| 2418 | | <input type="hidden" name="eventStartDate.floating" value="on" id="startFloating"/> |
|---|
| 2419 | | <input type="hidden" name="eventEndDate.floating" value="on" id="endFloating"/> |
|---|
| 2420 | | </xsl:when> |
|---|
| 2421 | | <xsl:otherwise> |
|---|
| 2422 | | <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="off"/> |
|---|
| 2423 | | <input type="hidden" name="eventStartDate.floating" value="off" id="startFloating"/> |
|---|
| 2424 | | <input type="hidden" name="eventEndDate.floating" value="off" id="endFloating"/> |
|---|
| 2425 | | </xsl:otherwise> |
|---|
| 2426 | | </xsl:choose> |
|---|
| 2427 | | floating |
|---|
| 2428 | | <xsl:choose> |
|---|
| 2429 | | <xsl:when test="/bedework/formElements/form/storeUTC/input/@checked='checked'"> |
|---|
| 2430 | | <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="on" checked="checked"/> |
|---|
| 2431 | | <input type="hidden" name="eventStartDate.storeUTC" value="on" id="startStoreUTC"/> |
|---|
| 2432 | | <input type="hidden" name="eventEndDate.storeUTC" value="on" id="endStoreUTC"/> |
|---|
| 2433 | | </xsl:when> |
|---|
| 2434 | | <xsl:otherwise> |
|---|
| 2435 | | <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="off"/> |
|---|
| 2436 | | <input type="hidden" name="eventStartDate.storeUTC" value="off" id="startStoreUTC"/> |
|---|
| 2437 | | <input type="hidden" name="eventEndDate.storeUTC" value="off" id="endStoreUTC"/> |
|---|
| 2438 | | </xsl:otherwise> |
|---|
| 2439 | | </xsl:choose> |
|---|
| 2440 | | store as UTC |
|---|
| 2441 | | <br/> |
|---|
| 2442 | | <div class="dateStartEndBox"> |
|---|
| 2443 | | <strong>Start:</strong> |
|---|
| 2444 | | <div class="dateFields"> |
|---|
| 2445 | | <span class="startDateLabel">Date </span> |
|---|
| 2446 | | <xsl:copy-of select="form/start/month/*"/> |
|---|
| 2447 | | <xsl:copy-of select="form/start/day/*"/> |
|---|
| 2448 | | <xsl:choose> |
|---|
| 2449 | | <xsl:when test="/bedework/creating = 'true'"> |
|---|
| 2450 | | <xsl:copy-of select="form/start/year/*"/> |
|---|
| 2451 | | </xsl:when> |
|---|
| 2452 | | <xsl:otherwise> |
|---|
| 2453 | | <xsl:copy-of select="form/start/yearText/*"/> |
|---|
| 2454 | | </xsl:otherwise> |
|---|
| 2455 | | </xsl:choose> |
|---|
| 2456 | | </div> |
|---|
| 2457 | | <script language="JavaScript" type="text/javascript"> |
|---|
| 2458 | | <xsl:comment> |
|---|
| 2459 | | 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'); |
|---|
| 2460 | | </xsl:comment> |
|---|
| 2461 | | </script> |
|---|
| 2462 | | <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> |
|---|
| 2463 | | <div class="{$timeFieldsClass}" id="startTimeFields"> |
|---|
| 2464 | | <span id="calWidgetStartTimeHider" class="show"> |
|---|
| 2465 | | <xsl:copy-of select="form/start/hour/*"/> |
|---|
| 2466 | | <xsl:copy-of select="form/start/minute/*"/> |
|---|
| 2467 | | <xsl:if test="form/start/ampm"> |
|---|
| 2468 | | <xsl:copy-of select="form/start/ampm/*"/> |
|---|
| 2469 | | </xsl:if> |
|---|
| 2470 | | <xsl:text> </xsl:text> |
|---|
| 2471 | | <a href="javascript:bwClockLaunch('eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> |
|---|
| 2472 | | |
|---|
| 2473 | | <select name="eventStartDate.tzid" id="startTzid" class="timezones"> |
|---|
| 2474 | | <xsl:if test="/bedework/formElements/form/floating/input/@checked='checked'"><xsl:attribute name="disabled">true</xsl:attribute></xsl:if> |
|---|
| 2475 | | <xsl:for-each select="/bedework/timezones/timezone"> |
|---|
| 2476 | | <option> |
|---|
| 2477 | | <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> |
|---|
| 2478 | | <xsl:if test="/bedework/formElements/form/start/tzid = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> |
|---|
| 2479 | | <xsl:value-of select="name"/> |
|---|
| 2480 | | </option> |
|---|
| 2481 | | </xsl:for-each> |
|---|
| 2482 | | </select> |
|---|
| 2483 | | </span> |
|---|
| 2484 | | </div> |
|---|
| 2485 | | </div> |
|---|
| 2486 | | <div class="dateStartEndBox"> |
|---|
| 2487 | | <strong>End:</strong> |
|---|
| 2488 | | <xsl:choose> |
|---|
| 2489 | | <xsl:when test="form/end/type='E'"> |
|---|
| 2490 | | <input type="radio" name="eventEndType" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> |
|---|
| 2491 | | </xsl:when> |
|---|
| 2492 | | <xsl:otherwise> |
|---|
| 2493 | | <input type="radio" name="eventEndType" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> |
|---|
| 2494 | | </xsl:otherwise> |
|---|
| 2495 | | </xsl:choose> |
|---|
| 2496 | | Date |
|---|
| 2497 | | <xsl:variable name="endDateTimeClass"> |
|---|
| 2498 | | <xsl:choose> |
|---|
| 2499 | | <xsl:when test="form/end/type='E'">shown</xsl:when> |
|---|
| 2500 | | <xsl:otherwise>invisible</xsl:otherwise> |
|---|
| 2501 | | </xsl:choose> |
|---|
| 2502 | | </xsl:variable> |
|---|
| 2503 | | <div class="{$endDateTimeClass}" id="endDateTime"> |
|---|
| 2504 | | <div class="dateFields"> |
|---|
| 2505 | | <xsl:copy-of select="form/end/dateTime/month/*"/> |
|---|
| 2506 | | <xsl:copy-of select="form/end/dateTime/day/*"/> |
|---|
| 2507 | | <xsl:choose> |
|---|
| 2508 | | <xsl:when test="/bedework/creating = 'true'"> |
|---|
| 2509 | | <xsl:copy-of select="form/end/dateTime/year/*"/> |
|---|
| 2510 | | </xsl:when> |
|---|
| 2511 | | <xsl:otherwise> |
|---|
| 2512 | | <xsl:copy-of select="form/end/dateTime/yearText/*"/> |
|---|
| 2513 | | </xsl:otherwise> |
|---|
| 2514 | | </xsl:choose> |
|---|
| 2515 | | </div> |
|---|
| 2516 | | <script language="JavaScript" type="text/javascript"> |
|---|
| 2517 | | <xsl:comment> |
|---|
| 2518 | | 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'); |
|---|
| 2519 | | </xsl:comment> |
|---|
| 2520 | | </script> |
|---|
| 2521 | | <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> |
|---|
| 2522 | | <div class="{$timeFieldsClass}" id="endTimeFields"> |
|---|
| 2523 | | <span id="calWidgetEndTimeHider" class="show"> |
|---|
| 2524 | | <xsl:copy-of select="form/end/dateTime/hour/*"/> |
|---|
| 2525 | | <xsl:copy-of select="form/end/dateTime/minute/*"/> |
|---|
| 2526 | | <xsl:if test="form/end/dateTime/ampm"> |
|---|
| 2527 | | <xsl:copy-of select="form/end/dateTime/ampm/*"/> |
|---|
| 2528 | | </xsl:if> |
|---|
| 2529 | | <xsl:text> </xsl:text> |
|---|
| 2530 | | <a href="javascript:bwClockLaunch('eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> |
|---|
| 2531 | | |
|---|
| 2532 | | <select name="eventEndDate.tzid" id="endTzid" class="timezones"> |
|---|
| 2533 | | <xsl:if test="/bedework/formElements/form/floating/input/@checked='checked'"><xsl:attribute name="disabled">true</xsl:attribute></xsl:if> |
|---|
| 2534 | | <xsl:for-each select="/bedework/timezones/timezone"> |
|---|
| 2535 | | <option> |
|---|
| 2536 | | <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> |
|---|
| 2537 | | <xsl:if test="/bedework/formElements/form/end/dateTime/tzid = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> |
|---|
| 2538 | | <xsl:value-of select="name"/> |
|---|
| 2539 | | </option> |
|---|
| 2540 | | </xsl:for-each> |
|---|
| 2541 | | </select> |
|---|
| 2542 | | </span> |
|---|
| 2543 | | </div> |
|---|
| 2544 | | </div><br/> |
|---|
| 2545 | | <div id="clock" class="invisible"> |
|---|
| 2546 | | <xsl:call-template name="clock"/> |
|---|
| 2547 | | </div> |
|---|
| 2548 | | <div class="dateFields"> |
|---|
| 2549 | | <xsl:choose> |
|---|
| 2550 | | <xsl:when test="form/end/type='D'"> |
|---|
| 2551 | | <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> |
|---|
| 2552 | | </xsl:when> |
|---|
| 2553 | | <xsl:otherwise> |
|---|
| 2554 | | <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> |
|---|
| 2555 | | </xsl:otherwise> |
|---|
| 2556 | | </xsl:choose> |
|---|
| 2557 | | Duration |
|---|
| 2558 | | <xsl:variable name="endDurationClass"> |
|---|
| 2559 | | <xsl:choose> |
|---|
| 2560 | | <xsl:when test="form/end/type='D'">shown</xsl:when> |
|---|
| 2561 | | <xsl:otherwise>invisible</xsl:otherwise> |
|---|
| 2562 | | </xsl:choose> |
|---|
| 2563 | | </xsl:variable> |
|---|
| 2564 | | <xsl:variable name="durationHrMinClass"> |
|---|
| 2565 | | <xsl:choose> |
|---|
| 2566 | | <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> |
|---|
| 2567 | | <xsl:otherwise>shown</xsl:otherwise> |
|---|
| 2568 | | </xsl:choose> |
|---|
| 2569 | | </xsl:variable> |
|---|
| 2570 | | <div class="{$endDurationClass}" id="endDuration"> |
|---|
| 2571 | | <xsl:choose> |
|---|
| 2572 | | <xsl:when test="form/end/duration/weeks/input/@value = '0'"> |
|---|
| 2573 | | <!-- we are using day, hour, minute format --> |
|---|
| 2574 | | <!-- must send either no week value or week value of 0 (zero) --> |
|---|
| 2575 | | <div class="durationBox"> |
|---|
| 2576 | | <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/> |
|---|
| 2577 | | <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> |
|---|
| 2578 | | <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays"/>days |
|---|
| 2579 | | <span id="durationHrMin" class="{$durationHrMinClass}"> |
|---|
| 2580 | | <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> |
|---|
| 2581 | | <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours"/>hours |
|---|
| 2582 | | <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> |
|---|
| 2583 | | <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes"/>minutes |
|---|
| 2584 | | </span> |
|---|
| 2585 | | </div> |
|---|
| 2586 | | <span class="durationSpacerText">or</span> |
|---|
| 2587 | | <div class="durationBox"> |
|---|
| 2588 | | <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/> |
|---|
| 2589 | | <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> |
|---|
| 2590 | | <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="true"/>weeks |
|---|
| 2591 | | </div> |
|---|
| 2592 | | </xsl:when> |
|---|
| 2593 | | <xsl:otherwise> |
|---|
| 2594 | | <!-- we are using week format --> |
|---|
| 2595 | | <div class="durationBox"> |
|---|
| 2596 | | <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/> |
|---|
| 2597 | | <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> |
|---|
| 2598 | | <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="true"/>days |
|---|
| 2599 | | <span id="durationHrMin" class="{$durationHrMinClass}"> |
|---|
| 2600 | | <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> |
|---|
| 2601 | | <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="true"/>hours |
|---|
| 2602 | | <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> |
|---|
| 2603 | | <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="true"/>minutes |
|---|
| 2604 | | </span> |
|---|
| 2605 | | </div> |
|---|
| 2606 | | <span class="durationSpacerText">or</span> |
|---|
| 2607 | | <div class="durationBox"> |
|---|
| 2608 | | <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')" checked="checked"/> |
|---|
| 2609 | | <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> |
|---|
| 2610 | | <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks"/>weeks |
|---|
| 2611 | | </div> |
|---|
| 2612 | | </xsl:otherwise> |
|---|
| 2613 | | </xsl:choose> |
|---|
| 2614 | | </div> |
|---|
| 2615 | | </div><br/> |
|---|
| 2616 | | <div class="dateFields" id="noDuration"> |
|---|
| 2617 | | <xsl:choose> |
|---|
| 2618 | | <xsl:when test="form/end/type='N'"> |
|---|
| 2619 | | <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> |
|---|
| 2620 | | </xsl:when> |
|---|
| 2621 | | <xsl:otherwise> |
|---|
| 2622 | | <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> |
|---|
| 2623 | | </xsl:otherwise> |
|---|
| 2624 | | </xsl:choose> |
|---|
| 2625 | | This event has no duration / end date |
|---|
| 2626 | | </div> |
|---|
| 2627 | | </div> |
|---|
| 2628 | | </td> |
|---|
| 2629 | | </tr> |
|---|
| 2630 | | <!-- Status --> |
|---|
| 2631 | | <tr> |
|---|
| 2632 | | <td class="fieldname"> |
|---|
| 2633 | | Status: |
|---|
| 2634 | | </td> |
|---|
| 2635 | | <td class="fieldval"> |
|---|
| 2636 | | <xsl:choose> |
|---|
| 2637 | | <xsl:when test="form/status = 'TENTATIVE'"> |
|---|
| 2638 | | <input type="radio" name="event.status" value="CONFIRMED"/>confirmed <input type="radio" name="edvent.status" value="TENTATIVE" checked="checked"/>tentative <input type="radio" name="event.status" value="CANCELLED"/>cancelled |
|---|
| 2639 | | </xsl:when> |
|---|
| 2640 | | <xsl:when test="form/status = 'CANCELLED'"> |
|---|
| 2641 | | <input type="radio" name="event.status" value="CONFIRMED"/>confirmed <input type="radio" name="event.status" value="TENTATIVE"/>tentative <input type="radio" name="event.status" value="CANCELLED" checked="checked"/>cancelled |
|---|
| 2642 | | </xsl:when> |
|---|
| 2643 | | <xsl:otherwise> |
|---|
| 2644 | | <input type="radio" name="event.status" value="CONFIRMED" checked="checked"/>confirmed <input type="radio" name="event.status" value="TENTATIVE"/>tentative <input type="radio" name="event.status" value="CANCELLED"/>cancelled |
|---|
| 2645 | | </xsl:otherwise> |
|---|
| 2646 | | </xsl:choose> |
|---|
| 2647 | | </td> |
|---|
| 2648 | | </tr> |
|---|
| 2649 | | <!-- Transparency --> |
|---|
| 2650 | | <tr> |
|---|
| 2651 | | <td class="fieldname"> |
|---|
| 2652 | | Effects free/busy: |
|---|
| 2653 | | </td> |
|---|
| 2654 | | <td class="fieldval"> |
|---|
| 2655 | | <xsl:choose> |
|---|
| 2656 | | <xsl:when test="form/transparency = 'TRANSPARENT'"> |
|---|
| 2657 | | <input type="radio" name="event.transparency" value="OPAQUE"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/> |
|---|
| 2658 | | <input type="radio" name="event.transparency" value="TRANSPARENT" checked="checked"/>no <span class="note">(transparent: event status does not affect your free/busy)</span> |
|---|
| 2659 | | </xsl:when> |
|---|
| 2660 | | <xsl:otherwise> |
|---|
| 2661 | | <input type="radio" name="event.transparency" value="OPAQUE" checked="checked"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/> |
|---|
| 2662 | | <input type="radio" name="event.transparency" value="TRANSPARENT"/>no <span class="note">(transparent: event status does not affect your free/busy)</span> |
|---|
| 2663 | | </xsl:otherwise> |
|---|
| 2664 | | </xsl:choose> |
|---|
| 2665 | | </td> |
|---|
| 2666 | | </tr> |
|---|
| 2667 | | <!-- Description --> |
|---|
| 2668 | | <tr> |
|---|
| 2669 | | <td class="fieldname">Description:</td> |
|---|
| 2670 | | <td class="fieldval"> |
|---|
| 2671 | | <textarea name="description" cols="60" rows="4"> |
|---|
| 2672 | | <xsl:value-of select="/bedework/formElements/form/desc/textarea"/> |
|---|
| 2673 | | </textarea> |
|---|
| 2674 | | </td> |
|---|
| 2675 | | </tr> |
|---|
| 2676 | | <!-- Recipients and Attendees --> |
|---|
| 2677 | | <tr> |
|---|
| 2678 | | <td class="fieldname"> |
|---|
| 2679 | | Recipients &<br/> Attendees: |
|---|
| 2680 | | </td> |
|---|
| 2681 | | <td class="fieldval posrelative"> |
|---|
| 2682 | | <!--<input type="button" value="Manage recipients and attendees" onclick="changeClass('recipientsAndAttendees','shown')"/>--> |
|---|
| 2683 | | <input type="button" value="Manage recipients and attendees" onclick="launchSizedWindow('{$event-showAttendeesForEvent}','500','400')"/> |
|---|
| 2684 | | </td> |
|---|
| 2685 | | </tr> |
|---|
| 2686 | | <tr> |
|---|
| 2687 | | <td class="fieldname">Location:</td> |
|---|
| 2688 | | <td class="fieldval" align="left"> |
|---|
| 2689 | | <span class="std-text">choose: </span> |
|---|
| 2690 | | <span id="eventFormLocationList"> |
|---|
| 2691 | | <select name="eventLocationUid"> |
|---|
| 2692 | | <option value="-1">select...</option> |
|---|
| 2693 | | <xsl:copy-of select="/bedework/formElements/form/location/locationmenu/select/*"/> |
|---|
| 2694 | | </select> |
|---|
| 2695 | | </span> |
|---|
| 2696 | | <span class="std-text"> or add new: </span> |
|---|
| 2697 | | <input type="text" name="locationAddress.value" value="" /> |
|---|
| 2698 | | </td> |
|---|
| 2699 | | </tr> |
|---|
| 2700 | | <tr> |
|---|
| 2701 | | <td class="fieldname">Event Link:</td> |
|---|
| 2702 | | <td class="fieldval"> |
|---|
| 2703 | | <xsl:variable name="link" select="form/link/input/@value"/> |
|---|
| 2704 | | <input type="text" name="event.link" size="80" value="{$link}"/> |
|---|
| 2705 | | </td> |
|---|
| 2706 | | </tr> |
|---|
| 2707 | | <!-- Category --> |
|---|
| 2708 | | <tr> |
|---|
| 2709 | | <td class="fieldname"> |
|---|
| 2710 | | Categories: |
|---|
| 2711 | | </td> |
|---|
| 2712 | | <td> |
|---|
| 2713 | | <table cellpadding="0" id="allCategoryCheckboxes"> |
|---|
| 2714 | | <tr> |
|---|
| 2715 | | <xsl:variable name="catCount" select="count(/bedework/formElements/form/categories/all/category)"/> |
|---|
| 2716 | | <td> |
|---|
| 2717 | | <xsl:for-each select="/bedework/formElements/form/categories/all/category[position() <= ceiling($catCount div 2)]"> |
|---|
| 2718 | | <input type="checkbox" name="categoryKey"> |
|---|
| 2719 | | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| 2720 | | <xsl:if test="keyword = /bedework/formElements/form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| 2721 | | <xsl:value-of select="keyword"/> |
|---|
| 2722 | | </input><br/> |
|---|
| 2723 | | </xsl:for-each> |
|---|
| 2724 | | </td> |
|---|
| 2725 | | <td> |
|---|
| 2726 | | <xsl:for-each select="/bedework/formElements/form/categories/all/category[position() > ceiling($catCount div 2)]"> |
|---|
| 2727 | | <input type="checkbox" name="categoryKey"> |
|---|
| 2728 | | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| 2729 | | <xsl:if test="keyword = /bedework/formElements/form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| 2730 | | <xsl:value-of select="keyword"/> |
|---|
| 2731 | | </input><br/> |
|---|
| 2732 | | </xsl:for-each> |
|---|
| 2733 | | </td> |
|---|
| 2734 | | </tr> |
|---|
| 2735 | | </table> |
|---|
| 2736 | | </td> |
|---|
| 2737 | | </tr> |
|---|
| 2738 | | <tr> |
|---|
| 2739 | | <td class="fieldname"> </td> |
|---|
| 2740 | | <td class="fieldval"> |
|---|
| 2741 | | <input name="submit" type="submit" value="Submit Event"/>  |
|---|
| 2742 | | <input name="cancelled" type="submit" value="Cancel"/> |
|---|
| 2743 | | <input type="button" value="return to view" onclick="location.replace('{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}')"/> |
|---|
| 2744 | | </td> |
|---|
| 2745 | | </tr> |
|---|
| 2746 | | </table> |
|---|
| | 1765 | <xsl:apply-templates select="." mode="eventForm"/> |
|---|
| | 1868 | </xsl:template> |
|---|
| | 1869 | |
|---|
| | 1870 | <!--==== ADD and EDIT EVENT FORM ====--> |
|---|
| | 1871 | <xsl:template match="formElements" mode="eventForm"> |
|---|
| | 1872 | <xsl:variable name="subscriptionId" select="subscriptionId"/> |
|---|
| | 1873 | <xsl:variable name="calPathEncoded" select="form/calendar/encodedPath"/> |
|---|
| | 1874 | <xsl:variable name="calPath" select="form/calendar/path"/> |
|---|
| | 1875 | <xsl:variable name="guid" select="guid"/> |
|---|
| | 1876 | <xsl:variable name="recurrenceId" select="recurrenceId"/> |
|---|
| | 1877 | <input type="hidden" name="endType" value="date"/> |
|---|
| | 1878 | <table class="common" cellspacing="0"> |
|---|
| | 1879 | <xsl:if test="/bedework/page='editEvent'"> |
|---|
| | 1880 | <tr> |
|---|
| | 1881 | <th colspan="2" class="commonHeader"> |
|---|
| | 1882 | <div id="eventActions"> |
|---|
| | 1883 | <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> |
|---|
| | 1884 | <img src="{$resourcesRoot}/resources/glassFill-icon-viewGray.gif" width="13" height="13" border="0" alt="view"/> |
|---|
| | 1885 | View |
|---|
| | 1886 | </a> |
|---|
| | 1887 | <xsl:if test="currentAccess/current-user-privilege-set/privilege/unbind"> |
|---|
| | 1888 | | |
|---|
| | 1889 | <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPathEncoded}&guid={$guid}&recurrenceId={$recurrenceId}"> |
|---|
| | 1890 | <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> |
|---|
| | 1891 | Delete |
|---|
| | 1892 | </a> |
|---|
| | 1893 | </xsl:if> |
|---|
| | 1894 | </div> |
|---|
| | 1895 | Personal Event |
|---|
| | 1896 | </th> |
|---|
| | 1897 | </tr> |
|---|
| | 1898 | </xsl:if> |
|---|
| | 1899 | <tr> |
|---|
| | 1900 | <td class="fieldname"> |
|---|
| | 1901 | Title: |
|---|
| | 1902 | </td> |
|---|
| | 1903 | <td class="fieldval"> |
|---|
| | 1904 | <xsl:variable name="title" select="form/title/input/@value"/> |
|---|
| | 1905 | <input type="text" name="summary" size="80" value="{$title}"/> |
|---|
| | 1906 | </td> |
|---|
| | 1907 | </tr> |
|---|
| | 1908 | <tr> |
|---|
| | 1909 | <td class="fieldname"> |
|---|
| | 1910 | Type: |
|---|
| | 1911 | </td> |
|---|
| | 1912 | <td class="fieldval"> |
|---|
| | 1913 | <!-- need data for Edit Event! --> |
|---|
| | 1914 | <input type="radio" name="schedule" size="80" value="" checked="checked"/>my event |
|---|
| | 1915 | <input type="radio" name="schedule" size="80" value="request"/>meeting request |
|---|
| | 1916 | <input type="radio" name="schedule" size="80" value="publish"/>published event |
|---|
| | 1917 | </td> |
|---|
| | 1918 | </tr> |
|---|
| | 1919 | <tr> |
|---|
| | 1920 | <td class="fieldname"> |
|---|
| | 1921 | Calendar: |
|---|
| | 1922 | </td> |
|---|
| | 1923 | <td class="fieldval"> |
|---|
| | 1924 | <xsl:variable name="newCalPath" select="form/calendar/path"/> |
|---|
| | 1925 | <input type="hidden" name="newCalPath" value="{$newCalPath}"/> |
|---|
| | 1926 | <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/>/</xsl:variable> |
|---|
| | 1927 | <span id="bwEventCalDisplay"> |
|---|
| | 1928 | <xsl:choose> |
|---|
| | 1929 | <xsl:when test="contains(form/calendar/path,$userPath)"> |
|---|
| | 1930 | <xsl:value-of select="substring-after(form/calendar/path,$userPath)"/> |
|---|
| | 1931 | </xsl:when> |
|---|
| | 1932 | <xsl:otherwise> |
|---|
| | 1933 | <xsl:value-of select="form/calendar/path"/> |
|---|
| | 1934 | </xsl:otherwise> |
|---|
| | 1935 | </xsl:choose> |
|---|
| | 1936 | </span> |
|---|
| | 1937 | <a href="javascript:launchCalSelectWindow('{$event-selectCalForEvent}')" class="small">[change]</a> |
|---|
| | 1938 | </td> |
|---|
| | 1939 | </tr> |
|---|
| | 1940 | <tr> |
|---|
| | 1941 | <td class="fieldname"> |
|---|
| | 1942 | Date & Time: |
|---|
| | 1943 | </td> |
|---|
| | 1944 | <td class="fieldval"> |
|---|
| | 1945 | <!-- Set the timefields class for the first load of the page; |
|---|
| | 1946 | subsequent changes will take place using javascript without a |
|---|
| | 1947 | page reload. --> |
|---|
| | 1948 | <xsl:variable name="timeFieldsClass"> |
|---|
| | 1949 | <xsl:choose> |
|---|
| | 1950 | <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> |
|---|
| | 1951 | <xsl:otherwise>timeFields</xsl:otherwise> |
|---|
| | 1952 | </xsl:choose> |
|---|
| | 1953 | </xsl:variable> |
|---|
| | 1954 | <xsl:choose> |
|---|
| | 1955 | <xsl:when test="form/allDay/input/@checked='checked'"> |
|---|
| | 1956 | <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="on" checked="checked"/> |
|---|
| | 1957 | <input type="hidden" name="eventStartDate.dateOnly" value="on" id="allDayStartDateField"/> |
|---|
| | 1958 | <input type="hidden" name="eventEndDate.dateOnly" value="on" id="allDayEndDateField"/> |
|---|
| | 1959 | </xsl:when> |
|---|
| | 1960 | <xsl:otherwise> |
|---|
| | 1961 | <input type="checkbox" name="allDayFlag" onclick="swapAllDayEvent(this)" value="off"/> |
|---|
| | 1962 | <input type="hidden" name="eventStartDate.dateOnly" value="off" id="allDayStartDateField"/> |
|---|
| | 1963 | <input type="hidden" name="eventEndDate.dateOnly" value="off" id="allDayEndDateField"/> |
|---|
| | 1964 | </xsl:otherwise> |
|---|
| | 1965 | </xsl:choose> |
|---|
| | 1966 | all day event |
|---|
| | 1967 | <xsl:choose> |
|---|
| | 1968 | <xsl:when test="form/floating/input/@checked='checked'"> |
|---|
| | 1969 | <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="on" checked="checked"/> |
|---|
| | 1970 | <input type="hidden" name="eventStartDate.floating" value="on" id="startFloating"/> |
|---|
| | 1971 | <input type="hidden" name="eventEndDate.floating" value="on" id="endFloating"/> |
|---|
| | 1972 | </xsl:when> |
|---|
| | 1973 | <xsl:otherwise> |
|---|
| | 1974 | <input type="checkbox" name="floatingFlag" id="floatingFlag" onclick="swapFloatingTime(this)" value="off"/> |
|---|
| | 1975 | <input type="hidden" name="eventStartDate.floating" value="off" id="startFloating"/> |
|---|
| | 1976 | <input type="hidden" name="eventEndDate.floating" value="off" id="endFloating"/> |
|---|
| | 1977 | </xsl:otherwise> |
|---|
| | 1978 | </xsl:choose> |
|---|
| | 1979 | floating |
|---|
| | 1980 | <xsl:choose> |
|---|
| | 1981 | <xsl:when test="form/storeUTC/input/@checked='checked'"> |
|---|
| | 1982 | <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="on" checked="checked"/> |
|---|
| | 1983 | <input type="hidden" name="eventStartDate.storeUTC" value="on" id="startStoreUTC"/> |
|---|
| | 1984 | <input type="hidden" name="eventEndDate.storeUTC" value="on" id="endStoreUTC"/> |
|---|
| | 1985 | </xsl:when> |
|---|
| | 1986 | <xsl:otherwise> |
|---|
| | 1987 | <input type="checkbox" name="storeUTCFlag" id="storeUTCFlag" onclick="swapStoreUTC(this)" value="off"/> |
|---|
| | 1988 | <input type="hidden" name="eventStartDate.storeUTC" value="off" id="startStoreUTC"/> |
|---|
| | 1989 | <input type="hidden" name="eventEndDate.storeUTC" value="off" id="endStoreUTC"/> |
|---|
| | 1990 | </xsl:otherwise> |
|---|
| | 1991 | </xsl:choose> |
|---|
| | 1992 | store as UTC |
|---|
| | 1993 | <br/> |
|---|
| | 1994 | <div class="dateStartEndBox"> |
|---|
| | 1995 | <strong>Start:</strong> |
|---|
| | 1996 | <div class="dateFields"> |
|---|
| | 1997 | <span class="startDateLabel">Date </span> |
|---|
| | 1998 | <xsl:copy-of select="form/start/month/*"/> |
|---|
| | 1999 | <xsl:copy-of select="form/start/day/*"/> |
|---|
| | 2000 | <xsl:choose> |
|---|
| | 2001 | <xsl:when test="/bedework/creating = 'true'"> |
|---|
| | 2002 | <xsl:copy-of select="form/start/year/*"/> |
|---|
| | 2003 | </xsl:when> |
|---|
| | 2004 | <xsl:otherwise> |
|---|
| | 2005 | <xsl:copy-of select="form/start/yearText/*"/> |
|---|
| | 2006 | </xsl:otherwise> |
|---|
| | 2007 | </xsl:choose> |
|---|
| | 2008 | </div> |
|---|
| | 2009 | <script language="JavaScript" type="text/javascript"> |
|---|
| | 2010 | <xsl:comment> |
|---|
| | 2011 | startDateDynCalWidget = new dynCalendar('startDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'startDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/'); |
|---|
| | 2012 | </xsl:comment> |
|---|
| | 2013 | </script> |
|---|
| | 2014 | <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> |
|---|
| | 2015 | <div class="{$timeFieldsClass}" id="startTimeFields"> |
|---|
| | 2016 | <span id="calWidgetStartTimeHider" class="show"> |
|---|
| | 2017 | <xsl:copy-of select="form/start/hour/*"/> |
|---|
| | 2018 | <xsl:copy-of select="form/start/minute/*"/> |
|---|
| | 2019 | <xsl:if test="form/start/ampm"> |
|---|
| | 2020 | <xsl:copy-of select="form/start/ampm/*"/> |
|---|
| | 2021 | </xsl:if> |
|---|
| | 2022 | <xsl:text> </xsl:text> |
|---|
| | 2023 | <a href="javascript:bwClockLaunch('eventStartDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> |
|---|
| | 2024 | |
|---|
| | 2025 | <select name="eventStartDate.tzid" id="startTzid" class="timezones"> |
|---|
| | 2026 | <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">true</xsl:attribute></xsl:if> |
|---|
| | 2027 | <option value="-1">select timezone...</option> |
|---|
| | 2028 | <xsl:for-each select="/bedework/timezones/timezone"> |
|---|
| | 2029 | <option> |
|---|
| | 2030 | <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> |
|---|
| | 2031 | <xsl:if test="form/start/tzid = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> |
|---|
| | 2032 | <xsl:value-of select="name"/> |
|---|
| | 2033 | </option> |
|---|
| | 2034 | </xsl:for-each> |
|---|
| | 2035 | </select> |
|---|
| | 2036 | </span> |
|---|
| | 2037 | </div> |
|---|
| | 2038 | </div> |
|---|
| | 2039 | <div class="dateStartEndBox"> |
|---|
| | 2040 | <strong>End:</strong> |
|---|
| | 2041 | <xsl:choose> |
|---|
| | 2042 | <xsl:when test="form/end/type='E'"> |
|---|
| | 2043 | <input type="radio" name="eventEndType" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> |
|---|
| | 2044 | </xsl:when> |
|---|
| | 2045 | <xsl:otherwise> |
|---|
| | 2046 | <input type="radio" name="eventEndType" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> |
|---|
| | 2047 | </xsl:otherwise> |
|---|
| | 2048 | </xsl:choose> |
|---|
| | 2049 | Date |
|---|
| | 2050 | <xsl:variable name="endDateTimeClass"> |
|---|
| | 2051 | <xsl:choose> |
|---|
| | 2052 | <xsl:when test="form/end/type='E'">shown</xsl:when> |
|---|
| | 2053 | <xsl:otherwise>invisible</xsl:otherwise> |
|---|
| | 2054 | </xsl:choose> |
|---|
| | 2055 | </xsl:variable> |
|---|
| | 2056 | <div class="{$endDateTimeClass}" id="endDateTime"> |
|---|
| | 2057 | <div class="dateFields"> |
|---|
| | 2058 | <xsl:copy-of select="form/end/dateTime/month/*"/> |
|---|
| | 2059 | <xsl:copy-of select="form/end/dateTime/day/*"/> |
|---|
| | 2060 | <xsl:choose> |
|---|
| | 2061 | <xsl:when test="/bedework/creating = 'true'"> |
|---|
| | 2062 | <xsl:copy-of select="form/end/dateTime/year/*"/> |
|---|
| | 2063 | </xsl:when> |
|---|
| | 2064 | <xsl:otherwise> |
|---|
| | 2065 | <xsl:copy-of select="form/end/dateTime/yearText/*"/> |
|---|
| | 2066 | </xsl:otherwise> |
|---|
| | 2067 | </xsl:choose> |
|---|
| | 2068 | </div> |
|---|
| | 2069 | <script language="JavaScript" type="text/javascript"> |
|---|
| | 2070 | <xsl:comment> |
|---|
| | 2071 | endDateDynCalWidget = new dynCalendar('endDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'endDateCalWidgetCallback', '<xsl:value-of select="$resourcesRoot"/>/resources/'); |
|---|
| | 2072 | </xsl:comment> |
|---|
| | 2073 | </script> |
|---|
| | 2074 | <!--<img src="{$resourcesRoot}/resources/calIcon.gif" width="16" height="15" border="0"/>--> |
|---|
| | 2075 | <div class="{$timeFieldsClass}" id="endTimeFields"> |
|---|
| | 2076 | <span id="calWidgetEndTimeHider" class="show"> |
|---|
| | 2077 | <xsl:copy-of select="form/end/dateTime/hour/*"/> |
|---|
| | 2078 | <xsl:copy-of select="form/end/dateTime/minute/*"/> |
|---|
| | 2079 | <xsl:if test="form/end/dateTime/ampm"> |
|---|
| | 2080 | <xsl:copy-of select="form/end/dateTime/ampm/*"/> |
|---|
| | 2081 | </xsl:if> |
|---|
| | 2082 | <xsl:text> </xsl:text> |
|---|
| | 2083 | <a href="javascript:bwClockLaunch('eventEndDate');"><img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0"/></a> |
|---|
| | 2084 | |
|---|
| | 2085 | <select name="eventEndDate.tzid" id="endTzid" class="timezones"> |
|---|
| | 2086 | <xsl:if test="form/floating/input/@checked='checked'"><xsl:attribute name="disabled">true</xsl:attribute></xsl:if> |
|---|
| | 2087 | <option value="-1">select timezone...</option> |
|---|
| | 2088 | <xsl:for-each select="/bedework/timezones/timezone"> |
|---|
| | 2089 | <option> |
|---|
| | 2090 | <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> |
|---|
| | 2091 | <xsl:if test="form/end/dateTime/tzid = id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> |
|---|
| | 2092 | <xsl:value-of select="name"/> |
|---|
| | 2093 | </option> |
|---|
| | 2094 | </xsl:for-each> |
|---|
| | 2095 | </select> |
|---|
| | 2096 | </span> |
|---|
| | 2097 | </div> |
|---|
| | 2098 | </div><br/> |
|---|
| | 2099 | <div id="clock" class="invisible"> |
|---|
| | 2100 | <xsl:call-template name="clock"/> |
|---|
| | 2101 | </div> |
|---|
| | 2102 | <div class="dateFields"> |
|---|
| | 2103 | <xsl:choose> |
|---|
| | 2104 | <xsl:when test="form/end/type='D'"> |
|---|
| | 2105 | <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> |
|---|
| | 2106 | </xsl:when> |
|---|
| | 2107 | <xsl:otherwise> |
|---|
| | 2108 | <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> |
|---|
| | 2109 | </xsl:otherwise> |
|---|
| | 2110 | </xsl:choose> |
|---|
| | 2111 | Duration |
|---|
| | 2112 | <xsl:variable name="endDurationClass"> |
|---|
| | 2113 | <xsl:choose> |
|---|
| | 2114 | <xsl:when test="form/end/type='D'">shown</xsl:when> |
|---|
| | 2115 | <xsl:otherwise>invisible</xsl:otherwise> |
|---|
| | 2116 | </xsl:choose> |
|---|
| | 2117 | </xsl:variable> |
|---|
| | 2118 | <xsl:variable name="durationHrMinClass"> |
|---|
| | 2119 | <xsl:choose> |
|---|
| | 2120 | <xsl:when test="form/allDay/input/@checked='checked'">invisible</xsl:when> |
|---|
| | 2121 | <xsl:otherwise>shown</xsl:otherwise> |
|---|
| | 2122 | </xsl:choose> |
|---|
| | 2123 | </xsl:variable> |
|---|
| | 2124 | <div class="{$endDurationClass}" id="endDuration"> |
|---|
| | 2125 | <xsl:choose> |
|---|
| | 2126 | <xsl:when test="form/end/duration/weeks/input/@value = '0'"> |
|---|
| | 2127 | <!-- we are using day, hour, minute format --> |
|---|
| | 2128 | <!-- must send either no week value or week value of 0 (zero) --> |
|---|
| | 2129 | <div class="durationBox"> |
|---|
| | 2130 | <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/> |
|---|
| | 2131 | <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> |
|---|
| | 2132 | <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays"/>days |
|---|
| | 2133 | <span id="durationHrMin" class="{$durationHrMinClass}"> |
|---|
| | 2134 | <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> |
|---|
| | 2135 | <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours"/>hours |
|---|
| | 2136 | <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> |
|---|
| | 2137 | <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes"/>minutes |
|---|
| | 2138 | </span> |
|---|
| | 2139 | </div> |
|---|
| | 2140 | <span class="durationSpacerText">or</span> |
|---|
| | 2141 | <div class="durationBox"> |
|---|
| | 2142 | <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')"/> |
|---|
| | 2143 | <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> |
|---|
| | 2144 | <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks" disabled="true"/>weeks |
|---|
| | 2145 | </div> |
|---|
| | 2146 | </xsl:when> |
|---|
| | 2147 | <xsl:otherwise> |
|---|
| | 2148 | <!-- we are using week format --> |
|---|
| | 2149 | <div class="durationBox"> |
|---|
| | 2150 | <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')"/> |
|---|
| | 2151 | <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> |
|---|
| | 2152 | <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays" disabled="true"/>days |
|---|
| | 2153 | <span id="durationHrMin" class="{$durationHrMinClass}"> |
|---|
| | 2154 | <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> |
|---|
| | 2155 | <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours" disabled="true"/>hours |
|---|
| | 2156 | <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> |
|---|
| | 2157 | <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes" disabled="true"/>minutes |
|---|
| | 2158 | </span> |
|---|
| | 2159 | </div> |
|---|
| | 2160 | <span class="durationSpacerText">or</span> |
|---|
| | 2161 | <div class="durationBox"> |
|---|
| | 2162 | <input type="radio" name="eventDuration.type" value="weeks" onclick="swapDurationType('week')" checked="checked"/> |
|---|
| | 2163 | <xsl:variable name="weeksStr" select="form/end/duration/weeks/input/@value"/> |
|---|
| | 2164 | <input type="text" name="eventDuration.weeksStr" size="2" value="{$weeksStr}" id="durationWeeks"/>weeks |
|---|
| | 2165 | </div> |
|---|
| | 2166 | </xsl:otherwise> |
|---|
| | 2167 | </xsl:choose> |
|---|
| | 2168 | </div> |
|---|
| | 2169 | </div><br/> |
|---|
| | 2170 | <div class="dateFields" id="noDuration"> |
|---|
| | 2171 | <xsl:choose> |
|---|
| | 2172 | <xsl:when test="form/end/type='N'"> |
|---|
| | 2173 | <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> |
|---|
| | 2174 | </xsl:when> |
|---|
| | 2175 | <xsl:otherwise> |
|---|
| | 2176 | <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> |
|---|
| | 2177 | </xsl:otherwise> |
|---|
| | 2178 | </xsl:choose> |
|---|
| | 2179 | This event has no duration / end date |
|---|
| | 2180 | </div> |
|---|
| | 2181 | </div> |
|---|
| | 2182 | </td> |
|---|
| | 2183 | </tr> |
|---|
| | 2184 | <!-- Status --> |
|---|
| | 2185 | <tr> |
|---|
| | 2186 | <td class="fieldname"> |
|---|
| | 2187 | Status: |
|---|
| | 2188 | </td> |
|---|
| | 2189 | <td class="fieldval"> |
|---|
| | 2190 | <xsl:choose> |
|---|
| | 2191 | <xsl:when test="/bedework/page='addEvent'"> |
|---|
| | 2192 | <input type="radio" name="newEvent.status" value="CONFIRMED" checked="checked"/>confirmed <input type="radio" name="newEvent.status" value="TENTATIVE"/>tentative <input type="radio" name="newEvent.status" value="CANCELLED"/>cancelled |
|---|
| | 2193 | </xsl:when> |
|---|
| | 2194 | <xsl:otherwise> |
|---|
| | 2195 | <input type="radio" name="event.status" value="CONFIRMED"/> |
|---|
| | 2196 | <xsl:if test="form/status = 'CONFIRMED'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| | 2197 | confirmed |
|---|
| | 2198 | <input type="radio" name="event.status" value="TENTATIVE"/> |
|---|
| | 2199 | <xsl:if test="form/status = 'TENTATIVE'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| | 2200 | tentative |
|---|
| | 2201 | <input type="radio" name="event.status" value="CANCELLED"/> |
|---|
| | 2202 | <xsl:if test="form/status = 'CANCELLED'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| | 2203 | cancelled |
|---|
| | 2204 | </xsl:otherwise> |
|---|
| | 2205 | </xsl:choose> |
|---|
| | 2206 | </td> |
|---|
| | 2207 | </tr> |
|---|
| | 2208 | <!-- Transparency --> |
|---|
| | 2209 | <tr> |
|---|
| | 2210 | <td class="fieldname"> |
|---|
| | 2211 | Effects free/busy: |
|---|
| | 2212 | </td> |
|---|
| | 2213 | <td class="fieldval"> |
|---|
| | 2214 | <xsl:choose> |
|---|
| | 2215 | <xsl:when test="/bedework/page='addEvent'"> |
|---|
| | 2216 | <input type="radio" name="newEvent.transparency" value="OPAQUE" checked="checked"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/> |
|---|
| | 2217 | <input type="radio" name="newEvent.transparency" value="TRANSPARENT"/>no <span class="note">(transparent: event status does not affect your free/busy)</span> |
|---|
| | 2218 | </xsl:when> |
|---|
| | 2219 | <xsl:otherwise> |
|---|
| | 2220 | <xsl:choose> |
|---|
| | 2221 | <xsl:when test="form/transparency = 'TRANSPARENT'"> |
|---|
| | 2222 | <input type="radio" name="event.transparency" value="OPAQUE"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/> |
|---|
| | 2223 | <input type="radio" name="event.transparency" value="TRANSPARENT" checked="checked"/>no <span class="note">(transparent: event status does not affect your free/busy)</span> |
|---|
| | 2224 | </xsl:when> |
|---|
| | 2225 | <xsl:otherwise> |
|---|
| | 2226 | <input type="radio" name="event.transparency" value="OPAQUE" checked="checked"/>yes <span class="note">(opaque: event status affects your free/busy)</span><br/> |
|---|
| | 2227 | <input type="radio" name="event.transparency" value="TRANSPARENT"/>no <span class="note">(transparent: event status does not affect your free/busy)</span> |
|---|
| | 2228 | </xsl:otherwise> |
|---|
| | 2229 | </xsl:choose> |
|---|
| | 2230 | </xsl:otherwise> |
|---|
| | 2231 | </xsl:choose> |
|---|
| | 2232 | </td> |
|---|
| | 2233 | </tr> |
|---|
| | 2234 | <!-- Description --> |
|---|
| | 2235 | <tr> |
|---|
| | 2236 | <td class="fieldname">Description:</td> |
|---|
| | 2237 | <td class="fieldval"> |
|---|
| | 2238 | <textarea name="description" cols="60" rows="4"> |
|---|
| | 2239 | <xsl:value-of select="form/desc/textarea"/> |
|---|
| | 2240 | </textarea> |
|---|
| | 2241 | </td> |
|---|
| | 2242 | </tr> |
|---|
| | 2243 | <!-- Recipients and Attendees --> |
|---|
| | 2244 | <tr> |
|---|
| | 2245 | <td class="fieldname"> |
|---|
| | 2246 | Recipients &<br/> Attendees: |
|---|
| | 2247 | </td> |
|---|
| | 2248 | <td class="fieldval posrelative"> |
|---|
| | 2249 | <!--<input type="button" value="Manage recipients and attendees" onclick="changeClass('recipientsAndAttendees','shown')"/>--> |
|---|
| | 2250 | <input type="button" value="Manage recipients and attendees" onclick="launchSizedWindow('{$event-showAttendeesForEvent}','500','400')"/> |
|---|
| | 2251 | </td> |
|---|
| | 2252 | </tr> |
|---|
| | 2253 | <tr> |
|---|
| | 2254 | <td class="fieldname">Location:</td> |
|---|
| | 2255 | <td class="fieldval" align="left"> |
|---|
| | 2256 | <span class="std-text">choose: </span> |
|---|
| | 2257 | <span id="eventFormLocationList"> |
|---|
| | 2258 | <xsl:choose> |
|---|
| | 2259 | <xsl:when test="/bedework/page='addEvent'"> |
|---|
| | 2260 | <select name="locationUid"> |
|---|
| | 2261 | <option value="-1">select...</option> |
|---|
| | 2262 | <xsl:copy-of select="form/location/locationmenu/select/*"/> |
|---|
| | 2263 | </select> |
|---|
| | 2264 | </xsl:when> |
|---|
| | 2265 | <xsl:otherwise> |
|---|
| | 2266 | <select name="eventLocationUid"> |
|---|
| | 2267 | <option value="-1">select...</option> |
|---|
| | 2268 | <xsl:copy-of select="form/location/locationmenu/select/*"/> |
|---|
| | 2269 | </select> |
|---|
| | 2270 | </xsl:otherwise> |
|---|
| | 2271 | </xsl:choose> |
|---|
| | 2272 | </span> |
|---|
| | 2273 | <span class="std-text"> or add new: </span> |
|---|
| | 2274 | <input type="text" name="locationAddress.value" value="" /> |
|---|
| | 2275 | </td> |
|---|
| | 2276 | </tr> |
|---|
| | 2277 | <tr> |
|---|
| | 2278 | <td class="fieldname">Event Link:</td> |
|---|
| | 2279 | <td class="fieldval"> |
|---|
| | 2280 | <xsl:variable name="link" select="form/link/input/@value"/> |
|---|
| | 2281 | <xsl:choose> |
|---|
| | 2282 | <xsl:when test="/bedework/page='addEvent'"> |
|---|
| | 2283 | <input type="text" name="newEvent.link" size="80" value="{$link}"/> |
|---|
| | 2284 | </xsl:when> |
|---|
| | 2285 | <xsl:otherwise> |
|---|
| | 2286 | <input type="text" name="event.link" size="80" value="{$link}"/> |
|---|
| | 2287 | </xsl:otherwise> |
|---|
| | 2288 | </xsl:choose> |
|---|
| | 2289 | </td> |
|---|
| | 2290 | </tr> |
|---|
| | 2291 | <!-- Category --> |
|---|
| | 2292 | <tr> |
|---|
| | 2293 | <td class="fieldname"> |
|---|
| | 2294 | Categories: |
|---|
| | 2295 | </td> |
|---|
| | 2296 | <td class="fieldval" align="left"> |
|---|
| | 2297 | <table cellpadding="0" id="allCategoryCheckboxes"> |
|---|
| | 2298 | <tr> |
|---|
| | 2299 | <xsl:variable name="catCount" select="count(form/categories/all/category)"/> |
|---|
| | 2300 | <td> |
|---|
| | 2301 | <xsl:for-each select="form/categories/all/category[position() <= ceiling($catCount div 2)]"> |
|---|
| | 2302 | <input type="checkbox" name="categoryKey"> |
|---|
| | 2303 | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| | 2304 | <xsl:if test="keyword = form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| | 2305 | <xsl:value-of select="keyword"/> |
|---|
| | 2306 | </input><br/> |
|---|
| | 2307 | </xsl:for-each> |
|---|
| | 2308 | </td> |
|---|
| | 2309 | <td> |
|---|
| | 2310 | <xsl:for-each select="form/categories/all/category[position() > ceiling($catCount div 2)]"> |
|---|
| | 2311 | <input type="checkbox" name="categoryKey"> |
|---|
| | 2312 | <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> |
|---|
| | 2313 | <xsl:if test="keyword = form/categories/current//category/keyword"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> |
|---|
| | 2314 | <xsl:value-of select="keyword"/> |
|---|
| | 2315 | </input><br/> |
|---|
| | 2316 | </xsl:for-each> |
|---|
| | 2317 | </td> |
|---|
| | 2318 | </tr> |
|---|
| | 2319 | </table> |
|---|
| | 2320 | </td> |
|---|
| | 2321 | </tr> |
|---|
| | 2322 | <tr> |
|---|
| | 2323 | <td class="fieldname"> </td> |
|---|
| | 2324 | <td class="fieldval"> |
|---|
| | 2325 | <input name="submit" type="submit" value="Submit Event"/>  |
|---|
| | 2326 | <input name="cancelled" type="submit" value="Cancel"/> |
|---|
| | 2327 | <xsl:if test="/bedework/page='editEvent'"> |
|---|
| | 2328 | <input type="button" value="return to view" onclick="location.replace('{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}')"/> |
|---|
| | 2329 | </xsl:if> |
|---|
| | 2330 | </td> |
|---|
| | 2331 | </tr> |
|---|
| | 2332 | </table> |
|---|
| | 2333 | </xsl:template> |
|---|
| | 2334 | |
|---|
| | 2335 | <xsl:template name="clock"> |
|---|
| | 2336 | <div id="bwClock"> |
|---|
| | 2337 | <!-- Bedework 24-Hour Clock time selection widget |
|---|
| | 2338 | used with resources/bwClock.js and resources/bwClock.css --> |
|---|
| | 2339 | <div id="bwClockClock"> |
|---|
| | 2340 | <img id="clockMap" src="{$resourcesRoot}/resources/clockMap.gif" width="368" height="368" border="0" alt="" usemap="#bwClockMap" /> |
|---|
| | 2341 | </div> |
|---|
| | 2342 | <div id="bwClockCover"> |
|---|
| | 2343 | <!-- this is a special effect div used simply to cover the pixelated edge |
|---|
| | 2344 | where the clock meets the clock box title --> |
|---|
| | 2345 | </div> |
|---|
| | 2346 | <div id="bwClockBox"> |
|---|
| | 2347 | <h2> |
|---|
| | 2348 | Bedework 24-Hour Clock |
|---|
| | 2349 | </h2> |
|---|
| | 2350 | <div id="bwClockDateTypeIndicator"> |
|---|
| | 2351 | type |
|---|
| | 2352 | </div> |
|---|
| | 2353 | <div id="bwClockTime"> |
|---|
| | 2354 | select time |
|---|
| | 2355 | </div> |
|---|
| | 2356 | <div id="bwClockCloseText"> |
|---|
| | 2357 | close |
|---|
| | 2358 | </div> |
|---|
| | 2359 | <div id="bwClockCloseButton"> |
|---|
| | 2360 | <a href="javascript:bwClockClose();">X</a> |
|---|
| | 2361 | </div> |
|---|
| | 2362 | </div> |
|---|
| | 2363 | <map name="bwClockMap" id="bwClockMap"> |
|---|
| | 2364 | <area shape="rect" alt="close clock" title="close clock" coords="160,167, 200,200" href="javascript:bwClockClose()"/> |
|---|
| | 2365 | <area shape="poly" alt="minute 00:55" title="minute 00:55" coords="156,164, 169,155, 156,107, 123,128" href="javascript:bwClockUpdateDateTimeForm('minute','55')" /> |
|---|
| | 2366 | <area shape="poly" alt="minute 00:50" title="minute 00:50" coords="150,175, 156,164, 123,128, 103,161" href="javascript:bwClockUpdateDateTimeForm('minute','50')" /> |
|---|
| | 2367 | <area shape="poly" alt="minute 00:45" title="minute 00:45" coords="150,191, 150,175, 103,161, 103,206" href="javascript:bwClockUpdateDateTimeForm('minute','45')" /> |
|---|
| | 2368 | <area shape="poly" alt="minute 00:40" title="minute 00:40" coords="158,208, 150,191, 105,206, 123,237" href="javascript:bwClockUpdateDateTimeForm('minute','40')" /> |
|---|
| | 2369 | <area shape="poly" alt="minute 00:35" title="minute 00:35" coords="171,218, 158,208, 123,238, 158,261" href="javascript:bwClockUpdateDateTimeForm('minute','35')" /> |
|---|
| | 2370 | <area shape="poly" alt="minute 00:30" title="minute 00:30" coords="193,218, 172,218, 158,263, 209,263" href="javascript:bwClockUpdateDateTimeForm('minute','30')" /> |
|---|
| | 2371 | <area shape="poly" alt="minute 00:25" title="minute 00:25" coords="209,210, 193,218, 209,261, 241,240" href="javascript:bwClockUpdateDateTimeForm('minute','25')" /> |
|---|
| | 2372 | <area shape="poly" alt="minute 00:20" title="minute 00:20" coords="216,196, 209,210, 241,240, 261,206" href="javascript:bwClockUpdateDateTimeForm('minute','20')" /> |
|---|
| | 2373 | <area shape="poly" alt="minute 00:15" title="minute 00:15" coords="216,178, 216,196, 261,206, 261,159" href="javascript:bwClockUpdateDateTimeForm('minute','15')" /> |
|---|
| | 2374 | <area shape="poly" alt="minute 00:10" title="minute 00:10" coords="209,164, 216,178, 261,159, 240,126" href="javascript:bwClockUpdateDateTimeForm('minute','10')" /> |
|---|
| | 2375 | <area shape="poly" alt="minute 00:05" title="minute 00:05" coords="196,155, 209,164, 238,126, 206,107" href="javascript:bwClockUpdateDateTimeForm('minute','05')" /> |
|---|
| | 2376 | <area shape="poly" alt="minute 00:00" title="minute 00:00" coords="169,155, 196,155, 206,105, 156,105" href="javascript:bwClockUpdateDateTimeForm('minute','00')" /> |
|---|
| | 2377 | <area shape="poly" alt="11 PM, 2300 hour" title="11 PM, 2300 hour" coords="150,102, 172,96, 158,1, 114,14" href="javascript:bwClockUpdateDateTimeForm('hour','23')" /> |
|---|
| | 2378 | <area shape="poly" alt="10 PM, 2200 hour" title="10 PM, 2200 hour" coords="131,114, 150,102, 114,14, 74,36" href="javascript:bwClockUpdateDateTimeForm('hour','22')" /> |
|---|
| | 2379 | <area shape="poly" alt="9 PM, 2100 hour" title="9 PM, 2100 hour" coords="111,132, 131,114, 74,36, 40,69" href="javascript:bwClockUpdateDateTimeForm('hour','21')" /> |
|---|
| | 2380 | <area shape="poly" alt="8 PM, 2000 hour" title="8 PM, 2000 hour" coords="101,149, 111,132, 40,69, 15,113" href="javascript:bwClockUpdateDateTimeForm('hour','20')" /> |
|---|
| | 2381 | <area shape="poly" alt="7 PM, 1900 hour" title="7 PM, 1900 hour" coords="95,170, 101,149, 15,113, 1,159" href="javascript:bwClockUpdateDateTimeForm('hour','19')" /> |
|---|
| | 2382 | <area shape="poly" alt="6 PM, 1800 hour" title="6 PM, 1800 hour" coords="95,196, 95,170, 0,159, 0,204" href="javascript:bwClockUpdateDateTimeForm('hour','18')" /> |
|---|
| | 2383 | <area shape="poly" alt="5 PM, 1700 hour" title="5 PM, 1700 hour" coords="103,225, 95,196, 1,205, 16,256" href="javascript:bwClockUpdateDateTimeForm('hour','17')" /> |
|---|
| | 2384 | <area shape="poly" alt="4 PM, 1600 hour" title="4 PM, 1600 hour" coords="116,245, 103,225, 16,256, 41,298" href="javascript:bwClockUpdateDateTimeForm('hour','16')" /> |
|---|
| | 2385 | <area shape="poly" alt="3 PM, 1500 hour" title="3 PM, 1500 hour" coords="134,259, 117,245, 41,298, 76,332" href="javascript:bwClockUpdateDateTimeForm('hour','15')" /> |
|---|
| | 2386 | <area shape="poly" alt="2 PM, 1400 hour" title="2 PM, 1400 hour" coords="150,268, 134,259, 76,333, 121,355" href="javascript:bwClockUpdateDateTimeForm('hour','14')" /> |
|---|
| | 2387 | <area shape="poly" alt="1 PM, 1300 hour" title="1 PM, 1300 hour" coords="169,273, 150,268, 120,356, 165,365" href="javascript:bwClockUpdateDateTimeForm('hour','13')" /> |
|---|
| | 2388 | <area shape="poly" alt="Noon, 1200 hour" title="Noon, 1200 hour" coords="193,273, 169,273, 165,365, 210,364" href="javascript:bwClockUpdateDateTimeForm('hour','12')" /> |
|---|
| | 2389 | <area shape="poly" alt="11 AM, 1100 hour" title="11 AM, 1100 hour" coords="214,270, 193,273, 210,363, 252,352" href="javascript:bwClockUpdateDateTimeForm('hour','11')" /> |
|---|
| | 2390 | <area shape="poly" alt="10 AM, 1000 hour" title="10 AM, 1000 hour" coords="232,259, 214,270, 252,352, 291,330" href="javascript:bwClockUpdateDateTimeForm('hour','10')" /> |
|---|
| | 2391 | <area shape="poly" alt="9 AM, 0900 hour" title="9 AM, 0900 hour" coords="251,240, 232,258, 291,330, 323,301" href="javascript:bwClockUpdateDateTimeForm('hour','09')" /> |
|---|
| | 2392 | <area shape="poly" alt="8 AM, 0800 hour" title="8 AM, 0800 hour" coords="263,219, 251,239, 323,301, 349,261" href="javascript:bwClockUpdateDateTimeForm('hour','08')" /> |
|---|
| | 2393 | <area shape="poly" alt="7 AM, 0700 hour" title="7 AM, 0700 hour" coords="269,194, 263,219, 349,261, 363,212" href="javascript:bwClockUpdateDateTimeForm('hour','07')" /> |
|---|
| | 2394 | <area shape="poly" alt="6 AM, 0600 hour" title="6 AM, 0600 hour" coords="269,172, 269,193, 363,212, 363,155" href="javascript:bwClockUpdateDateTimeForm('hour','06')" /> |
|---|
| | 2395 | <area shape="poly" alt="5 AM, 0500 hour" title="5 AM, 0500 hour" coords="263,150, 269,172, 363,155, 351,109" href="javascript:bwClockUpdateDateTimeForm('hour','05')" /> |
|---|
| | 2396 | <area shape="poly" alt="4 AM, 0400 hour" title="4 AM, 0400 hour" coords="251,130, 263,150, 351,109, 325,68" href="javascript:bwClockUpdateDateTimeForm('hour','04')" /> |
|---|
| | 2397 | <area shape="poly" alt="3 AM, 0300 hour" title="3 AM, 0300 hour" coords="234,112, 251,130, 325,67, 295,37" href="javascript:bwClockUpdateDateTimeForm('hour','03')" /> |
|---|
| | 2398 | <area shape="poly" alt="2 AM, 0200 hour" title="2 AM, 0200 hour" coords="221,102, 234,112, 295,37, 247,11" href="javascript:bwClockUpdateDateTimeForm('hour','02')" /> |
|---|
| | 2399 | <area shape="poly" alt="1 AM, 0100 hour" title="1 AM, 0100 hour" coords="196,96, 221,102, 247,10, 209,-1, 201,61, 206,64, 205,74, 199,75" href="javascript:bwClockUpdateDateTimeForm('hour','01')" /> |
|---|
| | 2400 | <area shape="poly" alt="Midnight, 0000 hour" title="Midnight, 0000 hour" coords="172,96, 169,74, 161,73, 161,65, 168,63, 158,-1, 209,-1, 201,61, 200,62, 206,64, 205,74, 198,75, 196,96, 183,95" href="javascript:bwClockUpdateDateTimeForm('hour','00')" /> |
|---|
| | 2401 | </map> |
|---|
| | 2402 | </div> |
|---|
| | 2403 | </xsl:template> |
|---|
| | 2404 | |
|---|
| | 2405 | <xsl:template name="attendees"> |
|---|
| | 2406 | <form name="raForm" id="recipientsAndAttendees" action="{$event-attendeesForEvent}" method="post"> |
|---|
| | 2407 | <div id="recipientsAndAttendeesBox"> |
|---|
| | 2408 | <h4 id="dialogTitle"> |
|---|
| | 2409 | Recipients and Attendees |
|---|
| | 2410 | </h4> |
|---|
| | 2411 | <xsl:call-template name="messagesAndErrors"/> |
|---|
| | 2412 | <div id="raContent"> |
|---|
| | 2413 | <table cellspacing="0"> |
|---|
| | 2414 | <tr> |
|---|
| | 2415 | <td> |
|---|
| | 2416 | <input name="uri" width="40"/> |
|---|
| | 2417 | <input type="submit" value="add" /> |
|---|
| | 2418 | <br/> |
|---|
| | 2419 | <input type="checkbox" name="recipient" value="true" checked="checked"/> recipient |
|---|
| | 2420 | <input type="checkbox" name="attendee" value="true" checked="checked"/> attendee |
|---|
| | 2421 | </td> |
|---|
| | 2422 | <td> |
|---|
| | 2423 | Role: |
|---|
| | 2424 | <select name="role"> |
|---|
| | 2425 | <option value="REQ-PARTICIPANT">required participant</option> |
|---|
| | 2426 | <option value="OPT-PARTICIPANT">optional participant</option> |
|---|
| | 2427 | <option value="CHAIR">chair</option> |
|---|
| | 2428 | <option value="NON-PARTICIPANT">non-participant</option> |
|---|
| | 2429 | </select><br/> |
|---|
| | 2430 | Status: |
|---|
| | 2431 | <select name="partstat"> |
|---|
| | 2432 | <option value="NEEDS-ACTION">needs action</option> |
|---|
| | 2433 | <option value="ACCEPTED">accepted</option> |
|---|
| | 2434 | <option value="DECLINED">declined</option> |
|---|
| | 2435 | <option value="TENTATIVE">tentative</option> |
|---|
| | 2436 | <option value="DELEGATED">delegated</option> |
|---|
| | 2437 | </select> |
|---|
| | 2438 | </td> |
|---|
| | 2439 | </tr> |
|---|
| | 2440 | </table> |
|---|
| | 2441 | <xsl:if test="/bedework/attendees/attendee"> |
|---|
| | 2442 | <table id="attendees" class="widget" cellspacing="0"> |
|---|
| | 2443 | <tr> |
|---|
| | 2444 | <th colspan="4">Attendees</th> |
|---|
| | 2445 | </tr> |
|---|
| | 2446 | <!--<tr> |
|---|
| | 2447 | <td>attendee</td> |
|---|
| | 2448 | <td>role</td> |
|---|
| | 2449 | <td>status</td> |
|---|
| | 2450 | </tr>--> |
|---|
| | 2451 | <xsl:for-each select="/bedework/attendees/attendee"> |
|---|
| | 2452 | <xsl:sort select="cn" order="ascending" case-order="upper-first"/> |
|---|
| | 2453 | <xsl:sort select="attendeeUri" order="ascending" case-order="upper-first"/> |
|---|
| | 2454 | <xsl:variable name="attendeeUri" select="attendeeUri"/> |
|---|
| | 2455 | <tr> |
|---|
| | 2456 | <td class="trash"> |
|---|
| | 2457 | <a href="{$event-attendeesForEvent}&uri={$attendeeUri}&attendee=true&delete=true" title="remove"> |
|---|
| | 2458 | <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> |
|---|
| | 2459 | </a> |
|---|
| | 2460 | </td> |
|---|
| | 2461 | <td> |
|---|
| | 2462 | <a href="{$attendeeUri}"> |
|---|
| | 2463 | <xsl:choose> |
|---|
| | 2464 | <xsl:when test="cn != ''"> |
|---|
| | 2465 | <xsl:value-of select="cn"/> |
|---|
| | 2466 | </xsl:when> |
|---|
| | 2467 | <xsl:otherwise> |
|---|
| | 2468 | <xsl:value-of select="attendeeUri"/> |
|---|
| | 2469 | </xsl:otherwise> |
|---|
| | 2470 | </xsl:choose> |
|---|
| | 2471 | </a> |
|---|
| | 2472 | </td> |
|---|
| | 2473 | <td class="role"> |
|---|
| | 2474 | <xsl:value-of select="role"/> |
|---|
| | 2475 | </td> |
|---|
| | 2476 | <td class="status"> |
|---|
| | 2477 | <xsl:value-of select="partstat"/> |
|---|
| | 2478 | </td> |
|---|
| | 2479 | </tr> |
|---|
| | 2480 | </xsl:for-each> |
|---|
| | 2481 | </table> |
|---|
| | 2482 | </xsl:if> |
|---|
| | 2483 | |
|---|
| | 2484 | <xsl:if test="/bedework/recipients/recipient"> |
|---|
| | 2485 | <table id="attendees" class="widget" cellspacing="0"> |
|---|
| | 2486 | <tr> |
|---|
| | 2487 | <th colspan="2">Recipients</th> |
|---|
| | 2488 | </tr> |
|---|
| | 2489 | <xsl:for-each select="/bedework/recipients/recipient"> |
|---|
| | 2490 | <xsl:variable name="recipientUri" select="."/> |
|---|
| | 2491 | <tr> |
|---|
| | 2492 | <td class="trash"> |
|---|
| | 2493 | <a href="{$event-attendeesForEvent}&uri={$recipientUri}&recipient=true&delete=true" title="remove"> |
|---|
| | 2494 | <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="remove"/> |
|---|
| | 2495 | </a> |
|---|
| | 2496 | </td> |
|---|
| | 2497 | <td> |
|---|
| | 2498 | <a href="{$recipientUri}"> |
|---|
| | 2499 | <xsl:value-of select="."/> |
|---|
| | 2500 | </a> |
|---|
| | 2501 | </td> |
|---|
| | 2502 | </tr> |
|---|
| | 2503 | </xsl:for-each> |
|---|
| | 2504 | </table> |
|---|
| | 2505 | </xsl:if> |
|---|
| | 2506 | |
|---|
| | 2507 | <input type="button" value="done" onclick="window.close()"/> |
|---|
| | 2508 | </div> |
|---|
| | 2509 | </div> |
|---|
| | 2510 | </form> |
|---|