Commit Graph
54 Commits
Author SHA1 Message Date
Deepak Dixit d3cbe78ae5 (OFBIZ-6362) Added missing code in header.ftl file to include component specific js file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1697574 13f79535-47bb-0310-9956-ffa450edef68
2015-08-25 06:40:54 +00:00
Adrian Crum 220270f628 Move theme-specific js & css references from CommonDecorator(s) to themes - https://issues.apache.org/jira/browse/OFBIZ-6362.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686655 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 17:02:22 +00:00
Adrian Crum dcecdd25a4 Reorganized the screen widget src folder so classes are more organized.
This commit might break some Groovy scripts. There seemed to be a lot of C&P widget import statements, but there were no widget classes being used in the script, so I removed them. I might have overlooked something though.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652852 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 21:03:40 +00:00
Jacopo Cappellato a67d04c2ee Removed deprecated methods in the widget API; cleaned up a bunch of old commented out code; fixed formatting issues; some minor code improvements (no functional changes).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628361 13f79535-47bb-0310-9956-ffa450edef68
2014-09-30 06:20:29 +00:00
Jacques Le Roux 85244180eb Finally keeps Release.revision date simple in footer as suggested by Scott on Dev ML
No needs to over-engineering things there. A bit more smart than before though
This reverts r1625006 and r1624886 and adds CommonBuiltOn and better svninfo and gitinfo targets
I just regret that I lose the formatting effort I did in footer.ftl files, but I have not the guts to do it again.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625907 13f79535-47bb-0310-9956-ffa450edef68
2014-09-18 07:46:14 +00:00
Jacques Le Roux ce7805dd45 Better way for deployed-date-time ant target, now deployed-on
Still in discussion in dev ML, notably if we should backport

