Commit Graph
736 Commits
Author SHA1 Message Date
Jacques Le Roux 274a420596 Fixes an issue where externalKeyParam was not escaped in link so was useless (this is only in .ftl files)
Actually the right thing to do should be to work on migrating all freemarker templates in backend to widgets and using target-type="inter-app" for those. I know Adrian has opened a Jira for that, next task in my TODO list. 
Without this effort we will never be able to style the backend uniformly, notably in custom projects...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1552149 13f79535-47bb-0310-9956-ffa450edef68
2013-12-18 23:00:57 +00:00
Jacques Le Roux 017010e346 A, directly sent to me, Olivier Heintz's patch which completes the work done by Adrian at r1546891:
>>> Moved web access authorization code from the Flat Grey visual
>>> theme to LoginWorker.java. This change needs to be copied to
>>> other visual themes as well.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1549981 13f79535-47bb-0310-9956-ffa450edef68
2013-12-10 21:52:57 +00:00
Adrian Crum 63462fa908 Added a new attribute to the ofbiz-component.xml <webapp> element - access-permission. It is used to specify an explicit permission to allow access to the web application, instead of the implied permissions specified in the base-permission attribute (which causes unpredictable behavior).
Also moved web application authorization code from the Flat Grey visual theme to LoginWorker.java. This change needs to be copied to other visual themes as well.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1546891 13f79535-47bb-0310-9956-ffa450edef68
2013-12-02 04:19:48 +00:00
Hans Bakker 834c6ac2d8 revert of unwanted commit, sorry!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535287 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 06:42:34 +00:00
Hans Bakker 45011c0ed1 reorganizing of files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535286 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 06:39:36 +00:00
Adrian Crum 02b12a3586 Use the new URL generation classes to replace the hard-coded servlet path in the Flat Grey visual theme.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535127 13f79535-47bb-0310-9956-ffa450edef68
2013-10-23 19:31:52 +00:00
Jacques Le Roux 23be78e01b I missed this one in r1519245
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1529688 13f79535-47bb-0310-9956-ffa450edef68
2013-10-06 20:57:40 +00:00
Adrian Crum 3e6800f9c6 Small fix for Flat Grey theme - float button-bar form elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1517890 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 17:14:51 +00:00
Adrian Crum 2c4a08ac5b Fix sort column styling in Flat Grey theme.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1495301 13f79535-47bb-0310-9956-ffa450edef68
2013-06-21 07:21:47 +00:00
Jacques Le Roux a07f94c3a6 A patch from Olivier Heintz for "Portal page personalization is not working" https://issues.apache.org/jira/browse/OFBIZ-5189
Two simples errors after last change from FastList to standard java List :
1) go to example component / Dasboard 
1.1) click on edit for one page
Screen is blocked
reason : 
{code}
                    for (GenericValue portalPage : portalPages) {
                        cond = EntityCondition.makeCondition(UtilMisc.toList(
                                EntityCondition.makeCondition("ownerUserLoginId", EntityOperator.EQUALS, userLoginId),
                                EntityCondition.makeCondition("originalPortalPageId", EntityOperator.EQUALS, portalPage.getString("portalPageId"))),
                                EntityOperator.AND);
                        List <GenericValue> privatePortalPages = delegator.findList("PortalPage", cond, null, null, null, false);
                        if (UtilValidate.isNotEmpty(privatePortalPages)) {
                            portalPages.remove(portalPage);
                            portalPages.add(privatePortalPages.get(0));
                        }
                    }
{code}
code iterate on a list and modify it, I don't know how it could work before ;-)
I propose to use an other list on iterate 

2) on appbarclose.ftl for tomawak theme there is
{code}
    <#assign portalPage = delegator.findOne("PortalPage", findMap, true)>
{code}
when you click to "revert to original" in dasboard screen
{code}
Error on line 45, column 5 in component://tomahawk/includes/appbarClose.ftl delegator.findOne("PortalPage", findMap, true) is undefined. It cannot be assigned to portalPage The problematic instruction: ---------- ==> assignment: portalPage=delegator.findOne("PortalPage", findMap, true) [on line 45, column 5 in component://tomahawk/includes/appbarClose.ftl] -
{code}
2.1) to see the error, modify ExampleMenus.xml and change menu-item name from "Dasboard" to "Dasboard1" 
2.2) go to example / dashboard and edit one page
2.3) click to "revert to original"
I propose to add ?if_exists 

One other bug in portal page personalization.
When trying to delete portlet or column in portal page, there is an error because in delete service, cache is used to read data before remove.

