Changeset 3515
- Timestamp:
- 03/27/12 15:39:46
- Files:
-
- trunk/deployment/webadmin/webapp/resources/default/default/default.css (modified) (1 diff)
- trunk/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (8 diffs)
- trunk/deployment/webadmin/webapp/resources/default/default/strings.xsl (modified) (1 diff)
- trunk/deployment/webadmin/webapp/resources/es_ES/default/default.css (modified) (1 diff)
- trunk/deployment/webadmin/webapp/resources/es_ES/default/default.xsl (modified) (10 diffs)
- trunk/deployment/webadmin/webapp/resources/es_ES/default/strings.xsl (modified) (1 diff)
- trunk/deployment/webadmin/webapp/resources/resources/bedework.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webadmin/webapp/resources/default/default/default.css
r3508 r3515 1216 1216 padding-right: 2em; 1217 1217 } 1218 #daysSetterBox { 1219 margin-left: 1em; 1220 } 1218 1221 .bwEventListOtherGroupTags { 1219 1222 font-size: 0.8em; trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r3512 r3515 376 376 $(document).ready(function(){ 377 377 378 <xsl:if test="/bedework/formElements/recurrenceId = ''">378 <xsl:if test="/bedework/formElements/recurrenceId = ''"> 379 379 initRXDates(); 380 380 </xsl:if> … … 403 403 404 404 </xsl:if> 405 406 <xsl:if test="/bedework/page='listEvents'"> 407 bwSetupListDatePicker(); 408 </xsl:if> 405 409 406 410 // If you wish to collapse specific topical areas, you can specify them here: … … 415 419 }); 416 420 421 }); 422 </xsl:comment> 423 </script> 424 </xsl:if> 425 <xsl:if test="/bedework/page='eventList'"> 426 <!-- include the localized jQuery datepicker defaults --> 427 <xsl:call-template name="jqueryDatepickerDefaults"/> 428 429 <!-- get the current date set by the user, if exists, else use now --> 430 <xsl:variable name="curListDate"> 431 <xsl:choose> 432 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when> 433 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise> 434 </xsl:choose> 435 </xsl:variable> 436 <!-- now setup date and time pickers --> 437 <script type="text/javascript"> 438 <xsl:comment> 439 $(document).ready(function(){ 440 // startdate for list 441 $("#bwListWidgetStartDate").datepicker({ 442 defaultDate: new Date(<xsl:value-of select="substring(/bedework/now/date,1,4)"/>, <xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>, <xsl:value-of select="substring(/bedework/now/date,7,2)"/>) 443 }); 444 $("#bwListWidgetStartDate").val('<xsl:value-of select="$curListDate"/>'); 417 445 }); 418 446 </xsl:comment> … … 825 853 <tr> 826 854 <td> 827 <a href="{$event-initUpdateEvent} ">855 <a href="{$event-initUpdateEvent}&limitdays=true"> 828 856 <xsl:if test="not(/bedework/currentCalSuite/name)"> 829 857 <xsl:attribute name="onclick">alert("<xsl:copy-of select="$bwStr-MMnu-YouMustBeOperating"/>");return false;</xsl:attribute> … … 1038 1066 <div id="bwEventListControls"> 1039 1067 <form name="calForm" id="bwManageEventListControls" method="post" action="{$event-initUpdateEvent}"> 1068 <label for="bwListWidgetStartDate"><xsl:copy-of select="$bwStr-EvLs-StartDate"/></label> 1069 <input id="bwListWidgetStartDate" name="start" size="10" onchange="setListDate(this.form);"/> 1070 <input type="hidden" name="setappvar" id="curListDateHolder"/> 1071 <input type="hidden" name="limitdays" id="true"/> 1072 <span id="daysSetterBox"> 1073 <label for="days"><xsl:copy-of select="$bwStr-EvLs-Days"/></label> 1074 <xsl:text> </xsl:text> 1075 <xsl:value-of select="/bedework/defaultdays"/> 1076 <!-- 1077 <select id="days" name="days"> 1078 <xsl:call-template name="buildListDays"/> 1079 </select> 1080 <input type="hidden" id="curListDaysHolder" name="setappvar"/> 1081 --> 1082 </span> 1083 1084 <!-- This block contains the original Show Active/All toggle. 1085 Uncomment this block to use, though it can be slow if working 1086 with large very large numbers of events. 1040 1087 <xsl:copy-of select="$bwStr-EvLs-Show"/> 1041 1088 <xsl:copy-of select="/bedework/formElements/form/listAllSwitchFalse/*"/> … … 1043 1090 <xsl:copy-of select="/bedework/formElements/form/listAllSwitchTrue/*"/> 1044 1091 <xsl:copy-of select="$bwStr-EvLs-All"/> 1092 --> 1045 1093 </form> 1046 1094 … … 1061 1109 </xsl:for-each> 1062 1110 </select> 1111 <input type="hidden" name="start"> 1112 <xsl:attribute name="value"> 1113 <xsl:choose> 1114 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when> 1115 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise> 1116 </xsl:choose> 1117 </xsl:attribute> 1118 </input> 1119 <input type="hidden" name="limitdays" id="true"/> 1063 1120 <xsl:if test="/bedework/appvar[key='catFilter'] and /bedework/appvar[key='catFilter']/value != 'none'"> 1064 1121 <input type="submit" value="{$bwStr-EvLs-ClearFilter}" onclick="this.form.setappvar.selectedIndex = 0"/> … … 1067 1124 </div> 1068 1125 <xsl:call-template name="eventListCommon"/> 1126 </xsl:template> 1127 1128 <xsl:template name="buildListDays"> 1129 <xsl:param name="index">1</xsl:param> 1130 <xsl:variable name="current"> 1131 <xsl:choose> 1132 <xsl:when test="/bedework/appvar[key='curListDays']/value"><xsl:value-of select="/bedework/appvar[key='curListDays']/value"/></xsl:when> 1133 <xsl:otherwise><xsl:value-of select="/bedework/defaultdays"/></xsl:otherwise> 1134 </xsl:choose> 1135 </xsl:variable> 1136 <xsl:variable name="max" select="/bedework/maxdays"/> 1137 <xsl:if test="number($index) < number($max)"> 1138 <option name="listDays($index)"> 1139 <xsl:if test="$index = $current"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 1140 <xsl:value-of select="$index"/> 1141 </option> 1142 <xsl:call-template name="buildListDays"> 1143 <xsl:with-param name="index"><xsl:value-of select="number($index)+1"/></xsl:with-param> 1144 </xsl:call-template> 1145 </xsl:if> 1069 1146 </xsl:template> 1070 1147 trunk/deployment/webadmin/webapp/resources/default/default/strings.xsl
r3508 r3515 101 101 <xsl:variable name="bwStr-EvLs-SelectEvent">Select the event that you would like to update:</xsl:variable> 102 102 <xsl:variable name="bwStr-EvLs-PageTitle">Add new event</xsl:variable> 103 <xsl:variable name="bwStr-EvLs-StartDate">Start Date:</xsl:variable> 104 <xsl:variable name="bwStr-EvLs-Days">Days:</xsl:variable> 103 105 <xsl:variable name="bwStr-EvLs-Show">Show:</xsl:variable> 104 106 <xsl:variable name="bwStr-EvLs-Active">Active</xsl:variable> trunk/deployment/webadmin/webapp/resources/es_ES/default/default.css
r3508 r3515 1216 1216 padding-right: 2em; 1217 1217 } 1218 #daysSetterBox { 1219 margin-left: 1em; 1220 } 1218 1221 .bwEventListOtherGroupTags { 1219 1222 font-size: 0.8em; trunk/deployment/webadmin/webapp/resources/es_ES/default/default.xsl
r3510 r3515 404 404 </xsl:if> 405 405 406 <xsl:if test="/bedework/page='listEvents'"> 407 bwSetupListDatePicker(); 408 </xsl:if> 409 406 410 // If you wish to collapse specific topical areas, you can specify them here: 407 411 // (note that this will be managed from the admin client in time) … … 415 419 }); 416 420 421 }); 422 </xsl:comment> 423 </script> 424 </xsl:if> 425 <xsl:if test="/bedework/page='eventList'"> 426 <!-- include the localized jQuery datepicker defaults --> 427 <xsl:call-template name="jqueryDatepickerDefaults"/> 428 429 <!-- get the current date set by the user, if exists, else use now --> 430 <xsl:variable name="curListDate"> 431 <xsl:choose> 432 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when> 433 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise> 434 </xsl:choose> 435 </xsl:variable> 436 <!-- now setup date and time pickers --> 437 <script type="text/javascript"> 438 <xsl:comment> 439 $(document).ready(function(){ 440 // startdate for list 441 $("#bwListWidgetStartDate").datepicker({ 442 defaultDate: new Date(<xsl:value-of select="substring(/bedework/now/date,1,4)"/>, <xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>, <xsl:value-of select="substring(/bedework/now/date,7,2)"/>) 443 }).attr("readonly", "readonly"); 444 $("#bwListWidgetStartDate").val('<xsl:value-of select="$curListDate"/>'); 417 445 }); 418 446 </xsl:comment> … … 826 854 <tr> 827 855 <td> 828 <a href="{$event-initUpdateEvent} ">856 <a href="{$event-initUpdateEvent}&limitdays=true"> 829 857 <xsl:if test="not(/bedework/currentCalSuite/name)"> 830 858 <xsl:attribute name="onclick">alert("<xsl:copy-of select="$bwStr-MMnu-YouMustBeOperating"/>");return false;</xsl:attribute> … … 1039 1067 <div id="bwEventListControls"> 1040 1068 <form name="calForm" id="bwManageEventListControls" method="post" action="{$event-initUpdateEvent}"> 1069 <label for="bwListWidgetStartDate"><xsl:copy-of select="$bwStr-EvLs-StartDate"/></label> 1070 <input id="bwListWidgetStartDate" name="start" size="10" onchange="setListDate(this.form);"/> 1071 <input type="hidden" name="setappvar" id="curListDateHolder"/> 1072 <input type="hidden" name="limitdays" id="true"/> 1073 <span id="daysSetterBox"> 1074 <label for="days"><xsl:copy-of select="$bwStr-EvLs-Days"/></label> 1075 <xsl:text> </xsl:text> 1076 <xsl:value-of select="/bedework/defaultdays"/> 1077 <!-- 1078 <select id="days" name="days"> 1079 <xsl:call-template name="buildListDays"/> 1080 </select> 1081 <input type="hidden" id="curListDaysHolder" name="setappvar"/> 1082 --> 1083 </span> 1084 1085 <!-- This block contains the original Show Active/All toggle. 1086 Uncomment this block to use, though it can be slow if working 1087 with large very large numbers of events. 1041 1088 <xsl:copy-of select="$bwStr-EvLs-Show"/> 1042 1089 <xsl:copy-of select="/bedework/formElements/form/listAllSwitchFalse/*"/> … … 1044 1091 <xsl:copy-of select="/bedework/formElements/form/listAllSwitchTrue/*"/> 1045 1092 <xsl:copy-of select="$bwStr-EvLs-All"/> 1093 --> 1046 1094 </form> 1047 1095 … … 1062 1110 </xsl:for-each> 1063 1111 </select> 1112 <input type="hidden" name="start"> 1113 <xsl:attribute name="value"> 1114 <xsl:choose> 1115 <xsl:when test="/bedework/appvar[key='curListDate']/value"><xsl:value-of select="/bedework/appvar[key='curListDate']/value"/></xsl:when> 1116 <xsl:otherwise><xsl:value-of select="substring(/bedework/now/date,1,4)"/>-<xsl:value-of select="number(substring(/bedework/now/date,5,2)) - 1"/>-<xsl:value-of select="substring(/bedework/now/date,7,2)"/></xsl:otherwise> 1117 </xsl:choose> 1118 </xsl:attribute> 1119 </input> 1120 <input type="hidden" name="limitdays" id="true"/> 1064 1121 <xsl:if test="/bedework/appvar[key='catFilter'] and /bedework/appvar[key='catFilter']/value != 'none'"> 1065 1122 <input type="submit" value="{$bwStr-EvLs-ClearFilter}" onclick="this.form.setappvar.selectedIndex = 0"/> … … 1068 1125 </div> 1069 1126 <xsl:call-template name="eventListCommon"/> 1127 </xsl:template> 1128 1129 <xsl:template name="buildListDays"> 1130 <xsl:param name="index">1</xsl:param> 1131 <xsl:variable name="current"> 1132 <xsl:choose> 1133 <xsl:when test="/bedework/appvar[key='curListDays']/value"><xsl:value-of select="/bedework/appvar[key='curListDays']/value"/></xsl:when> 1134 <xsl:otherwise><xsl:value-of select="/bedework/defaultdays"/></xsl:otherwise> 1135 </xsl:choose> 1136 </xsl:variable> 1137 <xsl:variable name="max" select="/bedework/maxdays"/> 1138 <xsl:if test="number($index) < number($max)"> 1139 <option name="listDays($index)"> 1140 <xsl:if test="$index = $current"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if> 1141 <xsl:value-of select="$index"/> 1142 </option> 1143 <xsl:call-template name="buildListDays"> 1144 <xsl:with-param name="index"><xsl:value-of select="number($index)+1"/></xsl:with-param> 1145 </xsl:call-template> 1146 </xsl:if> 1070 1147 </xsl:template> 1071 1148 … … 1261 1338 </xsl:if> 1262 1339 1263 <!-- if a submitted event has comments, display them -->1264 1340 <xsl:if test="/bedework/page = 'modEventPending'"> 1341 <!-- if a submitted event has topical areas that match with 1342 those in the calendar suite, convert them --> 1343 <script type="text/javascript"> 1344 $(document).ready(function() { 1345 $("ul.aliasTree input:checked").trigger("onclick"); 1346 }); 1347 </script> 1348 1349 <!-- if a submitted event has comments, display them --> 1265 1350 <xsl:if test="form/xproperties/node()[name()='X-BEDEWORK-LOCATION' or name()='X-BEDEWORK-CONTACT' or name()='X-BEDEWORK-CATEGORIES' or name()='X-BEDEWORK-SUBMIT-COMMENT']"> 1266 1351 <script type="text/javascript"> … … 2950 3035 <xsl:if test="$virtualPath = /bedework/formElements/form/xproperties//X-BEDEWORK-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 2951 3036 <xsl:if test="path = /bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 3037 <xsl:if test="/bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text = substring-after(aliasUri,'bwcal://')"><xsl:attribute name="checked"><xsl:value-of select="checked"/></xsl:attribute></xsl:if> 2952 3038 </input> 2953 3039 <xsl:choose> … … 2956 3042 </xsl:when> 2957 3043 <xsl:when test="path = /bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text"> 3044 <strong><xsl:value-of select="summary"/></strong> 3045 </xsl:when> 3046 <xsl:when test="/bedework/formElements/form/xproperties//X-BEDEWORK-SUBMIT-ALIAS/values/text = substring-after(aliasUri,'bwcal://')"> 2958 3047 <strong><xsl:value-of select="summary"/></strong> 2959 3048 </xsl:when> trunk/deployment/webadmin/webapp/resources/es_ES/default/strings.xsl
r3508 r3515 101 101 <xsl:variable name="bwStr-EvLs-SelectEvent">Seleccione el evento que desearía actualizar:</xsl:variable> 102 102 <xsl:variable name="bwStr-EvLs-PageTitle">Añadir nuevo evento</xsl:variable> 103 <xsl:variable name="bwStr-EvLs-StartDate">Start Date:</xsl:variable> 104 <xsl:variable name="bwStr-EvLs-Days">Days:</xsl:variable> 103 105 <xsl:variable name="bwStr-EvLs-Show">Mostrar:</xsl:variable> 104 106 <xsl:variable name="bwStr-EvLs-Active">Activo</xsl:variable> trunk/deployment/webadmin/webapp/resources/resources/bedework.js
r3403 r3515 305 305 } 306 306 } 307 // setup the event list dates 308 function setListDate(formObj) { 309 $("#curListDateHolder").val("curListDate(" + formObj.start.value + ")"); 310 // restore ability to set days when form accepts it 311 //$("#curListDaysHolder").val("curListDays(" + formObj.days.value + ")"); 312 formObj.submit(); 313 }
