Jacques Le Roux
d8515b0d03
The recent CSS changes had an impact on clearText position.
...
I quickly commit but if I had enough time I would prefer to put the style as a class in the themes CSS files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936175 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 06:50:16 +00:00
Bruno Busco
0cb13d9b58
A patch from Blas Rodriguez Somoza
...
OFBIZ-3708 - Fields should be defined with span not div. (radio, date, lookup)
https://issues.apache.org/jira/browse/OFBIZ-3708
Field markup should be a valid inline element.
Defining fields with div (block) instead of span (inline) creates several problems:
* Missalignments in screen. (See LOOKUP_CAL screenshots)
* Implies a end-of-line after the div. (See CAL screenshots)
* If used inside inline elements which should be OK, becames XHTML validation errors. (Manufacturing -> MRP -> MRP log)
Because this is a markup problem, it spans to all the themes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935312 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 08:06:28 +00:00
Bruno Busco
d5c2d0d92f
A slightly changed (tabs replaced with spaces) patch from Blas Rodriguez Somoza
...
OFBIZ-3671 - XHTML validation errors (framework/widget) In xml (xhtml) ID must be unique
https://issues.apache.org/jira/browse/OFBIZ-3671
In XML id is a special attribute which must be unique.
* ModelFormField.java must have the method getCurrentContainerId which is already on ModelForm
* MacroFormRendered and HtmlFormRenderer must be modified to use the getCurrentContainerID instead of getIdName
* htmlFormMacroLibrary. span id must be different from the associated hidden field.
Also:
htmlFormMacroLibrary
Line 73: readonly attribute without value.
Lines 102.103: better formatted, more readable javascript call.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935197 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 16:10:24 +00:00
Bilgin Ismet Ibryam
12c181dea7
Added missing macro renderer parameters.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933134 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 08:14:42 +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
Scott Gray
9b4de5dadc
Added support for setting a class attribute (using widget-style) on the div rendered by ContainerField.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931416 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 03:31:24 +00:00
Bilgin Ismet Ibryam
2c208a4b35
Using == is more readable than = for comparisons (even both work the same way in FTLs)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930666 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 11:48:14 +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
Jacques Le Roux
964c4c302d
A modified patch (indentation done mostly) from Blas Rodriguez Somoza "XHTML validation errors (framework/widget) Tree widget and Date time field rendering issues" https://issues.apache.org/jira/browse/OFBIZ-3628 - OFBIZ-3628
...
htmlTreeMacroLibrary.ftl
Tree widget renders unclosed <li> tags.
Example from Accounting -> Global GL settings -> Navigate accounts
<ul class="basic-tree">
<li><ul class="basic-tree">
<li>
<li><a class="collapsed" href="/accounting/control/GlAccountNavigate?trail=null|100000"> </a><a href="/accounting/control/GlAccountNavigate?glAccountId=100000&trail=null">100000
htmlFormMacroLibrary (macro renderDateTimeField)
selected attribute without value
<option value="AM" selected>
input inside ul
<ul>
......
<input type="hidden" name="${compositeType}" value="Timestamp"/>
</ul>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930516 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 12:42:36 +00:00
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
Adrian Crum
7d4a943c2a
Revert 928451.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928460 13f79535-47bb-0310-9956-ffa450edef68
2010-03-28 17:46:45 +00:00
Adrian Crum
0b9abb6a8b
Simplified label html renderer macro.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928451 13f79535-47bb-0310-9956-ffa450edef68
2010-03-28 16:48:22 +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
Erwan de Ferrieres
415b2b3fe3
Adding alternate parameter to all the renderers. This was forgotten at r926006
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926250 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 18:31:47 +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
Jacopo Cappellato
0e57369c97
Reverted rev. 920359 (by erwan) and reimplemented in a cleaner way by refactoring the renderHyperlinkTitle code.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921397 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 15:21:23 +00:00
Erwan de Ferrieres
80b67af4e4
Correcting a wrong macro name (missing letter)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921109 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 20:32:47 +00:00
Erwan de Ferrieres
060a8e14de
Adding missing tags in r920770 as spotted on the dev mailing list in the *FormMacroLibrary.ftl files
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921099 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 20:22:35 +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
Jacopo Cappellato
6ed667e6d9
Added newly added (in rev. 908894) renderDisplayField input arguments.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908912 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 10:33:19 +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
Jacopo Cappellato
b195647d16
Updated macro rendere libraries for xsl-fo, xml, text and csv in order to support recent changes in rev. 894460
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894593 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 11:35:45 +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
Scott Gray
27cf8edea6
Fixed problem reported by Jacopo where the tree widget expand/collapse buttons weren't being displayed in Safari. Safari seems to not want to display link background images unless the link has some content, fixed by adding a non-breaking space if the link is empty.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890120 13f79535-47bb-0310-9956-ffa450edef68
2009-12-13 21:13:49 +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