Commit Graph
70 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 21077ac056 Documented: remove docbook help files for humanres (OFBIZ-11587)
All files have been migrated to asciidoc format and help link now point
to the html file generated from the asciidoc files

In the global Help Docbook index tree, remove all points about
humanres and add a short page with a link to the new help
2020-06-19 17:23:29 +02:00
James Yong c0e527efb2 Improved: Headerize external script in multi-block html template (OFBIZ-11741)
Allow external scripts within the multi-block html template, to be rendered
within the html head tag, when a new attribute data-import is set to “head”

Thanks: Jacques for review
2020-05-30 12:00:21 +08:00
James Yong 2c62637752 Improved: Apply multi-block attr to each application (OFBIZ-11706)
For Accounting, Content, HR, Manufacturing.
2020-05-15 17:43:38 +08:00
Jacopo Cappellato cbad4d3e22 Fixed: Add missing view permissions checks to various screens. 2019-11-15 19:23:38 +01:00
Jacques Le Roux 9398f6770e Improved: Make Create Menu tab bar for Employee Position consistent
(OFBIZ-8190)

Adds a create Employee Position tab bar in the main decorator to maintain the 
consistency throughout the tab bar of Employee Position.

Thanks: Avnindra Sharma for the report and patch, Devanshu Vyas for testing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867695 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 07:43:16 +00:00
Jacques Le Roux 579f532228 Improved: Make Create Menu tab bar for Employee consistent
(OFBIZ-8189)

Adds a create Employee tab bar in the main decorator to maintain the consistency 
throughout the tab bar of Employee.

Thanks: Avnindra Sharma for report and patch, Devanshu Vyas for test

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867688 13f79535-47bb-0310-9956-ffa450edef68
2019-09-29 06:58:47 +00:00
Jacques Le Roux cf0c677e10 Improved: Clean images, among them logos, in all locations used
(OFBIZ-10128)

Fix my previous commits, there is no themes webapp so no URL at 
/themes/common/webapp/images/ofbiz_logo.png
It's only images/ofbiz_logo.png


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820978 13f79535-47bb-0310-9956-ffa450edef68
2018-01-12 12:56:30 +00:00
Jacques Le Roux b964875337 Improved: Clean images, among them logos, in all locations used
(OFBIZ-10128)

The ofbiz_logo.png is now in theme. This is only the framework part. 
I have also made change in theme but I need to review again and perhaps create 
a patch for others to review...
Note: testUpdatePartyGroup is OK

Then I'll also rename the logo in site to use the same name before maybe
referring to svn trunk repo to use only 1 file everywhere, same for the .ico
file

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1820862 13f79535-47bb-0310-9956-ffa450edef68
2018-01-11 11:05:26 +00:00
Jacques Le Roux 95b17d4d23 Improved: The main logo in screen upper part shows distorted
(OFBIZ-9990)

Fixes this issue in Tomahawk and Flat Grey themes by using ofbiz_logo.png, 
instead of the old logo deprecated ofbiz_logo.gif 

While at it use the same logo everywhere it's possible. It was needed for links 
to http://ofbiz.apache.org/images/ofbiz_logo.gif which no longer exists 
(actually seems only used for tests so could stay like that but better not refer 
to it anyway)

Also use this logo for Bluelight theme where it fits. 

It could not be used in Rainbow themes because they are using a Scalable Vector 
Graphics file (ofbiz-white.svg) that can't be replaced by the new png logo file
BTW this file still uses a TM symbol instead of a ®

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816897 13f79535-47bb-0310-9956-ffa450edef68
2017-12-01 18:45:50 +00:00
Deepak Dixit 88493836bc Improved: Moved jquery related js/plugins from images to common-theme webapp and made changes accordinlgy. (OFBIZ-5776)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809389 13f79535-47bb-0310-9956-ffa450edef68
2017-09-23 10:41:28 +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
Divesh Dutta 738a12bec1 Improvement: Miniland code readability and consistency improvements
(OFBIZ-8744) (OFBIZ-8745) (OFBIZ-8746) (OFBIZ-8748) (OFBIZ-8829) (OFBIZ-8830) (OFBIZ-8907) (OFBIZ-8908) (OFBIZ-8924) (OFBIZ-8925) 

