Commit Graph
215 Commits
Author SHA1 Message Date
Adrian Crum 4c01ad9512 Moved new layout demo page to Webtools component. After thinking about it, Webtools seemed to be a more logical place to put it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060219 13f79535-47bb-0310-9956-ffa450edef68
2011-01-18 07:25:06 +00:00
Adrian Crum 134846ee66 Added "required" style to layout demo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059935 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 14:42:45 +00:00
Adrian Crum 805555b0f1 New feature - Page Layout Best Practices demonstration and visual theme test jig.
Based on a recent dev mailing list discussion, I added a page to the Example component that demonstrates some basic layout concepts. The idea is to display the page, then look at the screen widget definition and the HTML markup to see how the page is constructed.

The page can also be used for visual theme development - because most of the common UI elements are all on one page.

This could be improved - it needs a multi-column layout example, a tree widget example, and a form widget field group example.

Internationalization note: This commit contains new UI labels.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059429 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 01:14:21 +00:00
Jacques Le Roux 6fc5e54c79 Fixes the last issue related to "Ajax example creation has somme issues" (https://issues.apache.org/jira/browse/OFBIZ-1994) - OFBIZ-1994
The issues already fixed were
* A Save File dialog box pop up to save a json file     
* Creation did not update the list
* You can't edit the column "Name" content
* Sometimes it worked on an instance, not another (both with same configuration)
* Sometimes the same instance, which did not work before, worked

I found another issue, the line
<on-event-update-area event-type="submit" area-id="EditExampleAjax" area-target="CreateExampleFormOnly"> 
was duplicating the list and hiding the create section. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056824 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 22:34:50 +00:00
Jacques Le Roux 0a72fe8793 3 patches from Sascha Rodekamp "Localisation of labels in javascript" (https://issues.apache.org/jira/browse/OFBIZ-3964) - OFBIZ-3964
This cames from Adam's advice: http://markmail.org/message/kai5lfvlnsz7xwki

Sascha comes to this solution
The Idea is to have a method which takes a JSON Object with uiLabel Resources and label entries and returns the resolved labels in a JSON Object which can be used directly in the JS Code.
The advantage of this way, is that we have only one Ajax request which reads all labels. The alternative is an Ajax request for each label, which simplify the request (because you haven't to create a complex JSON Object) but is very expansive.

* Replaces all JS alerts with the new fancy error boxes
* Adds a few uiLabels

I simply fixed some typos. I did not test all cases but did a good review.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056497 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 20:40:31 +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
Adam Heath d241a1049a Fix several xml files that had DOS line endings; converted them to UNIX,
so that on fresh checkouts they will be auto-converted to native.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040833 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 00:15:17 +00:00
Jacques Le Roux 46035ac2f9 Fix sort-field names
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1028228 13f79535-47bb-0310-9956-ffa450edef68
2010-10-28 08:52:25 +00:00
Bruno Busco e06bb8f36a Slightly improved example portlets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1023451 13f79535-47bb-0310-9956-ffa450edef68
2010-10-17 10:37:58 +00:00
Bruno Busco d4f513d060 Removed include-portal-page widget example. Not really needed any more.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1023342 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16 18:12:11 +00:00
Jacques Le Roux a955bc9053 Forgot to save the TODO note :/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@999420 13f79535-47bb-0310-9956-ffa450edef68
2010-09-21 13:59:07 +00:00
Jacques Le Roux c62c5b04df Introduces an example of autocompleted dropdown use in Example. Still some work to do as the value returned contains also the Description, should contain only the Id.
TODO : return only the Id, else you need to edit the field to remove the description

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@999419 13f79535-47bb-0310-9956-ffa450edef68
2010-09-21 13:58:18 +00:00
Jacques Le Roux 8172640f9a Removes dependencies from Example component to Party component by replacing Party lookups by Geo lookups.
Removes useless specific party lookups in Example component

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@999390 13f79535-47bb-0310-9956-ffa450edef68
2010-09-21 13:07:57 +00:00
Bruno Busco cf1bdc32ea Used "EXAMPLE" PortalPage as demo in example application instead of the "PartyProfile" PortalPage that is defined out of the framework
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@998604 13f79535-47bb-0310-9956-ffa450edef68
2010-09-19 07:15:24 +00:00
Bruno Busco 3bbd2d8598 Added the <include-portal-page> widget. OFBIZ-3625 https://issues.apache.org/jira/browse/OFBIZ-3625
Using this widget, a PortalPage can now be easily rendered in any screen.
At the bottom of the page an "Edit ON/OFF" button can be used to switch the PortalPage edit mode ON and OFF so that the Portal Page can be edited "in place".
All the portlet editing requests are handled using the "save-last-view" request attribute so that a dedicated screen can be shown to set the Portlet attributes and the column width and, when submitted, the user is taken back to the portal page he was editing.

Those new requests will be used in a later commit to eliminate all the duplicated ****Adm requests that have been introduced when the Webtools portal admin screen has been created.
A simple use of the widget has been added in the Example application.

TODO:
- At the moment the portal page editing is performed on the portal page itself and no portal derivation from the "main" one is performed. This will be done in a later commit.
- The portlet moving controls both manually and by drag and drop have not been implemented yet.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@998570 13f79535-47bb-0310-9956-ffa450edef68
2010-09-19 00:09:39 +00:00
Jacques Le Roux 71b5c1f8d3 Minor changes in the Example component.
Also changes from CommonPartyID to CommonPartyId (following our rules)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996476 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13 09:59:08 +00:00
Jacques Le Roux ce170647e1 Fix a wrong copy/paste from a custom application
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996145 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 13:32:18 +00:00
Jacques Le Roux 303c7be08c I missed this file in r993527 (1st pass on Example component clean-up)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996121 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 11:20:27 +00:00
Bruno Busco dcfaf5e4d7 Added UiLabels resources loading in Porlets.
All Portlet screens should always load all needed UI resources since they can be rendered in different PortalPages that cannot be aware of what resources are needed.
This change will allow to eliminate all UI label resources loading in MyPortal decorators so that MyPortal will not depend on so many other components.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995975 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 20:43:37 +00:00
Jacques Le Roux f5012cfbf8 1st pass on Example component clean-up
I began to clean and make things consistent for lookups (in order to demonstrate the new Name/id mechanism) but then I realized that it should use Example entity and not Party. I will change that later and will remove all out-of-framework dependencies in the Example component 

* I have added an example of the new Name/id mechanism
* I removed deprecated snippets in ExampleForms (some were already commented out) and used rather LookupExampleFeature enhanced with autocomplete
* In FormWidgetExampleForms.xml I tried to clean things for the autocomplete in the 1st lookup, but I thing there is an issue when more than one name field is retrieved. It does not behave consistently, try for a Person and a PartyGroup for instance...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@993527 13f79535-47bb-0310-9956-ffa450edef68
2010-09-07 20:46:32 +00:00
Jacques Le Roux 0bcdc3e955 Better comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@990328 13f79535-47bb-0310-9956-ffa450edef68
2010-08-28 09:08:45 +00:00
Erwan de Ferrieres fc024e7080 OFBIZ-3901 - Birt charts and PDF generation -- now Birt PDF files containing charts are generated.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@989593 13f79535-47bb-0310-9956-ffa450edef68
2010-08-26 10:27:19 +00:00
Erwan de Ferrieres 99eace2c07 Examples on creating charts with Birt -- HTML generation is OK, still some work to do on PDF
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@988846 13f79535-47bb-0310-9956-ffa450edef68
2010-08-25 07:53:56 +00:00
Jacques Le Roux 792aa82bee A solution for "State field is missing - Not in List or N/A" reported by Sam Hamilton at https://issues.apache.org/jira/browse/OFBIZ-3247 - OFBIZ-3247
I finally decided to use the new Dependent Dropdowns mechanim.
I have also refined how it's used in Example to avoid confusion, so changed setDependentDropdownValuesJs.ftl to pass paramKey when it's different from mainId

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@988508 13f79535-47bb-0310-9956-ffa450edef68
2010-08-24 12:32:52 +00:00
Jacques Le Roux 72e99f8d44 revert r987277, the comment was right, sorry :/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987348 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 23:20:50 +00:00
Jacques Le Roux 0a06065137 This comment
<!-- here mainId and its key are same -->
was false in this case (true for category/products)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987277 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 19:34:16 +00:00
Jacques Le Roux c7f7506a48 Not a big deal: Forgot to replace selectedStateProvinceGeoId by selectedDependentOption
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987276 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 19:28:58 +00:00
Erwan de Ferrieres becc213433 removing trailing spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987271 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 19:07:34 +00:00
Jacques Le Roux be40037bef Forgot to comment out now useless setCountryStatesEventJs.ftl call in r987266
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987267 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 18:54:43 +00:00
Jacques Le Roux e3ee5b8035 From Scott's remark, removes dependency from Product component in dependent dropdowns example
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987266 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 18:49:32 +00:00
Erwan de Ferrieres 6e2431837e removing dependency to product and using new example demo data for reporting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987265 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 18:46:27 +00:00
Jacques Le Roux 7a285eed10 Miscellaneous improvement in Form Widgets examples. Notably introduces an, as much as possible generalized (so far), dependent drop-downs example. I have introduced 2 couples of dependent drop-downs.
The 1st one, country/states, is a common one and does not need (ie it's better to not) to be generalized. It can be used as is. It needs some pieces which are all included, see comments and follow... 

The 2d, category/products, have been taken as example but is not a good candidate. What if you get much categ or/and products? Anyway it's a good OOTB example and I had it at hand, so I used it. I have tried to generalize (abstract the couple of dropdowns) and it's almost there. The only issue I crossed, is when you want to use a couple of dependent drop-downs in the same form. As it's not a common case, the setDependentDropdownValuesJs.ftl template-script can be used in most cases...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@986370 13f79535-47bb-0310-9956-ffa450edef68
2010-08-17 16:18:24 +00:00
Erwan de Ferrieres 70767d45b9 removing trailing spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@986096 13f79535-47bb-0310-9956-ffa450edef68
2010-08-16 18:58:02 +00:00
Erwan de Ferrieres 0ae7083542 Adding geolocation using openstreetmap, examples are taken from the google existing ones
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@986095 13f79535-47bb-0310-9956-ffa450edef68
2010-08-16 18:56:25 +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
Jacques Le Roux 14adf43d86 * Especially fix a bug in fieldlookup.js.
When using description-field-name in a layered lookup called from another layered lookup (recursively or not) the description-field-name parameter (target2) in the call from the 2d lookup button was not modified, therefore the link was not working.

Miscellaneous:
* Format and fix some typos in fieldlookup.js
* Removes now useless commented out functions set_value and set_values in lookup.ftl
* Improves comments in FormWidgetExampleForms.xml


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947392 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 10:08:21 +00:00
Jacques Le Roux fda988d301 Closes "Allow to open a layer lookup from a layer lookup recursively" (https://issues.apache.org/jira/browse/OFBIZ-3693) - OFBIZ-3693
This commit removes all remaining <presentation="window">

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946073 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 07:36:02 +00:00
Erwan de Ferrieres ebbef0d683 As suggested by Bruno in this thread, refactoring in charts
http://ofbiz.135035.n4.nabble.com/Charting-in-OFBiz-td2219378.html#a2219378

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@945523 13f79535-47bb-0310-9956-ffa450edef68
2010-05-18 07:14:50 +00:00
Erwan de Ferrieres a877c6fc4b Adding the capacity to create charts in OFBiz. Examples are based on the example component, and examples must be created to show charts.
Charts are using the flotr library (http://code.google.com/p/flotr/) which is under a MIT license and is based on the Prototype Javascript Framework.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@945044 13f79535-47bb-0310-9956-ffa450edef68
2010-05-17 09:29:38 +00:00
Jacques Le Roux 62976e36fb We still have a problem with the find button in recursive cases (ie LookupWorkEffort and LookupContent).
It's not related to previous patches committed but an issue which is remaining and we have to face now.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944647 13f79535-47bb-0310-9956-ffa450edef68
2010-05-15 14:13:03 +00:00
Jacques Le Roux 2cec8a31b0 client-autocomplete-field="true" is useless since it's the default value (thanks to Scott for the reminder). I was thinking about lookup descriptions, but Bilgin has activated it by default at r936638, so nothing is needed :o)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942667 13f79535-47bb-0310-9956-ffa450edef68
2010-05-10 06:36:43 +00:00
Jacques Le Roux b759c6031b Show client-autocomplete-field usage
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942576 13f79535-47bb-0310-9956-ffa450edef68
2010-05-09 18:39:03 +00:00
Jacques Le Roux d8e6120200 By default, the layer is not centered anymore.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942574 13f79535-47bb-0310-9956-ffa450edef68
2010-05-09 18:20:47 +00:00
Jacques Le Roux b9ccc674b9 Clarify things a bit more (from a question on user ML)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942573 13f79535-47bb-0310-9956-ffa450edef68
2010-05-09 18:20:04 +00:00
Jacques Le Roux c44089d6a9 As it's the default, presentation="layer" is not needed anymore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942572 13f79535-47bb-0310-9956-ffa450edef68
2010-05-09 18:13:01 +00:00
Jacques Le Roux dd11ac1b1a A patch from Ankit Jain "Allow to open a layer lookup from a layer lookup" https://issues.apache.org/jira/browse/OFBIZ-3446 - OFBIZ-3446
Uncomment the line to return the name in the calling screen

I have also added groupName in the name returned (when looking for  partyGroup)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940401 13f79535-47bb-0310-9956-ffa450edef68
2010-05-03 09:10:49 +00:00
Jacques Le Roux 465213125f Temporary workaround to fix an issue in the lookup in lookup Example
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940248 13f79535-47bb-0310-9956-ffa450edef68
2010-05-02 15:48:53 +00:00
Jacques Le Roux 4891c2f0cd A modified patch from Sascha Rodekamp "Missing Buttons on LookUp Search" (https://issues.apache.org/jira/browse/OFBIZ-3745) - OFBIZ-3745
For the pagination issue in bluelight and droppingcrumbs, the calendar issue in bluelight still exists
I have also added 2 lookup and calendar test fields in the 2d lookups.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940234 13f79535-47bb-0310-9956-ffa450edef68
2010-05-02 14:15:34 +00:00
Jacques Le Roux ad20beb7a9 An improving patch from Chris Snow "Provide better user help" (https://issues.apache.org/jira/browse/OFBIZ-3702) - OFBIZ-3702
Answers 3 of 4 points Scott outlined on dev ML



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939216 13f79535-47bb-0310-9956-ffa450edef68
2010-04-29 06:39:25 +00:00
Jacques Le Roux 2f6a7c3d09 A slightly modified patch from Chris Snow "Provide better user help" (https://issues.apache.org/jira/browse/OFBIZ-3702) - OFBIZ-3702
Provides help by hovering over the field label. See Example for... an example :o) And also https://issues.apache.org/jira/secure/attachment/12442717/fieldLabelTooltip2.png


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938844 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 10:02:57 +00:00