diff --git a/applications/workeffort/data/WorkEffortPortletData.xml b/applications/workeffort/data/WorkEffortPortletData.xml index b5fc3430bf..e0ebf21fc0 100644 --- a/applications/workeffort/data/WorkEffortPortletData.xml +++ b/applications/workeffort/data/WorkEffortPortletData.xml @@ -26,5 +26,14 @@ screenLocation="component://workeffort/widget/WorkEffortScreens.xml" description="My Company Comms From My Page" securityServiceName="portalPermissionIsEmployee" securityMainAction="VIEW"/> + + + + + diff --git a/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Days.groovy b/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Days.groovy index 8642bfed73..2e4f3a6ace 100644 --- a/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Days.groovy +++ b/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Days.groovy @@ -58,7 +58,9 @@ if (start == null) { } Timestamp prev = UtilDateTime.getDayStart(start, -1, timeZone, locale); +context.prevMillis = new Long(prev.getTime()).toString(); Timestamp next = UtilDateTime.getDayStart(start, 1, timeZone, locale); +context.nextMillis = new Long(next.getTime()).toString(); Map serviceCtx = UtilMisc.toMap("userLogin", userLogin,"start",start,"numPeriods",new Integer(24),"periodType",new Integer(Calendar.HOUR)); serviceCtx.putAll(UtilMisc.toMap("partyId", partyId, "facilityId", facilityId, "fixedAssetId", fixedAssetId, "workEffortTypeId", workEffortTypeId, "locale", locale, "timeZone", timeZone)); diff --git a/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Month.groovy b/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Month.groovy index eeffa98c5b..139ffbf6a3 100644 --- a/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Month.groovy +++ b/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Month.groovy @@ -62,7 +62,9 @@ tempCal = UtilDateTime.toCalendar(start, timeZone, locale); numDays = tempCal.getActualMaximum(Calendar.DAY_OF_MONTH); prev = UtilDateTime.getMonthStart(start, -1, timeZone, locale); +context.prevMillis = new Long(prev.getTime()).toString(); next = UtilDateTime.getDayStart(start, numDays+1, timeZone, locale); +context.nextMillis = new Long(next.getTime()).toString(); end = UtilDateTime.getDayStart(start, numDays, timeZone, locale); //Find out what date to get from diff --git a/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Week.groovy b/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Week.groovy index 6d3f9adbac..f414f648fc 100644 --- a/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Week.groovy +++ b/applications/workeffort/webapp/workeffort/WEB-INF/actions/calendar/Week.groovy @@ -58,7 +58,9 @@ if (start == null) { } Timestamp prev = UtilDateTime.getDayStart(start, -7, timeZone, locale); +context.prevMillis = new Long(prev.getTime()).toString(); Timestamp next = UtilDateTime.getDayStart(start, 7, timeZone, locale); +context.nextMillis = new Long(next.getTime()).toString(); Timestamp end = UtilDateTime.getDayStart(start, 6, timeZone, locale); Map serviceCtx = UtilMisc.toMap("userLogin", userLogin,"start",start,"numPeriods",new Integer(7),"periodType",new Integer(Calendar.DATE)); diff --git a/applications/workeffort/webapp/workeffort/calendar/CalendarTabBar.ftl b/applications/workeffort/webapp/workeffort/calendar/CalendarTabBar.ftl deleted file mode 100644 index c68e9f5d91..0000000000 --- a/applications/workeffort/webapp/workeffort/calendar/CalendarTabBar.ftl +++ /dev/null @@ -1,41 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -<#assign selected = tabButtonItem?default("void")> - -
- ${uiLabelMap.WorkEffortNewEvent} -
-
- - - - \ No newline at end of file diff --git a/applications/workeffort/webapp/workeffort/calendar/day.ftl b/applications/workeffort/webapp/workeffort/calendar/day.ftl index 34ee9909cb..27cb04f287 100644 --- a/applications/workeffort/webapp/workeffort/calendar/day.ftl +++ b/applications/workeffort/webapp/workeffort/calendar/day.ftl @@ -16,15 +16,6 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - <#if periods?has_content> <#if (maxConcurrentEntries < 2)> <#assign entryWidth = 100> diff --git a/applications/workeffort/webapp/workeffort/calendar/month.ftl b/applications/workeffort/webapp/workeffort/calendar/month.ftl index 79d0fc7a20..46857e515e 100644 --- a/applications/workeffort/webapp/workeffort/calendar/month.ftl +++ b/applications/workeffort/webapp/workeffort/calendar/month.ftl @@ -28,15 +28,6 @@ height: auto; } - <#if periods?has_content> diff --git a/applications/workeffort/webapp/workeffort/calendar/upcoming.ftl b/applications/workeffort/webapp/workeffort/calendar/upcoming.ftl index f78ad818e5..9a44ea6812 100644 --- a/applications/workeffort/webapp/workeffort/calendar/upcoming.ftl +++ b/applications/workeffort/webapp/workeffort/calendar/upcoming.ftl @@ -17,10 +17,6 @@ specific language governing permissions and limitations under the License. --> -
-
-