Thanks: Ankush Upadhyay , Sega patidar , Abhijeet Ashapure for your patches.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768219 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 14:14:04 +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 e929d179d8 (OFBIZ-7228) Relocate .groovy files in the party component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747770 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 18:39:22 +00:00
Deepak Dixit 080fb8e5dc (OFBIZ-7224) Relocate .groovy files in the humanres component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747757 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 17:28:48 +00:00
Jacques Le Roux f72e5adba2 A patch from Pierre Smits for <<relocate .ftl files in the humanres component>> https://issues.apache.org/jira/browse/OFBIZ-6816
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736866 13f79535-47bb-0310-9956-ffa450edef68
2016-03-28 11:07:52 +00:00
Jacques Le Roux 747a4a3154 This is a major update of jQuery and related, it contains:
jquery-1.8.2 to jquery-1.10.2 which implies using jquery-migrate-1.2.1 for plugins compatiblities
    jquery-ui-timepicker-addon-1.0.5 to jquery-ui-timepicker-addon-1.4.3 (using min now, better i18n)
    jquery-ui-1.9.0 to jquery-ui-1.10.3
    removes jquery.ui.datepicker.js now integrated in jquery.ui
    jquery.hotkeys-0.7.9 to jquery.hotkeys-0.8
    jquery.maskedinput-1.2.2 to jquery.maskedinput-1.3.1
    jquery.validate 1.10.0 to 1.11.1 
        I never realised how much efforts have been put in this plugin!  
        I fixed an issue in JsLanguageFilesMapping generation
        I removed the messages_ptbr.js and messages_ptpt.js files and the related conundrum in JsLanguageFileMappingCreator.java
        untested, found not use cases OOTB
    jquery.jcarousel ?(2006) to 0.3.0 (2013)
        untested, found not use cases OOTB
    jquery.flot 0.7 to 0.8.2 (lot of changes, still works)
        removes useless flotpie.ftl 
        removes empty flotr folder
    jquery.mobile-1.1.0-rc.1 to jquery.mobile-1.4.0
        untested, found not use cases OOTB
    jquery.cookie to jquery.cookie-1.4.0    


Removes all useless/redundant js files (not only jQuery unused old versions)
    notably removes all under images/jquery/ui/development-bundle/ui
    removes now useless GooglemapMarkers.js and GooglemapSimple.js

