Changeset 1176
- Timestamp:
- 12/20/06 22:35:30
- Files:
-
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl (modified) (2 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (8 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/resources/includes.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
r1175 r1176 646 646 <xsl:variable name="guid" select="guid"/> 647 647 <xsl:variable name="recurrenceId" select="recurrenceId"/> 648 <a href="{$privateCal}/ addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">648 <a href="{$privateCal}/event/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 649 649 <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon.gif" width="20" height="26" border="0" alt="Add event to MyCalendar"/> 650 650 add to my calendar</a> … … 908 908 <td class="icons"> 909 909 <variable name="confId" select="/bedework/confirmationid"/> 910 <a href="{$privateCal}/ addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar">910 <a href="{$privateCal}/event/addEventRef.do?subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="Add event to MyCalendar" target="myCalendar"> 911 911 <img class="addref" src="{$resourcesRoot}/images/add2mycal-icon-small.gif" width="12" height="16" border="0" alt="Add event to MyCalendar"/> 912 912 </a> trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1175 r1176 335 335 /bedework/page='modPrefs' or 336 336 /bedework/page='calendarListForExport' or 337 /bedework/page='attendeeRespond'"> 337 /bedework/page='attendeeRespond' or 338 /bedework/page='modSchedulingPrefs'"> 338 339 <script type="text/javascript" src="{$resourcesRoot}/resources/includes.js"></script> 339 340 </xsl:if> … … 985 986 <xsl:variable name="recurrenceId" select="recurrenceId"/> 986 987 <xsl:if test="currentAccess/current-user-privilege-set/privilege/write-content"> 987 <xsl:variable name="editTitle">988 <xsl:choose>989 <xsl:when test="isAnnotation">Annotate</xsl:when>990 <xsl:otherwise>Edit</xsl:otherwise>991 </xsl:choose>992 </xsl:variable>993 988 <xsl:choose> 994 989 <xsl:when test="recurring='true'"> 995 <xsl:value-of select="$editTitle"/>:996 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title=" {$editTitle}master (recurring event)">master</a>,997 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title=" {$editTitle}instance (recurring event)">instance</a>990 Edit: 991 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="edit master (recurring event)">master</a>, 992 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="edit instance (recurring event)">instance</a> 998 993 <br/> 999 994 </xsl:when> 1000 995 <xsl:otherwise> 1001 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title=" {$editTitle}event">1002 <xsl:value-of select="$editTitle"/>996 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="edit event"> 997 Edit 1003 998 </a> 1004 999 | … … 1006 1001 </xsl:choose> 1007 1002 </xsl:if> 1008 <xsl:choose> 1009 <xsl:when test="recurring='true'"> 1010 Link: 1011 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="add master event reference to a calendar">master</a>, 1012 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="add event reference to a calendar">instance</a> 1013 <br/> 1014 </xsl:when> 1015 <xsl:otherwise> 1016 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="add event reference to a calendar"> 1017 Link 1018 </a> 1019 | 1020 </xsl:otherwise> 1021 </xsl:choose> 1003 <xsl:if test="not(currentAccess/current-user-privilege-set/privilege/write-content)"> 1004 <xsl:choose> 1005 <xsl:when test="recurring='true'"> 1006 Link: 1007 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="add master event reference to a calendar">master</a>, 1008 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="add event reference to a calendar">instance</a> 1009 <br/> 1010 </xsl:when> 1011 <xsl:otherwise> 1012 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="add event reference to a calendar"> 1013 Link 1014 </a> 1015 | 1016 </xsl:otherwise> 1017 </xsl:choose> 1018 </xsl:if> 1022 1019 <xsl:if test="subscription and owner != /bedework/userid"> 1023 1020 <xsl:variable name="subname" select="subscription/name"/> … … 1329 1326 </a> 1330 1327 <xsl:if test="currentAccess/current-user-privilege-set/privilege/write-content"> 1331 <xsl:variable name="editTitle"> 1332 <xsl:choose> 1333 <xsl:when test="isAnnotation">Annotate</xsl:when> 1334 <xsl:otherwise>Edit</xsl:otherwise> 1335 </xsl:choose> 1336 </xsl:variable> 1337 | 1328 | 1338 1329 <xsl:choose> 1339 1330 <xsl:when test="recurring='true'"> 1340 1331 <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit master"/> 1341 <xsl:value-of select="$editTitle"/>:1342 <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 Edit: 1333 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="edit master (recurring event)">master</a>,<a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" title="edit instance (recurring event)">instance</a> 1343 1334 </xsl:when> 1344 1335 <xsl:otherwise> 1345 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title=" {$editTitle}event">1346 <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt=" {$editTitle}"/>1347 <xsl:value-of select="$editTitle"/>1336 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="edit event"> 1337 <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit"/> 1338 Edit 1348 1339 </a> 1349 1340 </xsl:otherwise> 1350 1341 </xsl:choose> 1351 1342 </xsl:if> 1343 <xsl:if test="not(currentAccess/current-user-privilege-set/privilege/write-content)"> 1352 1344 | 1353 <xsl:choose> 1354 <xsl:when test="recurring='true'"> 1355 <img src="{$resourcesRoot}/resources/std-ical_iconLinkDkGray.gif" width="12" height="16" border="0" alt="add event reference"/> 1356 Link: 1357 <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> 1358 </xsl:when> 1359 <xsl:otherwise> 1360 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="add event reference to a calendar"> 1345 <xsl:choose> 1346 <xsl:when test="recurring='true'"> 1361 1347 <img src="{$resourcesRoot}/resources/std-ical_iconLinkDkGray.gif" width="12" height="16" border="0" alt="add event reference"/> 1362 Link 1363 </a> 1364 </xsl:otherwise> 1365 </xsl:choose> 1348 Link: 1349 <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> 1350 </xsl:when> 1351 <xsl:otherwise> 1352 <a href="{$addEventRef}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}" title="add event reference to a calendar"> 1353 <img src="{$resourcesRoot}/resources/std-ical_iconLinkDkGray.gif" width="12" height="16" border="0" alt="add event reference"/> 1354 Link 1355 </a> 1356 </xsl:otherwise> 1357 </xsl:choose> 1358 </xsl:if> 1366 1359 <xsl:if test="subscription and owner != /bedework/userid"> 1367 1360 | … … 5887 5880 <table class="common" cellspacing="0"> 5888 5881 <tr> 5889 <th >Can send me scheduling requests:</th>5882 <th class="leftBorder">Can send me scheduling requests:</th> 5890 5883 <th class="leftBorder">Can schedule on my behalf:</th> 5891 5884 </tr> 5892 5885 <tr> 5893 <td class=" padMe">5894 <form name=" eventForm" method="post" action="{$prefs-setAccess}">5886 <td class="leftBorder padMe"> 5887 <form name="prefsSetAccess1" method="post" action="{$prefs-setAccess}" onsubmit="setScheduleHow(this)"> 5895 5888 <input type="hidden" name="what" value="in"/> 5896 5889 <p> … … 5911 5904 <dl> 5912 5905 <dt> 5913 <input type="checkbox" name="howSetter" value="S" checked="checked" onchange=" setScheduleHow(this)"/>all scheduling5906 <input type="checkbox" name="howSetter" value="S" checked="checked" onchange="toggleScheduleHow(this.form,this)"/>all scheduling 5914 5907 </dt> 5915 5908 <dd> … … 5930 5923 </td> 5931 5924 <td class="leftBorder padMe"> 5932 <form name=" eventForm" method="post" action="{$prefs-setAccess}">5925 <form name="prefsSetAccess2" method="post" action="{$prefs-setAccess}" onsubmit="setScheduleHow(this)"> 5933 5926 <input type="hidden" name="what" value="out"/> 5934 5927 <p> … … 5949 5942 <dl> 5950 5943 <dt> 5951 <input type="checkbox" name="howSetter" value="S" checked="checked" onchange=" setScheduleHow(this)"/>all scheduling5944 <input type="checkbox" name="howSetter" value="S" checked="checked" onchange="toggleScheduleHow(this.form,this)"/>all scheduling 5952 5945 </dt> 5953 5946 <dd> trunk/deployment/webuser/webapp/resources/demoskins/resources/includes.js
r1160 r1176 1 var debug = false; // very basic debugging for now1 var debug = true; // very basic debugging for now 2 2 3 3 function changeClass(id, newClass) { … … 349 349 } 350 350 } 351 352 353 351 // launch the calSelect pop-up window for selecting a calendar when creating, 354 352 // editing, and importing events … … 408 406 } 409 407 410 function setScheduleHow(multibox) { 411 var accessString = ""; 412 for (i=0; i<multibox.length; i++) { 413 alert(mulitbox[i].value); 414 } 415 } 416 408 function setScheduleHow(formObj) { 409 var access = new Array(); 410 // gather up the access characters 411 access = collectRecurChkBoxVals(access, formObj.howSetter); 412 formObj.how.value = access.join(''); 413 if (debug) { 414 alert(formObj.how.value); 415 } 416 } 417 function toggleScheduleHow(formObj,chkBox) { 418 if (chkBox.checked == false) { 419 // we start on the second checkbox element 420 for (i = 1; i < formObj.howSetter.length; i++) { 421 formObj.howSetter[i].disabled = false; 422 } 423 } else { 424 for (i = 1; i < formObj.howSetter.length; i++) { 425 formObj.howSetter[i].checked = true; 426 formObj.howSetter[i].disabled = true; 427 } 428 } 429 } 417 430 function swapScheduleDisplay(val) { 418 431 if (val == "show") {
