Adrian Crum
af0ca8e141
A patch from Blas Rodriguez Somoza: XHTML validation errors (framework/widget) - ( https://issues.apache.org/jira/browse/OFBIZ-3623 ).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929173 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 15:35:28 +00:00
Erwan de Ferrieres
ddc80e3cb6
Adding title for images in hyperlink field or in a field displaying an image. Use the description if exists otherwise takes the title.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929157 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 14:45:45 +00:00
Jacques Le Roux
cfe8ef9dec
Oops, wrong commit at r928304. I thought I was in the lookup block, moreover I put one quote too many :/. To be revisited...
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928307 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 23:59:24 +00:00
Jacques Le Roux
a323ba2de6
A little improvement for sight impaired users
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928304 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 23:28:18 +00:00
Jacques Le Roux
3e33b7c700
To be consistent with definitions in widget-form.xsd, change renderLookupField attributes names prefixed by lookup to no prefixes (eg lookupPresentation becomes presentation)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928240 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 17:50:16 +00:00
Andrew Zeneski
495ae7e99b
fixed issue with firefox opening the clear links in a new window; changed the javascript to onclick; href is now just a javascript:void()
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926761 13f79535-47bb-0310-9956-ffa450edef68
2010-03-23 20:11:53 +00:00
Andrew Zeneski
538a0d8829
added link + javascript to clear lookup field when the text area is disabled; also clears the description field if it exists
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926207 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 17:32:25 +00:00
Erwan de Ferrieres
14ca433955
Adding alternate tag when using hyperlink in forms. If the image is not found, then the alternate text will be displayed
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926006 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 09:10:24 +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
Erwan de Ferrieres
245534d516
Adding description and alternate text on a field type="image"
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920770 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 10:18:54 +00:00
Scott Gray
42cffa5c24
[CVE-2010-0432] Multiple fixes to the macro and html form widget renderers to ensure that all output is encoded when necessary.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920372 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 16:05:24 +00:00
Bruno Busco
ef3857b87e
Added parameter default values to renderLookupField and renderNextPrev macros.
...
This allows to call the macro in the FTL files without specifying all the parameters.
Part of OFBIZ-3541
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920116 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 21:15:36 +00:00
Jacques Le Roux
9014106755
A modified patch from Sascha Rodekamp "Some improvements for the layer lookup" ( https://issues.apache.org/jira/browse/OFBIZ-3524 ) - OFBIZ-3524
...
A little fix for the faded background and make fading as default.
I have also refactored a bit the lookups examples fields
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920061 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 19:23:42 +00:00
Jacques Le Roux
423ce79a21
A slightly modified patch from Sascha Rodekamp " Some improvements for the layer lookup" ( https://issues.apache.org/jira/browse/OFBIZ-3524 ) - OFBIZ-3524
...
A flag was added to fade the background behind the layered lookup (ie all the screen but the lookup) when a layer is opened.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917940 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 10:02:04 +00:00
Jacques Le Roux
292f1cda85
This allows to hide the field at left of the lookup button. It may be used to chain an action without coming back to the original place, so the field make any sense. In my case reassigning a work effort from a list.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917152 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28 09:58:29 +00:00
Hans Bakker
df4af4bd37
Ebaystore:
...
fixed error in xml form when use radio field type.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916546 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 03:01:59 +00:00
Bruno Busco
2302c33259
Fixed wrong markup for Date-Time field introduced in rev. 911079.
...
Thank you Adrian for reporting in ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911305 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18 10:05:41 +00:00
Bruno Busco
ee1f838fa3
Removed unused calGif parameter from Form rendering Macros
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911186 13f79535-47bb-0310-9956-ffa450edef68
2010-02-17 21:57:22 +00:00
Bruno Busco
024a4afc4d
The Visual Theme can now re-define the calendar button icon
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911079 13f79535-47bb-0310-9956-ffa450edef68
2010-02-17 17:17:52 +00:00
Erwan de Ferrieres
311e0d14ac
Adding a new field type in forms' display so we can display an image and keep a list's consistency
...
Example :
<field name="displayProduct" use-when="!"foo".equals(productId)">
<hyperlink target="EditProduct" image-location="/images/next.gif" also-hidden="false"/>
</field>
<field name="displayProduct" use-when=""Cap".equals(productId)">
<display type="image" image-location="/images/ofbiz.ico"/>
</field>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908894 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 09:27:01 +00:00
Jacques Le Roux
84c1ca9272
Fix an issue when using the layer lookup with a fieldLookup3 style lookup (ie a lookup which shows name but uses an Id underneath).
...
This last fix allows to use the layer lookup in any cases already covert by OFBiz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904922 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 00:09:53 +00:00
Andrew Zeneski
0f95b50cae
fixed problem with the multi-element lookup form not passing a valid javascript object to the lookup function
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904198 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 18:20:05 +00:00
Jacques Le Roux
4e78c6d974
A patch from Sascha Rodekamp "UI upgrade, new lookups" ( https://issues.apache.org/jira/browse/OFBIZ-3374 ) - OFBIZ-3374
...
It's not perfect, but hopefully this time I will not have to revert it. I think it's time to introduce it, to let everybody have an idea and test.
Anyway, it can't hurt as it's only used in the Form Widget Examples screen for now. To test: https://localhost:8443/example/control/FormWidgetExamples
I find that the positioning mechanism is only working with the bizznesstime theme (at list centering, the only case I tried with all themes). But it should not be a big deal to fix since it works already in one theme.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904047 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 11:57:12 +00:00
Jacques Le Roux
c58797b529
I revert r900950 because it introduces a bad side-effect when using a lookup by name, at least as far as I can tell.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901197 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 13:36:25 +00:00
Jacques Le Roux
7e1e785844
A patch from Sascha Rodekamp "THanks" ( https://issues.apache.org/jira/browse/OFBIZ-3374 ) - OFBIZ-3374
...
A great enhancement IMO (like the calendar some time ago)
The idea came from http://cwiki.apache.org/confluence/display/OFBADMIN/New+Features+Roadmap+-+Living+Document#NewFeaturesRoadmap-LivingDocument-Quickeranintuitiveaccesstobasicfunctionnalities
which can be summarized to <<having lookups poping up as fast as the calendar>>. Lookups open in a page layer instead of a separate windows, faster!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900950 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 20:48:13 +00:00
Bruno Busco
61c53fc231
Added a specific class for the "Displaying..." text in the renderNextPrev macro.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899898 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 08:11:12 +00:00
David E. Jones
c28791cbee
Small improvement to allow ignoring of errors in form widget action services, mostly for those used to get info to display and if they fail it's not a big deal
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897606 13f79535-47bb-0310-9956-ffa450edef68
2010-01-10 09:20:18 +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
Andrew Zeneski
92970a877d
fixed bug in field lookup renderer which was preventing target2 (when using description-field-name); fixed bad method call in fieldlookup.js (cal_error) as well as a few typos in the error messages
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894277 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 23:41:21 +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
Bilgin Ismet Ibryam
dd822b9022
Fixed rendering of required-field-style.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890852 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 16:04:08 +00:00
Bilgin Ismet Ibryam
0a55b369ae
Removed an extra <li> element and added a missing <a> element to htmlFormMacroLibrary.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888412 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 14:43:36 +00:00
Jacopo Cappellato
40dc7cd9ab
Replaced hardcoded value for view size in pagination macro with the viewSize variable.
...
Thanks to Divesh Dutta for the patch, OFBIZ-3194
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835925 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 17:12:52 +00:00
Scott Gray
aa499be644
Span elements weren't being created for the ajax in place editor, fixes OFBIZ-2494 reported by Jacques Le Roux
...
Also removed inPlaceEditorId from the code since it is always equal to idName anyway
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835585 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 22:06:34 +00:00
Jacques Le Roux
dc05c50d69
A patch from Bruno Busco "The icon used for accessing the lookups should be defined by the theme" ( https://issues.apache.org/jira/browse/OFBIZ-3176 ) - OFBIZ-3176
...
In this patch the lookup field renderer has the link image not as a static img field but specified by the theme through a style class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833937 13f79535-47bb-0310-9956-ffa450edef68
2009-11-08 22:35:51 +00:00
Jacques Le Roux
c1ccfd9975
A patch from Bruno Busco "Collapsible Field Groups with clickable title" ( https://issues.apache.org/jira/browse/OFBIZ-3176 ) - OFBIZ-3176
...
in the attached patch there is a new rendering for the Group Field Title bar.
I removed the table and used simple divs.
Moreover the field group title is now all clickable in order to collapse expand the group.
The necessary changes to all themes are also included in the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833910 13f79535-47bb-0310-9956-ffa450edef68
2009-11-08 18:36:30 +00:00
Jacques Le Roux
e4df776a22
A patch from Bruno Busco "Adding pagination icons to Bluelight theme" ( https://issues.apache.org/jira/browse/OFBIZ-3168 ) - OFBIZ-3168
...
A change that allows a theme to replace the "Prev" "Next" labels with icons. Now only on Blue Light theme/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833378 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 12:43:22 +00:00
Bilgin Ismet Ibryam
2f84835b65
Enabled on-field-event-update-area on lookup elements which was already available in HtmlFormRenderer.
...
This can be seen in Add example feature application form.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832551 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 20:52:01 +00:00
Hans Bakker
7248f6db66
Jira issue: https://issues.apache.org/jira/browse/OFBIZ-3128
...
1. New SFA Account/contact/lead find/list screens replacing ftl/partysearch with form/performfind.
2. SFA now compatible with the party manager with the 'all' option still have the previous 'my' option
3. added new widget property: 'text find' to set the default here and not in the xsl
4. added 'container' as a field to the form in order to insert forms dynamically with an ajax request
5. fix bug for using radio field.
6. Implemented comments on this jira issue including using the find decorator
Contribution by Chattree, an employee of Antwebsystems Co.Ltd.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832294 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 03:59:01 +00:00
Bilgin Ismet Ibryam
fea3c7fca3
A patch from Bruno Busco "Adding a page size selector in the pagination bar" - https://issues.apache.org/jira/browse/OFBIZ-3083
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831676 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 13:51:42 +00:00
Bilgin Ismet Ibryam
a5654d9e1a
Added a missing curly brace.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831590 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31 20:33:12 +00:00
Scott Gray
d243d7a1fe
More xhtml validation: onSubmit -> onsubmit
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816859 13f79535-47bb-0310-9956-ffa450edef68
2009-09-19 06:33:42 +00:00
Scott Gray
74d0173420
More xhtml validation: selected="selected"
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816857 13f79535-47bb-0310-9956-ffa450edef68
2009-09-19 05:57:23 +00:00
Jacques Le Roux
4f096038f2
A patch from Erwan de FERRIERES "time-dropdown should start at 0 and not 1" ( https://issues.apache.org/jira/browse/OFBIZ-2950 ) - OFBIZ-2950
...
When using a time-dropdown, drop-downs are starting at 1 and not 0. So we can't select times between 00:00 and 1:00. Timers start at 01:01.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816255 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 16:12:17 +00:00
Jacques Le Roux
b71383f6ac
A patch from Nicolas Malin "Add confirm action before do submit action." ( https://issues.apache.org/jira/browse/OFBIZ-2916 ) - OFBIZ-2916
...
Add this feature to forms in a consistent way with existing feature in menu (enhancing this previous feature)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815734 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 12:16:03 +00:00
Jacopo Cappellato
f175fb2fae
Misc fixes for html form widget rendering, including patch from Pranay Pandey OFBIZ-2910
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812485 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 12:52:03 +00:00
Scott Gray
9d3a5f1a11
It's invalid to render a select element without any option elements
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812465 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 11:24:23 +00:00
Scott Gray
cc24956df1
validation improvement, onSubmit -> onsubmit
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812454 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 10:56:13 +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
Anil Patel
0a2d41a6bc
Fix multi select option in form widget.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@801518 13f79535-47bb-0310-9956-ffa450edef68
2009-08-06 06:50:27 +00:00