Flat Grey application.js
    moves jQuery(document).ready(function() at bottom (spotted in Chrome console) 
    
css
    I did not find much issues, I spotted the title bar of the lookups, but got it fixed after some efforts.    

Issues:
    Imagemanagement:  I got issues while testing, actually I'm not quite qure how it works, even in stable demo. It should be validated again. I commit nevertheless my changes:
        moves js part from product to images component
        removes useless calls to js files (mostly in imagemanagement, but not only)
        renames jquery.min.js to sizzle.min.js. 
        Inside sizzle.min.js, updates the Dojo part to v1.10.17-pre and removes the jQuery part
        changes to use ofbizContentUrl macro for generating js calls
        jquery.rotate.js NOT! It's jQueryRotateCompressed.js http://markmail.org/message/dit3dlh3ph4jnenp
        Got ERROR 22001: A truncation error was encountered trying to shrink VARCHAR 'D:\projectsASF\ofbizClean\framework\images\webapp\images\pro&' to length 100.  I opened OFBIZ-5501 for that
    I tried to update jstree  to jstree 3 but gave up. I let the jquery.jstree-3.0.0-beta3 files in place in case someone would give it a chance...
    
Not related but while a it:
    removes <!--flot example requests--> from birt controller (moved recently to example component)
    
    

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1559769 13f79535-47bb-0310-9956-ffa450edef68
2014-01-20 16:27:09 +00:00
Hans Bakker 98b44216d8 use different symbols in the HR organization tree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1178718 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 08:19:49 +00:00
Hans Bakker 19d8452c34 replace the HR company tree with a jquery version
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1159056 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 06:39:04 +00:00
Marco Risaliti 5a2e780587 accounting has dependency on projectmgr (OFBIZ-3564)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1128623 13f79535-47bb-0310-9956-ffa450edef68
2011-05-28 12:24:25 +00:00
Marco Risaliti d0f6fd0f99 WebPosUiLabels references in applications (OFBIZ-3569)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1128468 13f79535-47bb-0310-9956-ffa450edef68
2011-05-27 21:31:11 +00:00
Marco Risaliti 3778626ea6 WebPosUiLabels references in applications (OFBIZ-3569)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1128464 13f79535-47bb-0310-9956-ffa450edef68
2011-05-27 21:26:48 +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
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
Adrian Crum 7ed7db624b Fixed a bug in HR component - it was trying to use a properties file from the WebPOS component - which isn't loaded by default.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055744 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 04:41:23 +00:00
Hans Bakker 069351bf7c use the default organization party as the toplevel company in the HR department tree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1035121 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 02:43:54 +00:00
Erwan de Ferrieres 3cb7bbcbd6 Adding missing decorator when willing to send an email from the HumanRes profile page
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932376 13f79535-47bb-0310-9956-ffa450edef68
2010-04-09 12:13:38 +00:00
Vikas Mayur a2added370 Replaced
<if-has-permission permission="PARTYMGR" action="_VIEW"/>
with
<if-service-permission service-name="partyBasePermissionCheck" main-action="VIEW"/>



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930248 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 11:45:14 +00:00
Hans Bakker afbdeab656 moved the helpscreens into the framework: a first step. core parts of the content manager to follow. Removed the references to the help screens in confluence
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903589 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 10:09:49 +00:00
Bruno Busco 964588402b Content and Humanres component
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@883769 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 16:30:31 +00:00
Jacques Le Roux 94f20782fe Hans noticed this line and on dev ML said "If the webpos component is not loaded the party profile screen will not
display anymore"
I wonder why this line has slipped in, I guess another collateral effect of C/P
Removed!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831190 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 03:56:04 +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
Jacques Le Roux 89697da742 merged by hand from Simranjeet Singh's HR_Training_improvements.patch in " Enhancements in Trainings under HR module" (https://issues.apache.org/jira/browse/OFBIZ-2531) - OFBIZ-2531
Please see this issue for more, it's enough complicated as is...
In one word this patch was waiting comments for near a month and https://issues.apache.org/jira/browse/OFBIZ-3046 decided me to act!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@826266 13f79535-47bb-0310-9956-ffa450edef68
2009-10-17 15:05:32 +00:00
Jacques Le Roux e0c84350be A patch from Anil Soni "Improvements in HR module." (https://issues.apache.org/jira/browse/OFBIZ-2604) - OFBIZ-2604
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811838 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 17:13:04 +00:00
Hans Bakker 8ee21f614a commited patch of OFBIZ-2531 with minor changes, however added initial help screens, initial commit need some more work on the permissions for admin and employee
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802308 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08 07:20:30 +00:00
Adrian Crum 397595a15d Removed deprecated CSS styles from humanres component - https://issues.apache.org/jira/browse/OFBIZ-2525.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778809 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 17:43:32 +00:00
Ashish Vijaywargiya 82e1b52445 Applied patch from jira issue OFBIZ-2205 (Implemented recruitment in HR module).
I am committing the recently uploaded patch.
As it looks lot better from the initial one.

It may happen that I have missed some small things(It was around 5th or 7th review from my side) ... although those can be handled as reported in future.

At the end thanks to Abhinav Vaid for his contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@776961 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 06:02:38 +00:00
David E. Jones 70f8da92bb Moved logo and icon images back to images component and removed from everywhere else; all references to these should be to there only now; fixes issue with logo in ecommerce and other little things
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766426 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 06:12:55 +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 ff720d540e A lot of hardcoded labels cleaning and changes some wrong references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@746049 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 23:08:30 +00:00
Hans Bakker ec47bc0b00 make hyperlink from empl position to type move paygrades to settings
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@738484 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 13:43:45 +00:00
Hans Bakker 8fa5048c35 some display enhancements and showing function keys after new employment is created
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@738377 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 06:22:27 +00:00
Marco Risaliti eeb2b0c785 Artifact cleaning on humanres component after recent changes on xsd files (OFBIZ-2137)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@738249 13f79535-47bb-0310-9956-ffa450edef68
2009-01-27 21:25:52 +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