Commit Graph
165 Commits
Author SHA1 Message Date
Bruno Busco 1664f3e90e A patch from Blas Rodriguez Somoza
OFBIZ-3732 - XHTML validation errors round 2++ (framework excluding widgets)
https://issues.apache.org/jira/browse/OFBIZ-3732
geolocation.ftl
Script content need to be inside markup comment to avoid character encoding issues.

EntityImport.ftl
attributes without values

EntityImportDir.ftl
attributes without values

EntityImportReaders.ftl
attributes without values

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939757 13f79535-47bb-0310-9956-ffa450edef68
2010-04-30 17:46:49 +00:00
Jacques Le Roux e714f96c66 Closes "Replace popup lookups by layer lookups" (https://issues.apache.org/jira/browse/OFBIZ-3442) - OFBIZ-3442
Not all cases have been resolved but this patch takes this into account and should not introduce any not known issues. These issues are identified at "Layer popup umbrella main task" (https://issues.apache.org/jira/browse/OFBIZ-3445). They will be resolved later and are actually bugs so will be committed later when fixed. They are
* "Allow to open a layer lookup from a layer lookup" (https://issues.apache.org/jira/browse/OFBIZ-3446) and its specific case "Allow to open a layer lookup from a layer lookup recursively" (https://issues.apache.org/jira/browse/OFBIZ-3693)
* "The minimize/enlarge buttons (+ -) blocks the layer" (https://issues.apache.org/jira/browse/OFBIZ-3692)
* "When you get disconnected (time out) from a layered lookup, you then get afterward ugly screens" (https://issues.apache.org/jira/browse/OFBIZ-3450)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937852 13f79535-47bb-0310-9956-ffa450edef68
2010-04-25 18:49:01 +00:00
Bruno Busco 38c435ca8d A slightly changed (tabs replaced with spaces) patch from Blas Rodriguez Somoza
OFBIZ-3681 - XHTML validation errors round 2+ (framework excluding widgets)
https://issues.apache.org/jira/browse/OFBIZ-3681
XHTML validation errors

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

Other errors:

common/webcommon/includes/listVisualThemes.ftl
Line 19: style tag is not allowed here, style must be in the style attribute of the tag.

webtools/webapp/webtools/stats/StatBinsHistory.ftl
Line 29: duplicated id

webtools/webapp/webtools/tempexpr/tempExprMaint.ftl
Lin 32, 104: form must be outside table.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935311 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 07:52:08 +00:00
Jacques Le Roux 68acd1438f 20 is not a valid argument to position. This was not a big deal as it defaulted to empty, which for the moment defaults to normal. At term we will put "topleft" as default here
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933151 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 08:53:52 +00:00
Bilgin Ismet Ibryam 82a5bf6b02 A patch from OFBIZ-3555 "Show lookup value descriptions". This enhancements allows displaying a description for the IDs in lookup fields. To enable this feature set widget.lookup.showDescription to Y in widget.properties
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933130 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 07:54:10 +00:00
Bruno Busco 5d5e489598 A patch from Blas Rodriguez Somoza
OFBIZ-3637 - XHTML validation errors (framework excluding widget) round 2
https://issues.apache.org/jira/browse/OFBIZ-3637

XHTML validation errors

    * Unclosed tags INPUT, IMG, BR...
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * required attributes not included (alt in img, type in style, type in script etc)
    * Uppercase tags or attributes.
    * Unencoded entities (ampersands).

Other changes:

selectall.js
line 333. ajaxAutoCompleter must work with unenconded or encoded ampersands.

EntityRefMain.ftl
line 176. <div> must be </div>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932733 13f79535-47bb-0310-9956-ffa450edef68
2010-04-10 14:35:07 +00:00
Bilgin Ismet Ibryam 2a29d19bc0 Committed a patch from OFBIZ-3541 "Using Widgets html form templates in FTL files". This change will make autocompleter available also in ftl lookups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930660 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 10:38:19 +00:00
Bilgin Ismet Ibryam cebc361953 If there is no map center and zoom level provided for google map, get these values from all the markers on the map. If there are no markers, use 0 for latitude and longitude.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928804 13f79535-47bb-0310-9956-ffa450edef68
2010-03-29 15:16:55 +00:00
Bilgin Ismet Ibryam de0b52bfe6 Removed hardcoded width and height pixels from google map template, which now allows setting them also in percentages.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928733 13f79535-47bb-0310-9956-ffa450edef68
2010-03-29 11:51:49 +00:00
Scott Gray 6109808c8a Tabs to spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924378 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:28:01 +00:00
Adam Heath 2eb1768f1d Fix lots of bad xhtml tags, need to have a space before the ending /.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923545 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 01:56:41 +00:00
Bilgin Ismet Ibryam 52e2dc1f42 Allowed specifying InfoWindowHtml for each GMarker in google map. Before this fix, only the last GMarker had InfoWindowHtml.
Commented out duplicate code.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911539 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18 19:38:44 +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
Adrian Crum 2af56291a0 Temporal Expression bug fixes.
Internationalization note: this commit contains new UI labels.

Deprecated the time of day expression - it was a bad design. Replaced it with separate hour and minute expressions.

Fixed the createTemporalExpression service. It wouldn't allow user-specified expression IDs.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900024 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 20:59:37 +00:00
Erwan de Ferrieres 595517b3bf JIRA-3381 : Update of the geolocation screen in party (https://issues.apache.org/jira/browse/OFBIZ-3381)
The geoChart screen is now used for all the geolocalization calls.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899560 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 08:28:51 +00:00
Andrew Zeneski 271ed34627 implemented the disabled flag on text and lookup fields; implmented event/action elements for hidden and lookup fields; added code to lookup.ftl (javascript) to invoke onchange events which normally only invoke when the field is manually changed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894460 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 18:36:01 +00:00
Bilgin Ismet Ibryam bd19dc7e9f Applied a modified patch from jira issue OFBIZ-3211 - Ajaxifying lookup fields.
To add ajax support to a lookup screen, you have to add two fields: entityName and searchFields. As a reference please check LookupPartyName and LookupPerson screens in party manager. You can see ajaxed lookups in action in any screen using form widgets and the above lookup screens (findInvocies screen in accounting for example). 
This commit also fixes a bug in controls.js from scriptaculous library, but I reported it in its project list and I will track it further.
To hide the returned values (shown as [ID])from the autocompleter or change the number of items there, you have to modify widget.properties

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894149 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 11:30:40 +00:00
Erwan de Ferrieres 2c5f74bb7e Complement of rev 892579, adding geolocation by address. An example screen is visible at
<OFBiz instance>/example/control/ExampleGeoLocationAddress
This also closes JIRA-2930

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893277 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 19:11:53 +00:00
Bruno Busco d9ea486930 Added the geoChart common screen. (OFBIZ-3348)
This can be used to show a set of geo points on a Google map.
The screen takes as input a geoChart map containing:
    * dataSourceId -> select the map system to be used (google, yahoo etc.)
    * width -> map dimensions
    * height -> map dimensions
    * center -> the center point of the map
    * points -> the points array to be showed on the map

Several example screens have been also added to the Example application

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892579 13f79535-47bb-0310-9956-ffa450edef68
2009-12-20 09:41:03 +00:00
Marco Risaliti b82a0ad594 Add the possibility to sort the associated states to a country in a different way than by geoId (OFBIZ-3370)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892470 13f79535-47bb-0310-9956-ffa450edef68
2009-12-19 13:50:39 +00:00
Ashish Vijaywargiya c26fea3cb2 Removed warning message coming on couple of PDF.
Patch from Parimal Gain.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890282 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 11:51:36 +00:00
Jacques Le Roux 88e6b9481b I realized that in some cases it's better to keep the country part of locale, so this is better than r887164 (Fix a calendar i18n initialization issue in lookup.ftl)
And generalized to all FTL files where needed.
I only tested for lookups, but should be ok, since the same trick is used in other FTL files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887166 13f79535-47bb-0310-9956-ffa450edef68
2009-12-04 12:07:48 +00:00
Jacques Le Roux 2d9cecd3b9 Fix a calendar i18n initialization issue in lookup.ftl
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887164 13f79535-47bb-0310-9956-ffa450edef68
2009-12-04 11:50:25 +00:00
Jacques Le Roux 059cf20ff9 Fix a bug introduced with r886143 (when a language.js was missing no default was given)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886723 13f79535-47bb-0310-9956-ffa450edef68
2009-12-03 09:45:33 +00:00
Bilgin Ismet Ibryam 6e69b265eb - Display locale specific description of the visual theme if exists.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886701 13f79535-47bb-0310-9956-ffa450edef68
2009-12-03 08:12:57 +00:00
Jacques Le Roux 3dd84d9f25 A patch from Sascha Rodekamp " Colors and localisation for the calendar" (https://issues.apache.org/jira/browse/OFBIZ-1825) - OFBIZ-1825
Simple and clear implementation!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886143 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02 13:54:17 +00:00
Hans Bakker 4533720a3e docbook files now converted to html using a first (simple) visual scheme dependent css stylesheet. This css is now also used for the display of the help files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818780 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 09:16:26 +00:00
Hans Bakker 783d5b1510 make help button red when help screen available in the flatgrey scheme...could not get it to work in the business theme....anybody?
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815268 13f79535-47bb-0310-9956-ffa450edef68
2009-09-15 10:46:46 +00:00
Hans Bakker 073906c5df help system now using the mapKey in ContentAssoc so its size is now limited to 100 instead of 20. Suggestion made by Scott: thanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813311 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 08:49:30 +00:00
Hans Bakker 3678724587 changed the request -> helptopic=contentId name generation when the name is longer than 20 because of duplicates in the accounting component + updated some documents
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813222 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 04:14:32 +00:00
Scott Gray 0ae8e1da77 Fix some html validation errors
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812400 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 08:59:58 +00:00
Hans Bakker 1588004a4a unwanted change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812338 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 04:14:13 +00:00
Hans Bakker d789d9a0ad corrections in top level documents and added placeholders for marketing component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812336 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 03:58:39 +00:00
Hans Bakker d6a65c264a helpscreens placeholders now converted to the docbook V5 format inclusive of namespace support, updated the apache ofbiz document to explain how to create helpscreens, created an ftl template to display the docbook help screens, docbook pdf generation now almost working: it can create a local pdf file, but streaming to the browser does not work..if anybody interested to help me check modelscreenwidget.java line 1206
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811787 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 09:39:20 +00:00
Jacques Le Roux db2d6b1fb8 A patch from Abdullah Shaikh "macro to display error messages individually besides each input field" (https://issues.apache.org/jira/browse/OFBIZ-2890) - OFBIZ-2890
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@810497 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 13:04:56 +00:00
Jacques Le Roux 7befd1d25e no tabs but 4 spaces in code files (*.ftl, *.gro*, *.java, *.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804935 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 11:01:25 +00:00
Hans Bakker c76137a4c7 several adjustments to the help system, now using contentId to select and use underscore in contentId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804881 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 07:15:41 +00:00
Hans Bakker 966b32d5af The 'new' help system
A new help system is implemented which is compatible with the current system which uses the ofboz.docs.org site to store the data.

The new help system has a number of advantages over the old version:
1. complete multilanguage without config xml files, using the locale.
2. Having an automatic multilevel index of all help pages using the ContentAssoc entity
3. Using the content manager for retrieval.
4. Template driven, aware of the different visual themes.
5. A first step towards the storage of OFBiz documentation within the OFBiz system itself.
6. Easy update via normal svn in seed data.
7. Aware of portlets on (userdefined) Portal pages.
8. Create awareness of the capabilities of the content component

The reason of this development was the requirement to provide user documents to the customers of Antwebsystems Co.Ltd

Some of the possible extensions could be:
1. a search function
2. print all or specific help files in PDF format
3. make the help screens work better with the business theme
4. Explain how help can be extended
5. In the help screen be able to send a message to the local support team
6. But most of all, create more help content!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804546 13f79535-47bb-0310-9956-ffa450edef68
2009-08-16 02:04:17 +00:00
Hans Bakker 63a818ab65 extended the help system so that help pages can also be used from within the content component when available. If not found, the page within ofbiz.apache.org will be displayed. as is the case now. See the my portal component for an example. Still need to extend the <content tag so that an override template can be specified.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@803416 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 08:48:19 +00:00
Hans Bakker 2e0ee05f13 add the help button to the bizness theme
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802290 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08 03:14:05 +00:00
Adrian Crum d1776fcbc4 Improved iCalendar integration:
1. Work effort tasks are now converted to VTODO.
2. Event reminders can be a popup alarm
3. Fixed invalid iCalendar creation

Tested with Mozilla Sunbird. Sunbird has some annoying bugs when using read-only calendars - which they are aware of but haven't fixed. Someday I'll make the iCalendar read/write.

This commit includes a migration service for anyone who was using this feature previously.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@784195 13f79535-47bb-0310-9956-ffa450edef68
2009-06-12 17:03:42 +00:00
Adrian Crum a4bd184acd Small fixup for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783552 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 22:14:40 +00:00
Adrian Crum 5fe277e26d Added a lookup screen for time duration. Added an example to the Edit Work Effort screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783550 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 22:13:07 +00:00
Hans Bakker 314034ccdf small adjustment in fo report: invoice description column wider and more space for header
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@782516 13f79535-47bb-0310-9956-ffa450edef68
2009-06-08 03:28:54 +00:00
Anil Patel c8d4c428a2 Moved html body element start and end out of header and footer templates files. Added generic sections for body section of page.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778991 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 04:31:12 +00:00
Jacques Le Roux 4a6c5cfd6c Revert r772941 at David's demand: <<The dynamic dates represented here do not copyright the files that the code is in, they copyright what the code produces, and that is constantly changing so the dynamic date is appropriate."
On my side, I tried to find legal informations but did not find anything clear.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@773211 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 12:09:09 +00:00
Jacques Le Roux fdcfdb2979 Revert r767694
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@773100 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 20:59:14 +00:00
Jacques Le Roux c1d75da437 See http://markmail.org/message/znytl2y4inpmxbdo (David Goodenough's advice on copyright update)
extract : "My understanding of the Berne Convention rules for Copyright (which covers most jurisdictions - even the USA now), is that the copyright period only gets extended when the copyrighted item gets updated."

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772941 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 11:15:08 +00:00
Jacopo Cappellato 9eaac35f4d Implemented macros for new renderers methods for creen widgets; cleaned up SimpleDecorator.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768213 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 07:59:08 +00:00
Adrian Crum 1a4496c172 Some work on the screen widgets:
1. Added renderScreenBegin and renderScreenEnd methods to ScreenStringRenderer.java.
2. Updated HtmlScreenRenderer.java and MacroScreenRenderer.java to emit the <DOCTYPE> element first - before any widget comments or template content.
3. Removed <DOCTYPE> elements from templates that no longer need them.
4. Added screen and section boundary comments to MacroScreenRenderer.java.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@767996 13f79535-47bb-0310-9956-ffa450edef68
2009-04-23 17:54:30 +00:00