Correction proposed is to remove use-cache="true"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1493352 13f79535-47bb-0310-9956-ffa450edef68
2013-06-15 13:40:42 +00:00
Adam Heath 64b3c95c45 FIX: Start using ${externalKeyParam} everywhere consistently. I only
did what was included by the main ordermgr view order screen.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482065 13f79535-47bb-0310-9956-ffa450edef68
2013-05-13 20:05:47 +00:00
Jacques Le Roux 7f9fe782e3 Fixes "Flatgrey visual theme does not work" https://issues.apache.org/jira/browse/OFBIZ-5096 reported by Wai and pointed out by Adrian in dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1420019 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 07:31:40 +00:00
Jacques Le Roux 5d645e4810 This can't work for now because in r1416358 I removed the yuicompressor from OFBiz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416364 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 07:30:22 +00:00
Adrian Crum 91e7eba820 Minor improvement to the Flat Grey theme - style JQuery so it matches the rest of the screen. This still needs the ui-icons*.png files updated, but I don't have the tools to do that.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407740 13f79535-47bb-0310-9956-ffa450edef68
2012-11-10 10:21:35 +00:00
Adrian Crum 8973e51b8c Flat Grey theme fixes - added missing images, removed JQuery font.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407417 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 10:38:48 +00:00
Adrian Crum ac537e5ac7 Flat Grey theme enhancement - minify JS and CSS files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407413 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 10:22:47 +00:00
Sascha Rodekamp 72318d523a Upgrade jQuery UI to Version 1.9
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1398771 13f79535-47bb-0310-9956-ffa450edef68
2012-10-16 12:57:46 +00:00
Jacques Le Roux 1b1731dca2 A patch from Budianto Lie for "Calendar icon cropped" https://issues.apache.org/jira/browse/OFBIZ-5036
Calendar icon showed cropped in the right side. In theme droppingcrumbs, bluelight, bizznesstime using (at least) Chrome, FF and IE8 were OK.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1387076 13f79535-47bb-0310-9956-ffa450edef68
2012-09-18 09:53:31 +00:00
Sascha Rodekamp 5b8548563a Update jQuery to Version 1.8 and jQuery UI to Version 1.8.22
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1372751 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 07:21:15 +00:00
Adrian Crum c4d1e283a1 Small enhancement to the Flat Grey visual theme - make button-col controls a little smaller so they don't expand the table size so much.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1361685 13f79535-47bb-0310-9956-ffa450edef68
2012-07-15 11:02:51 +00:00
Jacques Le Roux 9997135a29 A patch from Olivier Heintz "Help links not working after lookup.js refactoring, needs to change lookup-popu2 to lookup-popu1" https://issues.apache.org/jira/browse/OFBIZ-4964
Help button is not working, currently it's a lookup-popup2 which is called and this method has not the same number of parameters than the call.
In lookup.js, I have see that lookup-popup1 has the correct number of parameters, so in the join patch I have change the lookup-popup2 to lookup-popup1

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1360711 13f79535-47bb-0310-9956-ffa450edef68
2012-07-12 14:54:14 +00:00
Adrian Crum a17298a06e Removed unused "authz" security code - https://issues.apache.org/jira/browse/OFBIZ-4839.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1360283 13f79535-47bb-0310-9956-ffa450edef68
2012-07-11 16:34:26 +00:00
Sascha Rodekamp 16c1fd47d9 Upgrade the datetime picker to version 1.0 and remove the old libraries
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1351638 13f79535-47bb-0310-9956-ffa450edef68
2012-06-19 10:11:59 +00:00
Jacques Le Roux 87d84ea506 Adrian suggested to removes all class="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340386 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:35:12 +00:00
Adam Heath cec82fce00 DEPRECATION: themes/tomahawk: findByPrimaryKey variants replaced with findOne
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337687 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:22:20 +00:00
Jacques Le Roux cbc7317064 A modified additional patch from Wai "widget <image> tag to use css for resizing" https://issues.apache.org/jira/browse/OFBIZ-4768
Changes in the relevant css files were not made. As a result the spinner is showing a horizontal repeat. This has been corrected.
Tomahawk themes/tomahawk/webapp/tomahawk/images/spinner.gif is now removed framework/images/webapp/images.spinner.gif will be used by all themes in order for the same consistent spinner image to be used.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1328738 13f79535-47bb-0310-9956-ffa450edef68
2012-04-21 21:42:19 +00:00
Jacques Le Roux f802ba7c83 Keeps consistent with other themes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308926 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 14:20:05 +00:00
Jacopo Cappellato 7e8d52d3bf Fixed path to svninfo.ftl file that was not working after the switch to freemarker 2.3.19
Thanks to Scott for the solution.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308817 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 11:09:54 +00:00
Ashish Vijaywargiya b0e153006c Bug fix, Applied patch from jira issue - OFBIZ-4734 - User behaviour issue on auto-completer.
Currently if user type in auto-completer text box and if matches found then list display as auto-completer result list but if no matches found then user didn't know that result will come or not, even no matches found.

