A patch from Erwan de FERRIERES "improvement on the calendar screen" (https://issues.apache.org/jira/browse/OFBIZ-2941) - OFBIZ-2941

This is an improvement on the view calendar screen, to use more screenlets and less containers. The hardcoded labels have also been removed.
The modifications are visible when creating or editing an event listed in the calendar. Boxes are better rendered and have a title bar as the other parts of the screen. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815479 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2009-09-15 20:53:11 +00:00
parent f52eba705c
commit c8d0b69d18
4 changed files with 3705 additions and 3680 deletions
@@ -287,7 +287,7 @@
</property>
<property key="WorkEffortType.description.BUSINESS_TRAVEL">
<value xml:lang="en">Business Travel</value>
<value xml:lang="en">Voyage professionnel</value>
<value xml:lang="fr">Voyage professionnel</value>
<value xml:lang="it">Viaggio di lavoro</value>
<value xml:lang="zh">商务旅行</value>
</property>
File diff suppressed because it is too large Load Diff
@@ -69,7 +69,7 @@ under the License.
<form name="cancelEvent" type="single" target="updateWorkEffort">
<field name="workEffortId"><hidden value="${parameters.workEffortId}"/></field>
<field name="currentStatusId"><hidden value="CAL_CANCELLED"/></field>
<field name="cancel" title="Cancel the Event"><submit/></field>
<field name="cancel" title="${uiLabelMap.WorkEffortCancelCalendarEvent}"><submit/></field>
</form>
<form name="showCalEvent" type="single" default-map-name="workEffort">
<field name="workEffortName" title="${uiLabelMap.WorkEffortEventName}"><display/></field>
@@ -106,7 +106,7 @@ under the License.
</field>
</form>
<form name="showCalEventRolesDel" type="list" extends="showCalEventRoles" target="deleteWorkEffortPartyAssign">
<field name="remove"><submit/></field>
<field name="remove" title="${uiLabelMap.CommonRemove}"><submit/></field>
</form>
<form name="addCalEventRole" type="single" target="createWorkEffortPartyAssign">
<field name="workEffortId"><hidden value="${parameters.workEffortId}"/></field>
@@ -120,7 +120,7 @@ under the License.
</entity-options>
</drop-down>
</field>
<field name="add"><submit/></field>
<field name="add" title="${uiLabelMap.CommonAdd}"><submit/></field>
</form>
</forms>
@@ -40,13 +40,15 @@ under the License.
<script location="component://workeffort/webapp/workeffort/WEB-INF/actions/calendar/Days.groovy"/>
</actions>
<widgets>
<include-screen name="eventDetail"/>
<container style="bothclear">
<screenlet title="${uiLabelMap.WorkEffortDayView}: ${bsh:org.ofbiz.base.util.UtilDateTime.timeStampToString(start, &quot;EEEE MMMM d, yyyy&quot;, timeZone, locale)}" navigation-menu-name="Day">
<include-menu name="Day" location="component://workeffort/widget/WorkEffortMenus.xml"/>
<include-screen name="eventDetail"/>
<platform-specific>
<html><html-template location="component://workeffort/webapp/workeffort/calendar/day.ftl"/></html>
</platform-specific>
</screenlet>
</container>
</widgets>
</section>
<section>
@@ -60,13 +62,15 @@ under the License.
<script location="component://workeffort/webapp/workeffort/WEB-INF/actions/calendar/Week.groovy"/>
</actions>
<widgets>
<include-screen name="eventDetail"/>
<container style="bothclear">
<screenlet title="${uiLabelMap.WorkEffortWeekView}: ${uiLabelMap.CommonWeek} ${bsh:org.ofbiz.base.util.UtilDateTime.timeStampToString(start, &quot;w&quot;, timeZone, locale)}" navigation-menu-name="Week">
<include-menu name="Week" location="component://workeffort/widget/WorkEffortMenus.xml"/>
<include-screen name="eventDetail"/>
<platform-specific>
<html><html-template location="component://workeffort/webapp/workeffort/calendar/week.ftl"/></html>
</platform-specific>
</screenlet>
</container>
</widgets>
</section>
<section>
@@ -77,13 +81,15 @@ under the License.
<script location="component://workeffort/webapp/workeffort/WEB-INF/actions/calendar/Month.groovy"/>
</actions>
<widgets>
<include-screen name="eventDetail"/>
<container style="bothclear">
<screenlet title="${uiLabelMap.WorkEffortMonthView}: ${bsh:org.ofbiz.base.util.UtilDateTime.timeStampToString(start, &quot;MMMM yyyy&quot;, timeZone, locale)}" navigation-menu-name="Month">
<include-menu name="Month" location="component://workeffort/widget/WorkEffortMenus.xml"/>
<include-screen name="eventDetail"/>
<platform-specific>
<html><html-template location="component://workeffort/webapp/workeffort/calendar/month.ftl"/></html>
</platform-specific>
</screenlet>
</container>
</widgets>
</section>
<section>
@@ -94,12 +100,15 @@ under the License.
<script location="component://workeffort/webapp/workeffort/WEB-INF/actions/calendar/Upcoming.groovy"/>
</actions>
<widgets>
<include-screen name="eventDetail"/>
<container style="bothclear">
<screenlet title="${uiLabelMap.WorkEffortCalendarUpComingEventsView}" navigation-menu-name="Upcoming">
<include-menu name="Upcoming" location="component://workeffort/widget/WorkEffortMenus.xml"/>
<platform-specific>
<html><html-template location="component://workeffort/webapp/workeffort/calendar/upcoming.ftl"/></html>
</platform-specific>
</screenlet>
</container>
</widgets>
</section>
</widgets>
@@ -154,12 +163,21 @@ under the License.
</and>
</condition>
<widgets><!-- edit section -->
<container style="lefthalf">
<label style="h1" text="Add/Edit a Calendar Event"/>
<include-form name="editCalEvent" location="component://workeffort/widget/CalendarForms.xml"/>
<container style="lefthalf" >
<screenlet title="${uiLabelMap.WorkEffortAddCalendarEvent}">
<section>
<condition>
<not><if-empty field="workEffort"/></not>
</condition>
<widgets>
<include-form name="cancelEvent" location="component://workeffort/widget/CalendarForms.xml"/>
</widgets>
</section>
<include-form name="editCalEvent" location="component://workeffort/widget/CalendarForms.xml"/>
</screenlet>
</container>
<container style="righthalf">
<label style="h1" text="Participants"/>
<screenlet title="${uiLabelMap.WorkEffortParticipants}">
<include-form name="showCalEventRolesDel" location="component://workeffort/widget/CalendarForms.xml"/>
<section>
<condition>
@@ -170,26 +188,21 @@ under the License.
</condition>
<widgets>
<include-form name="addCalEventRole" location="component://workeffort/widget/CalendarForms.xml"/>
<section>
<condition>
<not><if-empty field="workEffort"/></not>
</condition>
<widgets>
<include-form name="cancelEvent" location="component://workeffort/widget/CalendarForms.xml"/>
</widgets>
</section>
</widgets>
</section>
</screenlet>
</container>
</widgets>
<fail-widgets><!-- view section -->
<container style="lefthalf">
<label style="h1" text="Calendar Event Summary"/>
<screenlet title="${uiLabelMap.WorkEffortSummary}">
<include-form name="showCalEvent" location="component://workeffort/widget/CalendarForms.xml"/>
</screenlet>
</container>
<container style="righthalf">
<label style="h1" text="Participants"/>
<screenlet title="${uiLabelMap.WorkEffortParticipants}">
<include-form name="showCalEventRoles" location="component://workeffort/widget/CalendarForms.xml"/>
</screenlet>
</container>
</fail-widgets>
</section>