Commit Graph
24 Commits
Author SHA1 Message Date
Jacques Le Roux 49dbd2afcb Improved: Create 'New Request' button should be removed from create new request screen in Order the component. (OFBIZ-12121)
Thanks: Shubham Choudhary
2021-01-24 18:14:30 +01:00
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
Pierre Smits 5fac98022e Improved: quote menu
(OFBIZ-11715)

updated: QuoteTabBar - simplified labels
updated: moved 'Edit quote' menu item to QuoteSubTabBar
updated: reordering of menu-items of QuoteTabBar
updated: various UiLabels used by menu-items in QuoteTabBar
2020-05-24 14:34:03 +02:00
Suraj Khurana 443bac5d8f Improved: Added support for Inventory (Supply) Allocation Planning.
(OFBIZ-10518)
Thanks Deepak Nigam for initiating this feature and providng the patches, Arun Patidar for review and Swapnil Shah for design discussions.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858270 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 13:05:30 +00:00
Jacques Le Roux 6ed37e208c Improved: Create New Quote button is duplicated on View Quote page
(OFBIZ-9318)

Steps to regenerate:
1. Go to Order component 
 (https://localhost:8443/ordermgr/control/main)
2. Click on Quotes submenu 
 (directing to https://localhost:8443/ordermgr/control/FindQuote)
3. Click on Find button.
4. Click on any quoteId 
 (directing to https://localhost:8443/ordermgr/control/ViewQuote?quoteId=CQ0001)
5. Create New Quote button is duplicated.

Problem:
1. "ViewQuote" request directs to "ViewQuote" screen in QuoteScreens.xml.
2. On ViewQuote screen, it includes "QuoteSubTabBar" from OrderMenus.xml.
3. "QuoteSubTabBar" has a "Create New Quote" button.

But as with OFBIZ-7841, to make it consistent Create New Quote button is added
 to menu bar.

Solution:
Removed the button to avoid redundancy.

Thanks: Aditya Sharma

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791804 13f79535-47bb-0310-9956-ffa450edef68
2017-04-18 16:14:49 +00:00
Michael Brohl 37d3c8bb32 Improved: Consistent menu names
(OFBIZ-8118)(OFBIZ-8122)(OFBIZ-8123)(OFBIZ-8124)(OFBIZ-8125)(OFBIZ-8126)(OFBIZ-8127)(OFBIZ-8128)(OFBIZ-8129)

Menu names should be in camel case to maintain consistency. I've slightly modified the provided patch to eliminate names with "-" or all lower case also.

Thanks: Tanmay Muley for reporting and providing the patches.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1760059 13f79535-47bb-0310-9956-ffa450edef68
2016-09-09 16:11:55 +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
Pranay Pandey 3fd815dd4e [OFBIZ-7381] Fixing a typo in 'requestitems' target from order menu removing not required "/" before the target. Thanks Chandan Khandelwal for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749016 13f79535-47bb-0310-9956-ffa450edef68
2016-06-18 13:33:41 +00:00
Deepak Dixit 21b8417edd (OFBIZ-5868) Applied patch from jira issue.
============================================================
Currently the View Profit overview is only visible when the quote has the status 'QUO_CREATED'. It should be so that the user can see the profit overview irrespect of the the status.
============================================================
Thanks Pierre Smits for reporting the issue and Mohammad Kathawala for patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1735727 13f79535-47bb-0310-9956-ffa450edef68
2016-03-19 06:16:18 +00:00
Deepak Dixit 1151e3e65c (OFBIZ-6107) Applied patch from jira issue.
===========================================================
Currently the quote report (or print) opens in the same 
window. This should be in a new window(target = _BLANK)

Thanks Pierre Smits for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1715494 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 10:39:32 +00:00
Jacques Le Roux ede1994465 A patch from Leon for "NPE thrown out while rendering disabled menu item" https://issues.apache.org/jira/browse/OFBIZ-5451
The method "renderLink" of new class MacroMenuRenderer calls the WidgetWorker.determineAutoLinkType. When menuItem.getDisabled() is true, the link target will be set to null and NPE occurs.

jleroux: This was related with r1517353 and r1537833. The Leon's patch fixes r1517353 and this commits also reverts r1537833


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1553887 13f79535-47bb-0310-9956-ffa450edef68
2013-12-28 18:55:53 +00:00
Jacques Le Roux 9f59f8f0cc A temporary workaround which removes "disabled-style="disabled" in the createOrder menu item condition (in ViewQuote)
The only effect is to remove the disabled item

This is due to r1517353 which introduced a NPE in MacroMenuRenderer.java



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1537833 13f79535-47bb-0310-9956-ffa450edef68
2013-11-01 06:14:09 +00:00
Jacques Le Roux c7c772f8fc A patch from Deepak Dixit for "Application Menu items should be link not hidden form." https://issues.apache.org/jira/browse/OFBIZ-4913
Application menu item should be link not hidden form. As if its hidden form then you can not open it in new tab. 
Default menu item link type auto, and its create an hidden for for link if controller request call an event, but in menu item this should be link.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1499918 13f79535-47bb-0310-9956-ffa450edef68
2013-07-05 06:57:03 +00:00
Adrian Crum 3dcb375095 Added notes to quotes. Patch contributed by Anne Jessel (https://issues.apache.org/jira/browse/OFBIZ-4370) with some changes by me.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1160402 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 19:47:58 +00:00
Hans Bakker 39408b7951 add quoteterm fields to be the same as ordeterm fields, add maintenance screens to the quote, copy quoteterms to orderterms when creating order from quote
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1067840 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 01:56:53 +00:00
Adam Heath ac2299c50e Fix a bunch of no final newline issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965918 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:21 +00:00
Bruno Busco 644ca97f8c OFBIZ-3516
Fixed wrong screenlets display due to a no-clear style in the menu.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922800 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 09:24:54 +00:00
Bilgin Ismet Ibryam cd3ec88938 Fixed "create quote from request" link. Reported in user list by James
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909281 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 07:53:01 +00:00
Erwan de Ferrieres 5500881d9d Adding and correcting some French uiLabels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899996 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 17:15:29 +00:00
Erwan de Ferrieres f78ec10ac6 Wrong style was used for a subtabbar in rev. 893582 (was not a button bar as it was with the ftl file)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@895593 13f79535-47bb-0310-9956-ffa450edef68
2010-01-04 11:05:06 +00:00
Erwan de Ferrieres c9397b1c57 Removing a ftl menu file to have all the items complying to the XML menu style and creating the corresponding sub menu for the viewQuote screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893582 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 17:36:54 +00:00
Bruno Busco df78c784c8 Part of OFBIZ-3067 - Menus and form widget files location
Order component
Renamed order/widget/ordermgr/Menus.xml to order/widget/ordermgr/OrderMenus.xml


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