Change behaviour is when user type in text box then spinner (ajax loader image) shows wchich tells user that search is in progress.
If matches found or not found spinner disapperars and reult/ no result message listed in auto-completer relsult list.
Now user won't see any abnormal behaviour at ui.

Added spinner image for the auto-completer request.
Also added the "No Records Found" message if no matches found for the auto-completer search.

Thanks Nitesh, Deepak and Rishi for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1303062 13f79535-47bb-0310-9956-ffa450edef68
2012-03-20 18:08:05 +00:00
Ashish Vijaywargiya 34141f79f8 Bug fix, Applied patch from jira issue OFBIZ-4735 - User behaviour issue on Lookup.
Currently if user perform search or use pagination in lookup and if matches found then list display but if no matches found then user didn't know that result will come or not, even no matches found.

Change behaviour should be when user perform search or use pagination then spinner (ajax loader image) shows which tells user that search is in progress. If matches found or not found spinner disappears.
Now user won't see any abnormal behaviour at ui.
Thanks Deepak, Rishi & Anil Gupta for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1303045 13f79535-47bb-0310-9956-ffa450edef68
2012-03-20 17:51:40 +00:00
Jacques Le Roux c6288f1d46 A patch from Wai "widget <image> tag to use css for resizing" https://issues.apache.org/jira/browse/OFBIZ-4678
Summary: The purpose of this patch is to address the following:
1. Provide a standardized set of image width and height specs for page layout in ofbiz. This gives ofbiz a uniform look throughout as it applies to image display.
2. Preserve the aspect ratio of the image when using these standardized image sizes.
3. One place to make styling modifications (eg. css file).
4. Decouple styling from code (eg. java,ftl,xml,html,jsp,etc).

Regarding including the real image size, the width/height attributes in <img> specifies the boundary of the image when shown on the page. If you need to specify the real size of the image, the server code would have to perform the determination. Afterwards, you can include the actual dimensions of the image in the title attribute of <img>

Details:
Manually specifying the image width and height does help with preserving the layout of a page regardless of the image size to be shown. The challenge with this method is that the image shown on the page in question may be distorted if the aspect ratio of the image differed from that of the width and height attributes of <img>. This basically forces the person uploading the image to be more vigilant about image aspect ratios.
The purpose is to harmonize on the display size of images with a standardized set of width/height constraints in which an image must fit and preserve the aspect ratio of images.

Currently the source files (eg. ftl, xml) either manually specifies the width or height of a displayed image (ie widget <image> and html <img> tag). The problem with specifying only one constraint is that an image can affect the layout of the page if the user uploads an image where the aspect ratio could be large.

Some ftl and xml files specify both the width and the height. The problem with this is that if the aspect ratio of the image in question does not match that of the width and height of the <img> tag, the image would be displayed distorted.

The solution was to create a standardized set of CSS styles that both configure the displayed image size and preserve the image aspect ratio (eg. thumbnail size, medium size and large size). Of course, the developers can further define or modify the styles to suit their need.

By using CSS, one can change the size of displayed images without having to tamper with the ftl and/or xml files. This helps to reduce potential bugs that come with modifying the ftl and xml files. The existing way of doing things is to go through each ftl or xml file in question and manually modify the width and/or height of the <image> and/or <img> tag.

The question about the "border" around images. If you do not wish to have a border around the image, just remove it from the CSS style. It's that easy No need to change anything else. Ie. configuration to the image is done on the CSS style and not on the <image>, <img> tag.

NB: The current patch does not apply to all displayed images. I have only made appropriate modifications to widget <image> and html <img> tags that have either specified the width and/or height. There are numerous <image> and <img> tags spread all over the project that do not specify dimensions. I would have to modify them as I encountered them when I could see where and how they are displayed on the screen. Note that these images would not be affect by this patch.

jleroux: despite my efforts I was not able to check all screens. But I think it's ok

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1296782 13f79535-47bb-0310-9956-ffa450edef68
2012-03-04 11:54:13 +00:00
Adrian Crum b831b4fefb Fixed tab-bar style in Flat Grey visual theme.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1293237 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 13:07:20 +00:00
Jacques Le Roux bf209ac4f3 A patch from Leon https://issues.apache.org/jira/browse/OFBIZ-4677 "Trivial modification to themes/tomahawk/includes/appbarClose.ftl"
If you use tomahawk as default theme and open the Root application (mounted to '/'), the "passwordChange" link is wrong.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1240835 13f79535-47bb-0310-9956-ffa450edef68
2012-02-05 21:51:22 +00:00
Erwan de Ferrieres d5bb12e6c8 Displaying localized portal page name in breadcrumb
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1235933 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 20:46:46 +00:00
Jacques Le Roux b69868efea Fixes an issue reported by andrewzn: "Error messages are never displayed with BIZZNESS_TIME theme" at https://issues.apache.org/jira/browse/OFBIZ-4607
The reason is outdated JS in messages.ftl

