Changeset 1163
- Timestamp:
- 12/15/06 17:20:40
- Files:
-
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/images/calIconDeleted-sm.gif (added)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/images/calIconExport-sm.gif (added)
- trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/images/calIconDeleted-sm.gif (added)
- trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/images/calIconExport-sm.gif (added)
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css (modified) (4 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (13 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/resources/calIconDeleted-sm.gif (added)
- trunk/deployment/webuser/webapp/resources/demoskins/resources/calIconExport-sm.gif (added)
- trunk/deployment/webuser/webapp/resources/demoskins/resources/std-ical_iconLinkDkGray.gif (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
r1162 r1163 1183 1183 <xsl:variable name="calPath" select="encodedPath"/> 1184 1184 <span class="exportCalLink"> 1185 <a href="{$export}&calPath={$calPath}&dateLimits=active&nocache=no&skinName=ical&contentType=text/calendar&contentName={$name}.ics" title="export calendar as iCal (excluding past events)">export</a> 1185 <a href="{$export}&calPath={$calPath}&dateLimits=active&nocache=no&skinName=ical&contentType=text/calendar&contentName={$name}.ics" title="export calendar as iCal (excluding past events)"> 1186 <img src="{$resourcesRoot}/images/calIconExport-sm.gif" width="13" height="13" alt="export calendar" border="0"/> 1187 </a> 1186 1188 <!--export 1187 1189 <a href="{$export}&calPath={$calPath}&dateLimits=active&nocache=no&skinName=ical&contentType=text/calendar&contentName={$name}.ics" title="export calendar as iCal (excluding past events)">current</a> | trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css
r1160 r1163 548 548 table.common td.leftBorder { 549 549 border-left: 1px solid #999; 550 border-top: 1px solid #999; 550 551 padding-left: 1em; 551 552 } … … 592 593 table.common .borderRight { 593 594 border-right: 1px solid #999; 595 } 596 table.common tr#exportDateRange td.dates { 597 border-bottom: 1px solid #999; 598 padding: 0.5em; 594 599 } 595 600 table.common .dateFields { … … 705 710 display: inline; 706 711 } 712 .visible { 713 /* like shown, but apply no styles to this class */ 714 } 707 715 .invisible { 708 716 display: none !important; … … 1249 1257 .calendarTree li.trash { 1250 1258 list-style-image: url(../../resources/trashIcon.gif); 1259 } 1260 .calendarTree li.deleted { 1261 list-style-image: url(../../resources/calIconDeleted-sm.gif); 1251 1262 } 1252 1263 .calendarTree li.selected { trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1160 r1163 334 334 </xsl:if> 335 335 <xsl:if test="/bedework/page='addEvent' or 336 /bedework/page='editEvent'"> 336 /bedework/page='editEvent' or 337 /bedework/page='calendarListForExport'"> 337 338 <script type="text/javascript" src="{$resourcesRoot}/resources/bwClock.js"></script> 338 339 <link rel="stylesheet" href="{$resourcesRoot}/resources/bwClock.css"/> … … 978 979 <xsl:variable name="recurrenceId" select="recurrenceId"/> 979 980 <xsl:if test="currentAccess/current-user-privilege-set/privilege/write-content"> 981 <xsl:variable name="editTitle"> 982 <xsl:choose> 983 <xsl:when test="isAnnotation">Annotate</xsl:when> 984 <xsl:otherwise>Edit</xsl:otherwise> 985 </xsl:choose> 986 </xsl:variable> 980 987 <xsl:choose> 981 988 <xsl:when test="recurring='true'"> 982 Edit:983 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" >master</a>,984 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" >instance</a>989 <xsl:value-of select="$editTitle"/>: 990 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="{$editTitle} master (recurring event)">master</a>, 991 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="{$editTitle} instance (recurring event)">instance</a> 985 992 <br/> 986 993 </xsl:when> 987 994 <xsl:otherwise> 988 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}">Edit</a> 989 | 990 </xsl:otherwise> 991 </xsl:choose> 992 </xsl:if> 993 <xsl:if test="owner != /bedework/userid"> 994 <xsl:choose> 995 <xsl:when test="recurring='true'"> 996 Annotate: 997 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 998 master 999 </a>, 1000 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1001 this 1002 </a> 1003 <br/> 1004 </xsl:when> 1005 <xsl:otherwise> 1006 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 1007 Annotate 995 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="{$editTitle} event"> 996 <xsl:value-of select="$editTitle"/> 1008 997 </a> 1009 998 | … … 1011 1000 </xsl:choose> 1012 1001 </xsl:if> 1013 <xsl:if test="owner != /bedework/userid"> 1002 <xsl:choose> 1003 <xsl:when test="recurring='true'"> 1004 Link: 1005 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="add master event reference to a calendar">master</a>, 1006 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="add event reference to a calendar">instance</a> 1007 <br/> 1008 </xsl:when> 1009 <xsl:otherwise> 1010 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="add event reference to a calendar"> 1011 Link 1012 </a> 1013 | 1014 </xsl:otherwise> 1015 </xsl:choose> 1016 <xsl:if test="subscription and owner != /bedework/userid"> 1014 1017 <xsl:variable name="subname" select="subscription/name"/> 1015 <a href="{$subscriptions-fetchForUpdate}&subname={$subname}" >1018 <a href="{$subscriptions-fetchForUpdate}&subname={$subname}" title="manage/view subscription"> 1016 1019 Subscription 1017 1020 </a> … … 1021 1024 <xsl:when test="recurring='true'"> 1022 1025 Delete: 1023 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 1024 all 1025 </a>, 1026 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1027 instance 1028 </a> 1026 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="delete master (recurring event)">all</a>, 1027 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a> 1029 1028 </xsl:when> 1030 1029 <xsl:otherwise> 1031 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" >1030 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete event"> 1032 1031 Delete 1033 1032 </a> … … 1324 1323 </a> 1325 1324 <xsl:if test="currentAccess/current-user-privilege-set/privilege/write-content"> 1325 <xsl:variable name="editTitle"> 1326 <xsl:choose> 1327 <xsl:when test="isAnnotation">Annotate</xsl:when> 1328 <xsl:otherwise>Edit</xsl:otherwise> 1329 </xsl:choose> 1330 </xsl:variable> 1326 1331 | 1327 1332 <xsl:choose> 1328 1333 <xsl:when test="recurring='true'"> 1329 1334 <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit master"/> 1330 Edit:1331 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" >master</a>,<a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">instance</a>1335 <xsl:value-of select="$editTitle"/>: 1336 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="{$editTitle} master (recurring event)">master</a>,<a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="{$editTitle} instance (recurring event)">instance</a> 1332 1337 </xsl:when> 1333 1338 <xsl:otherwise> 1334 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" >1335 <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt=" edit"/>1336 Edit1339 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="{$editTitle} event"> 1340 <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="{$editTitle}"/> 1341 <xsl:value-of select="$editTitle"/> 1337 1342 </a> 1338 1343 </xsl:otherwise> 1339 1344 </xsl:choose> 1340 1345 </xsl:if> 1341 <xsl:if test="owner != /bedework/userid">1342 1346 | 1343 <xsl:choose> 1344 <xsl:when test="recurring='true'"> 1345 <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit master"/> 1346 Annotate: 1347 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}">master</a>,<a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">instance</a> 1348 </xsl:when> 1349 <xsl:otherwise> 1350 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 1351 <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit"/> 1352 Annotate 1353 </a> 1354 </xsl:otherwise> 1355 </xsl:choose> 1356 </xsl:if> 1357 <xsl:if test="owner != /bedework/userid"> 1347 <xsl:choose> 1348 <xsl:when test="recurring='true'"> 1349 <img src="{$resourcesRoot}/resources/std-ical_iconLinkDkGray.gif" width="12" height="16" border="0" alt="add event reference"/> 1350 Link: 1351 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="add master event reference to a calendar">master</a>,<a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="add event reference to a calendar">instance</a> 1352 </xsl:when> 1353 <xsl:otherwise> 1354 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="add event reference to a calendar"> 1355 <img src="{$resourcesRoot}/resources/std-ical_iconLinkDkGray.gif" width="12" height="16" border="0" alt="add event reference"/> 1356 Link 1357 </a> 1358 </xsl:otherwise> 1359 </xsl:choose> 1360 <xsl:if test="subscription and owner != /bedework/userid"> 1358 1361 | 1359 1362 <xsl:variable name="subname" select="subscription/name"/> 1360 <a href="{$subscriptions-fetchForUpdate}&subname={$subname}" >1361 <img src="{$resourcesRoot}/resources/std-ical_iconSubsDkGray.gif" width="12" height="16" border="0" alt="manage subscription"/>1363 <a href="{$subscriptions-fetchForUpdate}&subname={$subname}" title="manage/view subscription"> 1364 <img src="{$resourcesRoot}/resources/std-ical_iconSubsDkGray.gif" width="12" height="16" border="0" alt="manage/view subscription"/> 1362 1365 Subscription 1363 1366 </a> … … 1366 1369 <xsl:choose> 1367 1370 <xsl:when test="recurring='true'"> 1368 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete all"/>1371 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 1369 1372 Delete: 1370 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" >all</a>,<a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">instance</a>1373 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="delete master (recurring event)">all</a>,<a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete instance (recurring event)">instance</a> 1371 1374 </xsl:when> 1372 1375 <xsl:otherwise> 1373 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" >1376 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="delete event"> 1374 1377 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete"/> 1375 1378 Delete … … 3904 3907 <xsl:template match="calendars" mode="exportCalendars"> 3905 3908 <h2>Export Calendars as iCal</h2> 3906 <form name="e xportCalendarForm" id="exportCalendarForm" action="{$export}" method="post">3909 <form name="eventForm" id="exportCalendarForm" action="{$export}" method="post"> 3907 3910 <input type="hidden" name="calPath" value=""/> 3908 3911 <input type="hidden" name="nocache" value="no"/> … … 3914 3917 <tr> 3915 3918 <th class="commonHeader" colspan="3"> 3916 Date limits:3917 <input type="radio" name="dateLimits" value="active" checked="checked" /> active3918 <input type="radio" name="dateLimits" value="none" /> all (includes past events)3919 < !--<input type="radio" name="dateLimits" value="limited"/> limited to:-->3919 Event date limits: 3920 <input type="radio" name="dateLimits" value="active" checked="checked" onclick="changeClass('exportDateRange','invisible')"/> today forward 3921 <input type="radio" name="dateLimits" value="none" onclick="changeClass('exportDateRange','invisible')"/> all dates 3922 <input type="radio" name="dateLimits" value="limited" onclick="changeClass('exportDateRange','visible')"/> date range 3920 3923 </th> 3924 </tr> 3925 <tr id="exportDateRange" class="invisible"> 3926 <td colspan="3" class="dates"> 3927 <strong>Start:</strong> 3928 <div class="dateFields"> 3929 <xsl:copy-of select="/bedework/formElements/form/start/month/*"/> 3930 <xsl:copy-of select="/bedework/formElements/form/start/day/*"/> 3931 <xsl:copy-of select="/bedework/formElements/form/start/yearText/*"/> 3932 </div> 3933 <script language="JavaScript" type="text/javascript"> 3934 <xsl:comment> 3935 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',false,'<xsl:value-of select="$resourcesRoot"/>/resources/'); 3936 </xsl:comment> 3937 </script> 3938    3939 <strong>End:</strong> 3940 <div class="dateFields"> 3941 <xsl:copy-of select="/bedework/formElements/form/end/month/*"/> 3942 <xsl:copy-of select="/bedework/formElements/form/end/day/*"/> 3943 <xsl:copy-of select="/bedework/formElements/form/end/yearText/*"/> 3944 </div> 3945 <script language="JavaScript" type="text/javascript"> 3946 <xsl:comment> 3947 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',false,'<xsl:value-of select="$resourcesRoot"/>/resources/'); 3948 </xsl:comment> 3949 </script> 3950 </td> 3921 3951 </tr> 3922 3952 <tr> … … 3925 3955 </th> 3926 3956 <th class="borderRight"> 3927 Subscriptions 3957 Subscriptions (underlying calendars) 3928 3958 </th> 3929 3959 <th> … … 3934 3964 <td class="borderRight"> 3935 3965 <!-- My Calendars --> 3936 <ul >3966 <ul class="calendarTree"> 3937 3967 <!-- list normal calendars first --> 3938 3968 <xsl:for-each select="/bedework/myCalendars/calendars/calendar//calendar[calendarCollection='true' and calType < 2]"> 3939 <li >3969 <li class="calendar"> 3940 3970 <xsl:variable name="calPath" select="path"/> 3941 3971 <xsl:variable name="name" select="name"/> … … 3946 3976 </xsl:for-each> 3947 3977 </ul> 3948 <ul >3978 <ul class="calendarTree"> 3949 3979 <!-- list special calendars next --> 3950 3980 <xsl:for-each select="/bedework/myCalendars/calendars/calendar//calendar[calendarCollection='true' and calType > 1]"> 3951 <li >3981 <li class="calendar"> 3952 3982 <xsl:variable name="calPath" select="path"/> 3953 3983 <xsl:variable name="name" select="name"/> … … 3961 3991 <td class="borderRight"> 3962 3992 <!-- My Subscriptions (underlying calendars) --> 3963 <ul >3993 <ul class="calendarTree"> 3964 3994 <xsl:variable name="userPath">user/<xsl:value-of select="/bedework/userid"/></xsl:variable> 3965 <xsl:for-each select="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]/calendars//calendar[calendarCollection='true']"> 3966 <li> 3967 <xsl:variable name="calPath" select="path"/> 3968 <xsl:variable name="name" select="name"/> 3969 <a href="javascript:exportCalendar('exportCalendarForm','{$name}','{$calPath}')"> 3970 <xsl:value-of select="name"/> 3971 </a> 3972 </li> 3995 <xsl:for-each select="/bedework/mySubscriptions/subscription[not(contains(uri,$userPath))]"> 3996 <xsl:choose> 3997 <xsl:when test="calendarDeleted='true'"> 3998 <li class="deleted"> 3999 <xsl:value-of select="name"/><br/> 4000 <em>calendar not available</em> 4001 </li> 4002 </xsl:when> 4003 <xsl:when test="count(calendars//calendar[calendarCollection='true']) = 1"> 4004 <xsl:for-each select="calendars//calendar[calendarCollection='true']"> 4005 <li class="calendar"> 4006 <xsl:variable name="calPath" select="path"/> 4007 <xsl:variable name="name" select="name"/> 4008 <a href="javascript:exportCalendar('exportCalendarForm','{$name}','{$calPath}')"> 4009 <xsl:value-of select="name"/> 4010 </a> 4011 </li> 4012 </xsl:for-each> 4013 </xsl:when> 4014 <xsl:otherwise> 4015 <li class="folder"> 4016 <xsl:value-of select="name"/>: 4017 <ul> 4018 <xsl:for-each select="calendars//calendar[calendarCollection='true']"> 4019 <li class="calendar"> 4020 <xsl:variable name="calPath" select="path"/> 4021 <xsl:variable name="name" select="name"/> 4022 <a href="javascript:exportCalendar('exportCalendarForm','{$name}','{$calPath}')"> 4023 <xsl:value-of select="name"/> 4024 </a> 4025 </li> 4026 </xsl:for-each> 4027 </ul> 4028 </li> 4029 </xsl:otherwise> 4030 </xsl:choose> 3973 4031 </xsl:for-each> 3974 4032 </ul> 3975 4033 </td> 3976 4034 <td> 3977 <ul >4035 <ul class="calendarTree"> 3978 4036 <xsl:for-each select=".//calendar[calendarCollection='true']"> 3979 <li >4037 <li class="calendar"> 3980 4038 <xsl:variable name="calPath" select="path"/> 3981 4039 <xsl:variable name="name" select="name"/> … … 4080 4138 <input type="hidden" value="" name="calUri"/> 4081 4139 <input type="text" value="" name="userId" size="20"/> 4082 <span class="note">ex: douglm</span>4083 </td> 4084 </tr> 4085 <tr> 4086 <td class="fieldname"> User path:</td>4140 <span class="note">ex: janedoe</span> 4141 </td> 4142 </tr> 4143 <tr> 4144 <td class="fieldname">Calendar path:</td> 4087 4145 <td> 4088 4146 <input type="text" value="" name="userPath" size="20"/> 4089 <span class="note">(optional) ex: someDept/meetings</span> 4147 <span class="note"> 4148 (optional) ex: calendar<br/> 4149 to subscribe to bwcal:///user/janedoe/someFolder/someCalendar, enter "someFolder/someCalendar" 4150 </span> 4090 4151 </td> 4091 4152 </tr>