Put back the CommonDepth label inadvertently removed, thanks to Scott's review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625006 13f79535-47bb-0310-9956-ffa450edef68
2014-09-15 12:08:08 +00:00
Jacques Le Roux ecfcd44d06 Adds deployed-date-time and clean-deployed-date-time targets. To set the date and time of last deployment info in the footer
Puts a check on svinfo and gitinfo (only used if it's a local copy)
Adds and uses CommonDeployedThe label in footer.ftl with the new deployed-date-time  target
Uses CommonPoweredBy in bizznesstime footer.ftl
Minor changes and formatting in the footer.ftl files
Better French label for CommonPoweredBy


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624886 13f79535-47bb-0310-9956-ffa450edef68
2014-09-14 17:56:34 +00:00
Jacques Le Roux 1c32c00b3e Fixes a bug introduced with commits for OFBIZ-4902.
When you replace the Freemarker if_exists built-in with the ! operator, when the ! is followed by a + you need to evaluate the expression conditioned by the ! 1st. Else the following chars are used as default value. In other words, you need to put parenthesis around the expression including the ! operator
I tested with tomahawk/includes/appbarClose.ftl and header.ftl files of bluelight and droppingcrumbs themes
I then applied the same scheme on catalog/categorydetail.ftl, party/editShoppingList.ftl, ebaystore/store/returnPolicy.ftl and party/findparty.ftl w/o testing. I guess it's ok
I did not find the same scheme elsewhere

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624876 13f79535-47bb-0310-9956-ffa450edef68
2014-09-14 17:22:18 +00:00
Ashish Vijaywargiya aff06fcbc6 Applied the patch OFBIZ-4902_specialpurpose.patch from OFBIZ-4902 - Replace in Freemarker templates the deprecated built-ins: default, exists, if_exists.
Thanks http://ofbiz.us team for providing the patch work. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618313 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 08:40:28 +00:00
Jacques Le Roux 6acc26eac2 Adds the gitinfo and the clean-gitinfo (last one used in build target) targets
Uses the new runtime/gitinfo.ftl in footers (all themes) like is the runtime/ftlinfo.ftl one
Actually both are shown (if you have a mix of repos, like I do) or one or the other
Adds the runtime/gitinfo.ftl file in both .gitignore and svn ignore

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597615 13f79535-47bb-0310-9956-ffa450edef68
2014-05-26 17:23:12 +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
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
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
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
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
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
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
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 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
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
Adrian Crum f027b8cd94 Updated visual themes to check for optional helpTopic field.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1082023 13f79535-47bb-0310-9956-ffa450edef68
2011-03-16 01:06:23 +00:00
Bruno Busco d749f74d6e No functional changes, only clean-up for Tomahawk theme.
Changed some theme-defined style names so that now they describe items function and not how items appear on the screen.
Simplified the navigation tree structure.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065243 13f79535-47bb-0310-9956-ffa450edef68
2011-01-30 10:14:01 +00:00
Jacques Le Roux c5193ecb5b A patch from BJ Freeman "Update Docbook files and give a nice look to doc" (https://issues.apache.org/jira/browse/OFBIZ-4052) - OFBIZ-4052
Updates all the docbook.css in themes. Remove tags from the <body>

JLR: + Revert r1044062+1044053 (was: Deactivates temporarily the online help. It's currently not working and slowing down too much the demo server)
Actually it was not the real reason (UtilIO.java was)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050385 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 13:58:42 +00:00
Jacques Le Roux 24fe5ff37e Merges the jQuery branch back to the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044503 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 20:40:08 +00:00
Jacques Le Roux 13ec7d9887 Deactivates temporarily the online help. It's currently not working and slowing down too much the demo server
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044053 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 17:56:33 +00:00
Adam Heath 8bd26d1863 Display the ajax spinner absolutely in the center of the document,
instead of allocating static space in the control area.  This takes the
width of the control area back to something sensible.  With always
allocated space in the control area, there ends up being a blank
space(because of the use of visibility:hidden instead of display:none).
When the Person.name and Company.Name fields are then long, this control
area breaks the flow, and word-wraps in IE, or flows underneath the
breadcrumbs in firefox.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@997421 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 17:56:48 +00:00
Adam Heath 7ccf240393 Some places in ofbiz were doing dom manipulation without waiting for the
dom to be finished loading.  Wrap such code with a dom:loaded observer.

Also, change all window->load calls to dom:loaded observers.  The former
happens after all images have finished loading, while the later happens
just after the dom has finished parsing.  This is better, as sometimes
the images may take a long time to finish downloading, and until they do,
none of the manipulation will take place.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@997420 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 17:56:37 +00:00
Bruno Busco 2512a4cd12 The help is only available to authenticated users.
Do not display the help icon when not logged in.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987863 13f79535-47bb-0310-9956-ffa450edef68
2010-08-22 11:05:18 +00:00
Erwan de Ferrieres 212b8a6ba2 First version for a spinner when calling ajax requests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@945126 13f79535-47bb-0310-9956-ffa450edef68
2010-05-17 13:01:20 +00:00
Erwan de Ferrieres 4f90299ebd Following a discussion on dev list, moving portal administration to webtools instead of myPortal (http://ofbiz.135035.n4.nabble.com/erwan-contributions-td2122600.html#a2122600)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942406 13f79535-47bb-0310-9956-ffa450edef68
2010-05-08 15:52:31 +00:00
Bruno Busco ddd826e52c A patch from Blas Rodriguez Somoza
OFBIZ-3621 - XHTML validation errors (themes)
XHTML validation errors

    * Unclosed INPUT
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * Uppercase tags or attributes.
    * Unencoded ampersands in urls.

Other errors:

Header.ftl (tomahawk & droppingcrumbs)
Line 108. Wrong markup. Div can't be inside <a>
<a href="<@ofbizUrl>${logoLinkURL}</@ofbizUrl>" title="${layoutSettings.companyName}"><div> </div></a>

Style.css (tomahawk & droppingcrumbs)
Line 945. The logo is used as the background of the logo area, but because the size of the background image means nothing for dimensioning, it will be clipped.
background: url(../images/ofbiz_logo.png) no-repeat;

Solution: This is a hack to put the logo in the style sheet as the background. If the logo is only in the stylesheet without any trick, the logo will be clipped and disappears.
The logo can be loaded as an image directly in header.ftl and it will appear without clip and without any hack in header.ftl.

appbarOpen.ftl (droppingcrumbs)
Line 99, unclosed <li> and <ul>

header.ftl (bizznesstime)
Line 111. div can't be inside span.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931665 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 20:15:21 +00:00
Hans Bakker 310106aae2 tomahawk theme: portal page tags should only show when logged in
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928339 13f79535-47bb-0310-9956-ffa450edef68
2010-03-28 04:41:16 +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 f02bdbf2f5 missed one change in last tomahawk update
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926921 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:21:12 +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
Hans Bakker 7135628833 remove dependency on commext component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926508 13f79535-47bb-0310-9956-ffa450edef68
2010-03-23 09:13:04 +00:00
Scott Gray 6c7f758d92 Don't try to create DropDownMenu objects when the user isn't logged in because the referenced divs don't exist
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924957 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 19:12:43 +00:00
Scott Gray bfea3ac294 Couple of xhtml fixes: an a tag's title attribute value was missing enclosing quotes and a script tag was missing the required type attribute
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924542 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 22:50:45 +00:00
Scott Gray c67b898060 Prevent html encoding of some header links in the tomahawk theme
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922151 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 05:59:31 +00:00
Scott Gray f2652b1dfe Remove another piece of unnecessary encoding
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920615 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 01:45:03 +00:00
Scott Gray ef9feace80 Remove some unnecessary spaces in the generated html for the tomahawk theme
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920614 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 01:45:00 +00:00
Scott Gray 4d45f24d16 Fix funny encoding in the application menu links
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920613 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 01:44:57 +00:00
Bruno Busco 4f4a608995 A patch from Sascha Rodekamp, "Tomahawk Menu Loading", https://issues.apache.org/jira/browse/OFBIZ-3494
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915812 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 14:53:40 +00:00
Bruno Busco 65d1cf6ac0 Fixed soma <ul> <li> not closed tags.
Thank you Adrian for reporting this on the ML.

Removed "Application" label from the menu bar when not logged in.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915808 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 14:44:30 +00:00