Commit Graph
43 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
holivier 9eaf180a4b Documented: migration to help system using asciidoc files
(OFBIZ-11587)

Add <set field=helpAnchor... in CommonScreens for application where it's
not present. With this commit all OFBiz application help go to the html
generated from asciidoc files
2020-09-28 15:15:04 +02:00
Jacopo Cappellato cbad4d3e22 Fixed: Add missing view permissions checks to various screens. 2019-11-15 19:23:38 +01:00
Michael Brohl 9c40f1988d Improved: Improve Accounting - AR container structure.
(OFBIZ-10469)

This fixes structural differences to make theme styling more consistent.

Thanks Dennis Balkir for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848459 13f79535-47bb-0310-9956-ffa450edef68
2018-12-08 11:53:54 +00:00
Deepak Dixit 1a7aee6685 Improved:Use from-field pattern instead of value=dollor pattern in 'set' element
Apply slightly modified patch from jira issue, fixed some typo (OFBIZ-9607)
Thanks Suraj Khurana and Rohit Rai for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1806326 13f79535-47bb-0310-9956-ffa450edef68
2017-08-26 20:23:40 +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
Deepak Dixit 87601f6aca (OFBIZ-7219) Relocate .groovy files in the accounting component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747746 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 16:54:38 +00:00
Bruno Busco 9e6dd1f56c Replaced PortalPageScreen with the new include-portal-page widget.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1023425 13f79535-47bb-0310-9956-ffa450edef68
2010-10-17 06:44:14 +00:00
Bruno Busco 6aa252df3b Added UiLabels resources loading in Porlets.
This fixes the missing portlet UILabels rendering when accessing the Portal Page Admin in WebTools.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996090 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 07:10:50 +00:00
Erwan de Ferrieres e9ef17a182 Correcting decorators' names, as some screens were used in AR and AP components. This is closing OFBIZ-3641
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931956 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 14:29:28 +00:00
Vikas Mayur 41b9e5f0fe Replaced
<if-has-permission permission="ACCOUNTING" action="_VIEW"/>
with
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930247 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 11:36:59 +00:00
Hans Bakker e237fe0ba6 if menu and portalpage options are mixed, tomahawk did not display correctly in the example component and other places as reported by Bruno in the mailing list. should work now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928131 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 03:39:08 +00:00
Hans Bakker 92e4601342 show portal page names correctly in tomahawk theme
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926908 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 02:59:07 +00:00
Adam Heath b90cb4df78 Fix bad screen definitions, you can't reference a
value(defaultOrganizationPartyId) before it is set.  That variable was
being set by the decorator, which hadn't yet run when the initial
actions were being run for the main screens in these webapps.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918769 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 23:27:42 +00:00
Bruno Busco eecf528cd6 Added a new "PortalPageScreen" common screen. This can be used to include a portalPage wherever needed (showPortalPage.ftl shouldn't be directly used anymore). The screen needs only the portalPageId input parameter.
Used this new "PortalPageScreen" screen in place of all showPortalPage.ftl includes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900156 13f79535-47bb-0310-9956-ffa450edef68
2010-01-17 15:15:14 +00:00
Bruno Busco 342e9cb614 Accounting application
Moved TabBar Menus from the "body" decorator-section to the "pre-body" decorator section.
This makes better the rendering of themes such as Dropping Crumbs.

Removed several redundant <section><widget> tags also

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883139 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 20:14:11 +00:00
Ashish Vijaywargiya 2a7ac0293a Applied patch from jira issue OFBIZ-3209 - Modify AR/AP main screen to be a portal page.
Modify AR/AP main screen to be a portal page. Show list of "Past Due Invoices" and "Invoices Due Soon" in different portlets in AR/AP.

Thanks Anurag for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880795 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 15:27:11 +00:00
Jacques Le Roux 39d105f92f Reverted changes 836044 following Adrian's issue report in https://issues.apache.org/jira/browse/OFBIZ-3206 "Recent Markup Changes Break Layout"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880658 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 08:27:36 +00:00
Jacques Le Roux 5fc931c191 A patch from Bruno Busco "A new droppingcrumbs theme" (https://issues.apache.org/jira/browse/OFBIZ-3156) - OFBIZ-3156
An updated patch to be used to show correctly the tabbars with this theme.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836044 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 22:47:44 +00:00
Anil Patel 90492f6f54 updated menu name to simple and generic. Updated screens using it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@834623 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 19:33:57 +00:00
Anil Patel 52e7a3ad66 Removed extra container around labels. Apply h1 (or h2, h3) style to label instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@834376 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 07:38:24 +00:00
Anil Patel e69b9bc5a2 Removed duplicate definition of CommonPartyDecorator. Added partyDecoratorLocation parameter to ar/ap web.xml file so they can find CommonPartyDecorator.
This issues was discussed on list after r829392 commit in response to patch on OFBIZ-3080.
 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831920 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 15:32:39 +00:00
Jacques Le Roux 88867f30ca A patch from Deepak Dixit "Could not find screen with name [CommonPartyDecorator]." (https://issues.apache.org/jira/browse/OFBIZ-3080) - OFBIZ-3080
Steps to generate error:
1) Go to AP/AR.
2) Select Invoice.
3) Search Invoices.
4) Select an Invoice.
5) Click on Acctg Trans Id

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829392 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 15:49:23 +00:00
Bruno Busco ca9d334eee Part of OFBIZ-3067 - Menus and form widget files location
Accounting component
Renamed accounting/widget/Menus.xml to accounting/widget/AccountingMenus.xml
Renamed accounting/widget/ap/Menus.xml to accounting/widget/ap/ApMenus.xml


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@828855 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 21:17:14 +00:00
Ashish Vijaywargiya 3b1266a187 Applied patch from jira issue OFBIZ-3072 - Consistency on List Batch Payments.
https://demo.ofbiz.org/ar/control/batchPayments screen should have the actions in drop-down for the list as like https://demo.ofbiz.org/control/findInvoices