${uiLabelMap.WorkEffortCalendarUpComingEventsView}

-
<#if days?has_content>
diff --git a/applications/workeffort/webapp/workeffort/calendar/week.ftl b/applications/workeffort/webapp/workeffort/calendar/week.ftl index e4264a9c59..f15d58d69b 100644 --- a/applications/workeffort/webapp/workeffort/calendar/week.ftl +++ b/applications/workeffort/webapp/workeffort/calendar/week.ftl @@ -16,15 +16,6 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - <#if periods?has_content> <#if (maxConcurrentEntries < 2)> <#assign entryWidth = 100> diff --git a/applications/workeffort/widget/CalendarScreens.xml b/applications/workeffort/widget/CalendarScreens.xml index af8a1e10a8..dc23fa8841 100644 --- a/applications/workeffort/widget/CalendarScreens.xml +++ b/applications/workeffort/widget/CalendarScreens.xml @@ -21,6 +21,51 @@ under the License. + +
+ + +
+ + + + + + +
+
+ + + + + + +
+
+ + + + + + + + + +
+
+ + + + + + + + +
+
+
+
+
@@ -32,9 +77,12 @@ under the License. - + + + - + + @@ -52,9 +100,12 @@ under the License. - - - + + + + + + @@ -72,9 +123,12 @@ under the License. - + + + - + + @@ -92,9 +146,11 @@ under the License. - + + - + + diff --git a/applications/workeffort/widget/CommonScreens.xml b/applications/workeffort/widget/CommonScreens.xml index 1d1a69891a..682add5bc7 100644 --- a/applications/workeffort/widget/CommonScreens.xml +++ b/applications/workeffort/widget/CommonScreens.xml @@ -152,9 +152,7 @@ under the License. - - - + diff --git a/applications/workeffort/widget/WorkEffortMenus.xml b/applications/workeffort/widget/WorkEffortMenus.xml index 9031013abf..65b9bb3db2 100644 --- a/applications/workeffort/widget/WorkEffortMenus.xml +++ b/applications/workeffort/widget/WorkEffortMenus.xml @@ -144,5 +144,65 @@ under the License. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/specialpurpose/myportal/data/MyPortalTypeData.xml b/specialpurpose/myportal/data/MyPortalTypeData.xml index 9fbc502bfe..7e159fa464 100644 --- a/specialpurpose/myportal/data/MyPortalTypeData.xml +++ b/specialpurpose/myportal/data/MyPortalTypeData.xml @@ -88,6 +88,7 @@ + @@ -110,6 +111,7 @@ + diff --git a/specialpurpose/projectmgr/data/ProjectMgrDemoData.xml b/specialpurpose/projectmgr/data/ProjectMgrDemoData.xml index bd701b3ccd..5f450e19eb 100644 --- a/specialpurpose/projectmgr/data/ProjectMgrDemoData.xml +++ b/specialpurpose/projectmgr/data/ProjectMgrDemoData.xml @@ -173,7 +173,7 @@ - +