Files
ofbiz-framework/applications/workeffort/widget/CalendarForms.xml
T
Jacques Le Roux c8d0b69d18 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
2009-09-15 20:53:11 +00:00

126 lines
7.7 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<!--
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.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<!-- Forms Specific to portlet -->
<form name="EditCalendar" extends="CommonPortletEdit" extends-resource="component://common/widget/PortletEditForms.xml">
<field name="initialView" entry-name="attributeMap.initialView">
<drop-down>
<option key="day" description="${uiLabelMap.WorkEffortDayView}"/>
<option key="week" description="${uiLabelMap.WorkEffortWeekView}"/>
<option key="month" description="${uiLabelMap.WorkEffortMonthView}"/>
</drop-down>
</field>
<field name="updateButton"><submit/></field>
</form>
<form name="editCalEvent" type="single" target="createWorkEffortAndPartyAssign" default-map-name="workEffort">
<alt-target use-when="workEffort!=null" target="updateWorkEffort"/>
<field name="workEffortId" use-when="workEffort!=null"><hidden/></field>
<field name="partyId"><hidden value="${parameters.userLogin.partyId}"/></field>
<field name="roleTypeId" use-when="workEffort==null"><hidden value="CAL_OWNER"/></field>
<field name="statusId" use-when="workEffort==null"><hidden value="PRTYASGN_ASSIGNED"/></field>
<field name="workEffortName" title="${uiLabelMap.WorkEffortEventName}"><text/></field>
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
<field name="workEffortTypeId">
<drop-down no-current-selected-key="MEETING">
<entity-options entity-name="WorkEffortType" description="${description}">
<entity-constraint name="parentTypeId" value="${parameters.parentTypeId}"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="currentStatusId" use-when="workEffort!=null">
<display-entity entity-name="StatusItem" description="${description}" key-field-name="statusId"/>
</field>
<field name="currentStatusId" use-when="workEffort==null"><hidden value="CAL_TENTATIVE"/></field>
<field name="scopeEnumId">
<drop-down no-current-selected-key="WES_PRIVATE">
<entity-options entity-name="Enumeration" key-field-name="enumId" description="${description}">
<entity-constraint name="enumTypeId" value="WORK_EFF_SCOPE"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="estimatedStartDate"><date-time input-method="time-dropdown" /></field>
<field name="estimatedCompletionDate"><date-time input-method="time-dropdown"/></field>
<field name="actualStartDate" use-when="parentWorkEffortId!=null"><display type="date-time"/></field>
<field name="actualCompletionDate" use-when="parentWorkEffortId!=null"><display type="date-time"/></field>
<field name="addButton" use-when="workEffort==null"><submit/></field>
<field name="updateButton" use-when="workEffort!=null"><submit/></field>
</form>
<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="${uiLabelMap.WorkEffortCancelCalendarEvent}"><submit/></field>
</form>
<form name="showCalEvent" type="single" default-map-name="workEffort">
<field name="workEffortName" title="${uiLabelMap.WorkEffortEventName}"><display/></field>
<field name="description" title="${uiLabelMap.CommonDescription}"><display/></field>
<field name="workEffortTypeId">
<display-entity entity-name="WorkEffortType" description="${description}"/>
</field>
<field name="currentStatusId" use-when="workEffort!=null">
<display-entity entity-name="StatusItem" description="${description}" key-field-name="statusId"/>
</field>
<field name="scopeEnumId">
<display-entity entity-name="Enumeration" key-field-name="enumId" description="${description}"/>
</field>
<field name="estimatedStartDate"><display type="date-time"></display></field>
<field name="estimatedCompletionDate"><display type="date-time"></display></field>
<field name="actualStartDate" use-when="parentWorkEffortId!=null"><display type="date-time"/></field>
<field name="actualCompletionDate" use-when="parentWorkEffortId!=null"><display type="date-time"/></field>
</form>
<form name="showCalEventRoles" type="list" list-name="roles"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<entity-and entity-name="WorkEffortPartyAssignment" list="roles" filter-by-date="true">
<field-map field-name="workEffortId" from-field="parameters.workEffortId"/>
</entity-and>
</actions>
<field name="workEffortId"><hidden value="${parameters.workEffortId}"/></field>
<field name="fromDate"><hidden/></field>
<field name="partyId" >
<display-entity entity-name="PartyNameView" key-field-name="partyId" description="${groupName}${lastName} ${firstName} ${middleName}"/>
</field>
<field name="roleTypeId"><display-entity entity-name="RoleType" description="${description}"/></field>
<field name="statusId" use-when="workEffort!=null">
<display-entity entity-name="StatusItem" description="${description}"/>
</field>
</form>
<form name="showCalEventRolesDel" type="list" extends="showCalEventRoles" target="deleteWorkEffortPartyAssign">
<field name="remove" title="${uiLabelMap.CommonRemove}"><submit/></field>
</form>
<form name="addCalEventRole" type="single" target="createWorkEffortPartyAssign">
<field name="workEffortId"><hidden value="${parameters.workEffortId}"/></field>
<field name="statusId"><hidden value="PRTYASGN_ASSIGNED"/></field>
<field name="partyId" position="1"><lookup target-form-name="LookupPartyName" size="10"></lookup></field>
<field name="roleTypeId" position="2">
<drop-down no-current-selected-key="CAL_ATTENDEE">
<entity-options entity-name="RoleType" description="${description}">
<entity-constraint name="parentTypeId" value="CALENDAR_ROLE"/>
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="add" title="${uiLabelMap.CommonAdd}"><submit/></field>
</form>
</forms>