jleroux: I did not use andrewzn's solution because it overrode another part of the screen. I tried to understand why humanMsg, which has been adapted during jQuery move, did not work. I guess it's simply because biznessTime application.js is not loaded; though it's declared in BizznessTimeThemeData.xml as VT_HDR_JAVASCRIPT. At this stage, as I was missing time, I decided to simply reuse the same way than in webcommon messages.ftl 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1210193 13f79535-47bb-0310-9956-ffa450edef68
2011-12-04 20:12:14 +00:00
Hans Bakker 0cd3ce0603 only allow space depending on the top logo's width, add system messages to the flatgrey theme
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1206094 13f79535-47bb-0310-9956-ffa450edef68
2011-11-25 09:39:43 +00:00
Hans Bakker c3607815cd also allow analytics on the backend, and move analytics seed data from product to content
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1206052 13f79535-47bb-0310-9956-ffa450edef68
2011-11-25 03:27:08 +00:00
Hans Bakker 88193e01f7 fix pagination in productlisting in the order entry screen, but still have different pagination in order and ecommerce
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1200211 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 08:25:48 +00:00
Sascha Rodekamp 91ffcbdae6 Update jQuery:
jQuery library to version 1.7
jQuery UI to version 1.8.16
jQuery Validation to version 1.9
jQuery Flot to version 0.7
jQuery datetimepicker to version 0.9.7
and jsTree

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1199218 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 12:35:33 +00:00
Hans Bakker f6b1c46d72 unwanted change in r1198615
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1198616 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 03:38:47 +00:00
Hans Bakker 432a4f2d18 allow html=safe in comments and descriptions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1198615 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 03:34:52 +00:00
Adrian Crum 20cc328d7d Reverting my previous commit. It causes more problems than it solves.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1188451 13f79535-47bb-0310-9956-ffa450edef68
2011-10-25 00:03:26 +00:00
Adrian Crum 3f51f39178 Small fix for Flat Grey visual theme - include a elements and form elements in the button-bar style.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1188447 13f79535-47bb-0310-9956-ffa450edef68
2011-10-24 23:43:29 +00:00
Hans Bakker 2c234661ac update the backend top left logo by specifying a url in the current accounting company partygroup or uploading a logon in partycontent. the logo will also show in the partyprofile. All themes are updated. Contribution of Antwebsystems employee 'Nop'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1185102 13f79535-47bb-0310-9956-ffa450edef68
2011-10-17 10:58:47 +00:00
Hans Bakker 8f72b469be the help text was dependent on the websiteId which is now removed. changed it to the component name which is a better choice anyway
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1160101 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 03:35:18 +00:00
Jacques Le Roux 7420e0b13c A patch from Leon "incorrect url of root webapp in menu" https://issues.apache.org/jira/browse/OFBIZ-4368
If I enable the "app-bar-display" for root webapp which is mounted to "/", the url of root webapp in menu is "https://control/main" and not the correct "https://localhost:8443/".

That's because, e.g. in themes/tomahawk/includes/appbarOpen.ftl, it uses expression  <#if thisApp != "/"> to judge whether the app is root or not, while the variable thisApp is java String and it'll be encoded as iso code "/", so the "if" expression mentioned above will always return false.

In the patch it use StringUtil.wrapString to wrap variable theApp to avoid encode.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1158124 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 06:24:26 +00:00
Sascha Rodekamp 23d8737b1d Update to jQuery UI Version 1.8.13
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1124697 13f79535-47bb-0310-9956-ffa450edef68
2011-05-19 11:59:43 +00:00
Ashish Vijaywargiya b4c7911b0d Applied(bug fix) patch from jira issue - OFBIZ-4271. Tomahawk theme issue: If tab-bar has limited menu items then screenlet section get destructed. Thanks Arun for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1100073 13f79535-47bb-0310-9956-ffa450edef68
2011-05-06 05:58:42 +00:00
Bruno Busco 65a69c839a Few fixes to Tomahawk theme.
- The header logo is now clickable.
- Swapped header collapse icons.
- Used uppercase transformation only for button-bar buttontext links so that other links as, for example, the initial letters bar in https://localhost:8443/webtools/control/ServiceList is not uppercased.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1091477 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 15:42:23 +00:00
Bruno Busco 34b3ab22d6 Changed the Tomahawk theme so that the link on the user name now takes directly to the password change screen.
This is a first proposal to have the password change screen handy for any user regardless of its permissions to update parties.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1090858 13f79535-47bb-0310-9956-ffa450edef68
2011-04-10 18:01:12 +00:00