Thanks Chirag for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@828661 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 11:27:48 +00:00
Ashish Vijaywargiya 50bf262a36 Applied patch from jira issue OFBIZ-2979 - there were a typo - instead of parameter. it would be parameters.
For now jira issue is very slow so I am not able to assign this issue to myself since last 2 hours.
I will close issue by tomorrow.

Thanks Brajesh for your contribution on this.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820259 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 13:09:13 +00:00
Anil Patel 79a0acba3e Reorganized AR screens. Thanks Surya, Sumit for working on it. Patch from OFBIZ-2803.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802334 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08 10:21:28 +00:00
Ashish Vijaywargiya 012b5ab921 Applied patch from jira issue OFBIZ-2699 - Create Payment Batches for Ar Payment
Following thing is covered in this patch:
-- functionality to cancel payment group and expire association with payment. 
Thanks Awdesh & Rishi for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792526 13f79535-47bb-0310-9956-ffa450edef68
2009-07-09 12:24:13 +00:00
Ashish Vijaywargiya e50dbb1796 Applied patch from jira issue OFBIZ-2699 - Create Payment Batches for Ar Payment.
Following things are covered in this patch:
– Add new tab with name overview for payment group.
– Added forms on overview screen. 

Thanks Awdesh for your contribution on this.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792213 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 16:27:51 +00:00
Ashish Vijaywargiya 7c30434958 Applied patch from jira issue OFBIZ-2699 - Create Payment Batches for Ar Payment
Following things are covered in this section:
– Added running total functionality .
– Improvement in existing code and service logic 

Thanks Awdesh, Rishi, Sumit & Anil for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791883 13f79535-47bb-0310-9956-ffa450edef68
2009-07-07 15:57:44 +00:00
Ashish Vijaywargiya 2c2dbf223a Applied patch from jira issue OFBIZ-2699 (Create Payment Batches for Ar Payment)
Thanks Awdesh, Sumit and Rishi for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@790965 13f79535-47bb-0310-9956-ffa450edef68
2009-07-03 16:50:35 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Hans Bakker 041ccc0a7d rename applicationext component to commonext
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@748388 13f79535-47bb-0310-9956-ffa450edef68
2009-02-27 04:05:47 +00:00
Hans Bakker 5192a24e48 introduction of a common component for applications. moved the 2 lines containing party info to this component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@748144 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 13:36:51 +00:00
Marco Risaliti 54e0334ca2 A lot of hardcoded labels cleaning and changes some wrong references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742770 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 22:13:57 +00:00
Marco Risaliti 8ed72242d9 Artifact cleaning on accounting component after recent changes on xsd files (OFBIZ-2137)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737563 13f79535-47bb-0310-9956-ffa450edef68
2009-01-25 18:33:55 +00:00
Hans Bakker ff7759b530 show the component name at the login screen for all components
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@734074 13f79535-47bb-0310-9956-ffa450edef68
2009-01-13 08:47:35 +00:00
Marco Risaliti 70e5c20298 Some missing Italian translations for Accounting component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730738 13f79535-47bb-0310-9956-ffa450edef68
2009-01-02 14:27:45 +00:00
Adrian Crum 647530a6d2 Eliminated some unnecessary nested expressions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@724882 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 20:55:33 +00:00
Vikas Mayur e45be17d5e Misc improvements in AR/AP webapp, part of Jira issue OFBIZ-1668. Thanks Sumit Pandit for this patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655033 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 09:07:28 +00:00
Vikas Mayur 3456d33ced Add Application level menu/tools for AR - Applied patch for OFBIZ-1667 (https://issues.apache.org/jira/browse/OFBIZ-1667), Thanks SumitPandit for this patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654551 13f79535-47bb-0310-9956-ffa450edef68
2008-05-08 15:31:21 +00:00