Commit Graph
16 Commits
Author SHA1 Message Date
Nicolas Malin 7165768251 Implemented: Add a framework method to get main webapp menu with the webapp name
(OFBIZ-10601)

To improve theme management and provide better tools for new themes, we implement a method to obtain the main menu of a webapp.
Instead of just managing a menu, we extend the functionality by offering a method to expose a summary of the webapp, to simplify the navigation.

For this we add a new attribute on webapp definition app-shortcut-screen :

    <webapp name="mywebapp"
            ...
            app-shortcut-screen="component://mycomponent/widget/CommonScreens.xml#ShortcutApp"
            ...
    />

The idea is to define a new purpose screen *Shortcut* that contains what defines a webapp when an action or navigation has been requested. With this screen you can load a menu, a search, a complex description and use all screen powerfulness to resolve what displaying and support by theming

    <screen name="ShortcutApp">
        <section>
            <actions>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
            </actions>
            <widgets>
                <decorator-screen name="ShortcutDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <include-menu name="MyShortcutAppBar" location="component://mycomponent/widget/CommonMenus.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

Each component are self-sufficient to define what shortcuts to display without framework change or knowledge about other component.
Each theme can implement and customize the display rendering at will.

To illustrate an example of implementation we set sub menu for each webapp defined on applications and exploit it on bluelight theme.

Thanks for Dennis Balkir, Jacques Leroux, Leila Mekika and Julien Nicolas for their involvement
2021-01-15 08:56:23 +01:00
Aditya Sharma 1965e3a39a Improved: Activate / Finish EmplPositionType ValidResponsibilities
(OFBIZ-11045)
Most of code / form / screen already exist to manage EmpPositionType, except

1. menu item
2. screen menu fields
Fixed  wrong entity name in the entityCondition prepared in ListValidResponsibilities form

Thanks Olivier Heintz for reporting and providing the patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868911 13f79535-47bb-0310-9956-ffa450edef68
2019-10-25 08:51:03 +00:00
Jacques Le Roux ddb43a6493 Fixed: field emplFromDate is forgot in PayHistory entity
(OFBIZ-11028)

Arpit Mor: steps to regenerate:
    Login to the URL: https://demo-trunk.ofbiz.apache.org/humanres/control/main
    Click on Employments
    Click on New Employments
    Click on Create
Actual: Error message is displayed.

Olivier Heintz: employment is associated with PayHistory, and there is a problem 
in PayHistory entity definition in OFBiz,
In PayHistory, the field fromDate from Employment is confused with fromDate 
about the current record.
A Employment can have multiple PayHistories and should have multiple
because PayHistory should show history of Pay  for a employment  !
It's necessary to have a field emplFromDate (to have the complete employment 
primaryKey).
When modifying a PayRecord the current should be expire and a new one should 
be created.

Thanks: Arpit Mor for report at OFBIZ-10969 and Olivier Heintz for the fix

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1859571 13f79535-47bb-0310-9956-ffa450edef68
2019-05-20 17:14:43 +00:00
Jacques Le Roux c8ba932772 Fixes a "typo" in last commit for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
We used targetNamespace (should only be used in schema) instead of xsi:schemaLocation



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749634 13f79535-47bb-0310-9956-ffa450edef68
2016-06-22 05:58:26 +00:00
Jacques Le Roux 89212904bd Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
This is the 2nd step: puts back the original names, so it will be transparent for remaining references in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749489 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:37:47 +00:00
Jacques Le Roux 4931db1ed9 Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061 by replacing xsd files references in xml files by -ns.xsd files and removing the concerned xsd files
This is a 1st step, in a 2nd I will put back the original names, so it will be transparent for remaining reference in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749488 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:14:16 +00:00
Hans Bakker d3697aee42 show payrol history on the HRM employee profile screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1190181 13f79535-47bb-0310-9956-ffa450edef68
2011-10-28 07:19:53 +00:00
Hans Bakker 6ff0e4f1f8 move the public holiday definition from scrum to the HR component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170129 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 11:57:22 +00:00
Hans Bakker 6c2167ab00 improve some more perfreview forms
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059778 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 07:50:23 +00:00
Hans Bakker 63b9ad9b44 some more improvements to the peformance review item list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059556 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 13:39:29 +00:00
Jacopo Cappellato 5bdda5c324 Fixed a series of bugs (parameters not properly passed to screens and forms) that were affecting the "Performance Review" screens of humanres.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059340 13f79535-47bb-0310-9956-ffa450edef68
2011-01-15 14:13:44 +00:00
Hans Bakker cd5091ae6d revert 1058891, agreed with jacopo so he can implement a better solution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059271 13f79535-47bb-0310-9956-ffa450edef68
2011-01-15 08:13:59 +00:00
Hans Bakker 6afa93d849 made the employee review item work, corrected a completely wrong entity definition prefreviewitem, services now work again and added new type data. Added buttons to be able to select reveiw and item list NOTE: This change needs recreating of the PerfReviewItem index, the fields and format did not change, just the indexing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058891 13f79535-47bb-0310-9956-ffa450edef68
2011-01-14 08:40:01 +00:00
Erwan de Ferrieres 4dcd8b03af Updates on menus and uilabels in the leave management screens (HumanRes)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901119 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 10:08:45 +00:00
Jacques Le Roux ef2c935618 A patch from Pradeep Ruhil "HR Leave Enhancement ." (https://issues.apache.org/jira/browse/OFBIZ-2938) - OFBIZ-2938
In this patch we are doing enhancement in HumanResource Leave Module. 
Initially we can only create new leave application for a partyId. 
But there was not functionality available for approval of leave. 
So in this patch we have given functionality for Leave approval as well as leave creation. 
+ A better French label


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831249 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 10:07:09 +00:00
Bruno Busco dc602567c9 Part of OFBIZ-3067 - Menus and form widget files location
Humanres component
Renamed humanres/widget/Menus.xml to humanres/widget/HumanresMenus.xml


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829125 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 17:00:07 +00:00