Commit Graph
459 Commits
Author SHA1 Message Date
Deepak Dixit 23d692dd3f (OFBIZ-6563) Fixed lookup party search form, used correct name for groupName field. Fix the focus-field-name from partyName to partyId as partyName is not a valid field on lookup party form. Used correct jQuery.each method in for paginationMenus. Now lookup party is working fine.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1697674 13f79535-47bb-0310-9956-ffa450edef68
2015-08-25 13:43:12 +00:00
Jacques Le Roux 7fb125b874 OFBIZ-6536 - The "Create new" link under partymgr has disappeared
This patch removes CreateNewParty intermediate screen. This screen used to just include a menu. This menu is now into findParty screen, the security has been moved from screen to menu.
The CreateNewParty screen is not used elsewhere so can disappear, so is findparty.ftl, replaced by form widgets



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687851 13f79535-47bb-0310-9956-ffa450edef68
2015-06-26 21:12:46 +00:00
Nicolas Malin 895c9856b3 Cleaning forms code is needed after setting default-value in list-options and entity-options, patch related to OFBIZ-6524 and follows the resolution of OFBIZ-6490 and OFBIZ-6489. Thanks Gil Portenseigne for this effort
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686674 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 21:58:05 +00:00
Nicolas Malin 7382855c7b Use as default on <entity-option> and <list-option> description attribute like <display-entity> element. Related issues OFBIZ-6489 and OFBIZ-6490. Thanks to Christian Carlow for this and Gil Portenseigne for the review
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686673 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 21:28:12 +00:00
Nicolas Malin f9f1f01098 Migrate findParty.ftl to form widgets, related issue OFBIZ-6227. Added a new service performFindParty oriented only on search operation (do not contains screen information that managed by screen widget) and convert the FindParty form to works very similar of the older but with widget capacity. Thanks Gil Portenseigne for this issue
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686667 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 19:43:49 +00:00
Jacques Le Roux 8a0b8fbe21 A patch from Forrest Rae "Postal Address PDF Formatter Screen Problems" https://issues.apache.org/jira/browse/OFBIZ-6444
A couple updates are needed to the postalAddressPdfFormatter screen:
First, the screen template is set to use the HTML renderer which results in this error in the log:
    [java] 2015-06-03 13:44:53,400 |0.0.0.0-8009-exec-13 |ModelScreenWidget             |W| In platform-dependent could not find template for xsl-fo, using the one for html.

Second, the various PostalAddressXXXX.fo.ftl files do not escape XML properly, and addresses with an & in them end up causing a FreeMarker template error.

Test:  For number 1, just get a "Report" for a quote, and then look at your log file. For number 2, add an "General Correspondence" address to a party that contains an ampersand, like "5th & Oak Street", create a quote for that Party, and then get the "Report" for that quote.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1683998 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 08:05:25 +00:00
Jacques Le Roux 5c7f0b1fcb This closes "Replace bsh code with Groovy code" https://issues.apache.org/jira/browse/OFBIZ-6332 with all its subtasks and more.
jleroux: I suspected it was only a matter of replacing "${bsh" by "${groovy" in *.xml. But I had not the guts to get into 11(!) sub tasks. 
So, in Eclipse, I simply did a S/R in *.xml and compared parts of my changes with some Pierre's most "complex" patches respectively product, ebaystore, projectmgr and scrum. 
They were totally similar (just revisions number changed) so here is the whole. 

I will later improve these changes by removing HTML entities when possible, this is a bit more delicate because in some cases the XML schema are not complete (or/and for other still obscure to me reasons) and if you simply replace HTML entities by simple code (eg &Amp; by &) you get issues in logs when the XML parser cross them...

Note: only menus, screen and forms are changed here.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682118 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 20:39:43 +00:00
Jacques Le Roux 1711869690 Fixes "When used setDependentDropdownValuesJs.ftl precludes focus-field-name" https://issues.apache.org/jira/browse/OFBIZ-6346 with examples in FormWidgetExampleForms.xml and for NewCustomer screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678294 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 07:53:39 +00:00
Jacques Le Roux bdea0c167c Temporary reverts r1678291+1678292 to have only 1 commit easier for backporting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678293 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 07:31:57 +00:00
Jacques Le Roux 4ea39c7cef Fixes "When used setDependentDropdownValuesJs.ftl precludes focus-field-name" https://issues.apache.org/jira/browse/OFBIZ-6346 with examples in FormWidgetExampleForms.xml and for NewCustomer screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678291 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 07:24:10 +00:00
Jacques Le Roux a7e97a9abd Patches from Taher Alkhateeb for "party id cannot be specified through GUI while creating a Party (Person or Party Group)" https://issues.apache.org/jira/browse/OFBIZ-3480 reported by Babu Sreekanth
1. While creating an organization, it is possible to specify a meaningful party id through ofbiz setup.
2. But, it is NOT possible to specify the party id through GUI while creating a Party (Person or Party Group). this means, all the parties created get a sequence id for party id.


If the user inputs a party ID to any of the party creation screens (person, party group, customer, employee or prospect) then that ID will be used, otherwise it will pull a party ID from the sequence bank






git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1666794 13f79535-47bb-0310-9956-ffa450edef68
2015-03-15 12:02:41 +00:00
Ashish Vijaywargiya ed26dd4dc4 Applied patch from jira issue OFBIZ-4946 - Getting error when uploading a file after creating a data resource.
Thanks Ashish Ambulkar for creating the issue. Thanks Arun, Jacques for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646984 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 14:22:50 +00:00
Adrian Crum 158fbf7808 Party Manager - remove security-related screen and form widgets that were moved to framework.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642586 13f79535-47bb-0310-9956-ffa450edef68
2014-11-30 18:17:18 +00:00
Adrian Crum e5a06480cd Party Manager - consolidate JS file locations into a single folder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642575 13f79535-47bb-0310-9956-ffa450edef68
2014-11-30 17:47:15 +00:00
Ashish Vijaywargiya 66e20b8d44 Applied patch from jira issue - OFBIZ-5551 - Cannot delete the record When Server Timezone and Application timeZone are different.
Thanks  SenthilMurugan for reporting the issue and thanks Deepak for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639892 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 14:22:21 +00:00
Nicolas Malin 1f17ccfa03 Correct parameter fields present direclty on target value instead of use the parameter's link element that generate for partyId this string : '∂yId' , thanks for Supachai Chaima-ngua and Francis Douet for the alert on OFBIZ-5847
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637716 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 19:18:02 +00:00
Ashish Vijaywargiya 44ce4114b6 Applied patch from jira issue - OFBIZ-4668 - CommunicationEventAndRole entity: Field with name custRequestDate not found.
==============================================================================
when displaying this portal page:
https://localhost:8443/myportal/control/main?portalPageId=MYPORTAL_EMPLOYEE0&parentPortalPageId=MYPORTAL_EMPLOYEE

this message is thrown to the console:
Message: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [executeFind]: Error running Find on the CommunicationEventAndRole entity: Field with name custRequestDate not found in the CommunicationEventAndRole Entity
==============================================================================
Thanks Mridul for the contribution and thanks Erwan for creating the issue. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632801 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 14:38:46 +00:00
Ashish Vijaywargiya 5846ffcaa7 Applied patch from jira issue - OFBIZ-5826 - Shipper Account screen not rendering shipper accounts.
===========================================
Here is the steps to regenerate issue:
{code}
<PortalPagePortlet portalPageId="PartyProfile" portalPortletId="ShipperAccount" portletSeqId="00001" columnSeqId="00001" sequenceNum="7"/>
{code}

Upload the PortalPagePortlet data for shipper Account, and go to viewprofile screen. Now add shipper account from shipper account screen.

Expected Result: Newly added/ all shipper account of party should be listed under shipper account screen.

Actual Result:
No shipper accounts are listing.
===========================================
Thanks Deepak for the contribution. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632797 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 14:27:19 +00:00
Ashish Vijaywargiya 37dc0685db Applied patch from jira issue - OFBIZ-5824 - Error in communication screen while perfom sorting.
=========================================================================
In partymgr contrller.xml, we have view request named "ViewCommunicationEvent", and this request call an service event, due to this when we try to perform sorting on Child Communication Events, Customer Request List or any other screen over Communication screen then it will thorw following exception:

org.ofbiz.webapp.event.EventHandlerException: Found URL parameter [communicationEventId] passed to secure (https) request-map with uri [ViewCommunicationEvent] with an event that calls service [setCommEventRoleToRead]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body (a form field) instead of the request URL. Moreover it would be kind if you could create a Jira sub-task of https://issues.apache.org/jira/browse/OFBIZ-2330 (check before if a sub-task for this error does not exist). If you are not sure how to create a Jira issue please have a look before at http://cwiki.apache.org/confluence/x/JIB2 Thank you in advance for your help.
 

Also due to this service event call on view request entry we can't open the communication events in new tab. Ideally this service should be call in screen context instead view request.

=====================================

Thanks Deepak for reporting the issue and providing the patch for the same. 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632745 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 09:17:05 +00:00
Vikas Mayur 2f3a932588 Small code improvement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621109 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 09:56:11 +00:00
Ashish Vijaywargiya 432a04d42f Applied patch for bug fix reported in jira task at OFBIZ-4973 - AvsSettings screenlet read data bug, entity-one should be used, not entity-and.
Thanks Oliver for reporting the issue and providing the fix. Thanks team ofbiz.us for the verification. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618359 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 13:55:15 +00:00
Jacques Le Roux aecc972c1d A patch from Pierre Smits for "AddOtherPartyRelationship allows user to select roles the selected party doesn't have" https://issues.apache.org/jira/browse/OFBIZ-5694
When a relationship must be set for a party to another party, the role selector for the party shows all roles available in the data set.
This, however, must be limitied to the roles the party has.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614366 13f79535-47bb-0310-9956-ffa450edef68
2014-07-29 14:37:48 +00:00
Jacques Le Roux 4d9e447e11 Adds the conventional comment <!-- if this isn't there then with all fields empty no query will be done --> to "noConditionFind" fields. It's not quite obvious, so the more there are the better
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1576278 13f79535-47bb-0310-9956-ffa450edef68
2014-03-11 10:53:37 +00:00
Jacques Le Roux 53ccd2ceb7 Fixes "Overview of routings does not paginate" https://issues.apache.org/jira/browse/OFBIZ-5322 and more
Actually it does paginate but the value is not dependent on widget property widget.form.defaultViewSize which default value is 20. It uses a default value of 50 which is defined by

<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="3"/>

You can easily test it using https://localhost:8443/manufacturing/control/FindRouting?VIEW_SIZE=3

This is legacy from pre Apache era. I found 143 cases where a default-value is defined in screens for VIEW_SIZE.

I did not look into details for the 143 cases but I believe most are also legacy.
There are few default values: 10, 20, 30, 50, 500 and even an extreme case of 10000 for InventoryItemTotalsExport!
There is only one comment for LookupBulkAddProducts which is also legacy: <!-- 10 rows seems more appropriate given screen size, etc. -->

I suggest to OOTB replace all those by the widget.form.defaultViewSize value.
Things will then be consistent and easily changeable on a global scale using the widget property.
Or if really needed forcing the default-value as it's done now.

So this would be applied on the 143 cases (I checked, viewSizeDefaultValue does not exist in any screen)

<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526387 13f79535-47bb-0310-9956-ffa450edef68
2013-09-26 05:55:32 +00:00
Hans Bakker 8df9a52ca9 add a csv party import and export function to the party component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1507200 13f79535-47bb-0310-9956-ffa450edef68
2013-07-26 07:00:28 +00:00
Jacques Le Roux 52c0cecb40 A patch from Arpit Singh Pandya for "Added missing cancel/done link on Party Attribute page." https://issues.apache.org/jira/browse/OFBIZ-5253
While navigate from Party profile page to create Party Attribute, there is no back option. Added missing cancel/done link on Party Attribute page. Not available in trunk and 12.04, not sure about other versions. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1498406 13f79535-47bb-0310-9956-ffa450edef68
2013-07-01 12:19:49 +00:00
Jacques Le Roux 38504d481c revert r1481274
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481296 13f79535-47bb-0310-9956-ffa450edef68
2013-05-11 11:32:19 +00:00
Jacques Le Roux 6db2cef559 Fix "Name in List Related Contacts form doesn't get updated" reported by Karl Beecher at https://issues.apache.org/jira/browse/OFBIZ-5192
If a person is set as a related contact for a party, updates to their name are not immediately displayed by the ListRelatedContacts form.

To reproduce (with OFBiz demo data):
* In the Party Manager, go to the profile page of DemoSupplier (they have a related contact called 'Peter Manager'
* Follow the link to Peter Manager's profile page.
* Click Update and change the name (e.g. to 'Peter Manageress')
* Save
* Return to DemoSupplier's profile page. Observe that the name of the related contact is still 'Peter Manager'. Refreshing doesn't change that.
* Restart OFBiz
* Refreshing the profile page now displays the updated name.

jleroux: to test in trunk I used company and scrum employee

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481274 13f79535-47bb-0310-9956-ffa450edef68
2013-05-11 08:52:25 +00:00
Ashish Vijaywargiya 2d3cb10275 Applied bug fix from - OFBIZ-5085 - Search result for "Find Communications" does not work. Refer following section from OFBIZ-5085.
=========================
And secondly I think that in ListCommEvents form of CommunicationEventForms.xml partyId should be passed in place of the partyIdFrom. As in ViewCommunicationEvent screen, value of the partyIdFrom is set via parameters.partyId.
=========================

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1478499 13f79535-47bb-0310-9956-ffa450edef68
2013-05-02 19:31:33 +00:00
Jacques Le Roux b591e84b2a A slightly modified patch from Gil Portenseigne for "Missing PartyCountryCode uiLabel" https://issues.apache.org/jira/browse/OFBIZ-5138
The label ${uiLabelMap.PartyCountryCode} is used several times in the project but i could not find the definition of PartyCountryCode in label definition files.
I looked further and found CommonCountryCode in label file which is not used and fill the need for PartyCountryCode. To solve this I propose to rename all PartyCountryCode to CommonCountryCode.

jleroux: I also moved CommonCountryCode, CommonCountryCodeMissing and CommonCountryMissing from PartyUiLabels.xml to CommonUiLabels.xml





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447664 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 10:55:10 +00:00
Jacques Le Roux c34c6aadd5 A patch from Tom Burns for "Defects in Presentation of Role Type" https://issues.apache.org/jira/browse/OFBIZ-4947
Release 10.4 and SVN tunk
In Party Manager go to Profile > Roles(s)
1. Create a New Role Type
2. Click save
Expected: Screen refresh and return to Roles(s) tab on ProfileTabBar
Actual: Screen refresh ProfileTabBar missing

In SVN tunk
In Party Manager go to Profile > Roles(s)
Expected: Roles listed in screenlet Add To Main Role > Role Type Id drop-down list
Actual: Screenlet Add To Main Role > Role Type Id drop-down list is empty.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355801 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 20:12:19 +00:00
Jacques Le Roux 720578ecf3 Replaces all remaining title="${uiLabelMap.CommonEmptyHeader}" by title=" ", and specific case in ListPartyCommEvents
This closes the CommonEmptyHeader chapter

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343016 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 08:41:47 +00:00
Hans Bakker d859a2d5db add account activation email type to product store which can be used for the to be approved registrations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341341 13f79535-47bb-0310-9956-ffa450edef68
2012-05-22 08:03:02 +00:00
Jacques Le Roux 4395b7967d A patch from Daniel Riquelme "sessionAttributes doesn't work from screen widget" https://issues.apache.org/jira/browse/OFBIZ-4669
Reported by Kiran:
In the screen widget, add a set action that refers to sessionAttributes, it doesn't work.

e.g: Following doesn't work:
<set field="titleProperty" value="${sessionAttributes.autoName}"/>

Following works:
<set field="titleProperty" from-field="autoName" from-scope="user"/>



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340821 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 20:21:06 +00:00
Jacques Le Roux 608b923cfd Adrian suggested to removes all default-widget-style="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340388 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:38:25 +00:00
Jacques Le Roux 3e7b774156 Adrian suggested to removes all default-tooltip-style="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340387 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:37:35 +00:00
Jacques Le Roux 028b8497d8 Replaces title="${uiLabelMap.CommonEmptyHeader}" by title=" " where it's known to not be a problem. Here with links styled by widget-style="smallSubmit"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340374 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 08:48:24 +00:00
Jacques Le Roux 3369dca046 Replaces title="${uiLabelMap.CommonEmptyHeader}" by title=" " where it's known to not be a problem. Here with links styled by widget-style="buttontext"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340373 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 08:45:18 +00:00
Jacques Le Roux 671e6a500d A completing patch from Pierre Smits "Help screens in Manufacturing" https://issues.apache.org/jira/browse/OFBIZ-4802
jleroux: I reviewed the English part (and the licenses in NL part) and only fixed a typo in EN/Help_MFG_ProductionRunCosts.xml (was prouction). I also wondered about the new content of Help_MFG_FindInventoryEventPlan, but it's quite correct

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340273 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 22:00:50 +00:00
Erwan de Ferrieres cc348ba512 Adding missing uiLabels in PartySalesOpportunities form
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326788 13f79535-47bb-0310-9956-ffa450edef68
2012-04-16 20:40:37 +00:00
Jacques Le Roux de2293d16a Removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310957 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 05:31:09 +00:00
Jacques Le Roux 050690362d Fixes "Party Manager Default Country in Update" reported by Tom Burns at https://issues.apache.org/jira/browse/OFBIZ-4787
In Party Manager > Profile > Contact Information > Update the "Country" drop down always defaults to "United States".
This is misleading if the Country is not "United States".
If a user were to change some other address element he/she would have to also re-set "Country" to keep it from being changed to "United States".

To reproduce:
In Party Manager lookup a party with a "Postal Address" say "DemoSupplier"*
In Contact Information > Postal Address Click "Update"
In the Country field select any country but "United States" say Switzerland
Click "Save"

Note -
Expect drop down default after save = "Switzerland"
Actual drop down default after save = "United States"

Click "Go Back"
Expect "Postal Address" country = "Switzerland"
Actual "Postal Address" country = "Switzerland"

Click
Click "Update"
Expect drop down default to be "Switzerland"
Actual "United States"

jleroux: rather than using Tom's patch I reused setDependentDropdownValuesJs.ftl. There were no OOTB examples of its use in FTL templates so now there is one.The same could be done for other EditContactMech.ftl (eCommerce and Facility) I will ask Tom to try it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310953 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 05:15:29 +00:00
Jacopo Cappellato 6c49613480 OFBIZ-4715 Committed patch from Markus M. May to extend the country specific address formatter to PDF (fo.ftl).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305898 13f79535-47bb-0310-9956-ffa450edef68
2012-03-27 16:48:54 +00:00
Jacopo Cappellato 77a06931a3 Minor cleanup to improve readability; no fuctional changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1298430 13f79535-47bb-0310-9956-ffa450edef68
2012-03-08 15:30:54 +00:00
Jacques Le Roux c6288f1d46 A patch from Wai "widget <image> tag to use css for resizing" https://issues.apache.org/jira/browse/OFBIZ-4678
Summary: The purpose of this patch is to address the following:
1. Provide a standardized set of image width and height specs for page layout in ofbiz. This gives ofbiz a uniform look throughout as it applies to image display.
2. Preserve the aspect ratio of the image when using these standardized image sizes.
3. One place to make styling modifications (eg. css file).
4. Decouple styling from code (eg. java,ftl,xml,html,jsp,etc).

Regarding including the real image size, the width/height attributes in <img> specifies the boundary of the image when shown on the page. If you need to specify the real size of the image, the server code would have to perform the determination. Afterwards, you can include the actual dimensions of the image in the title attribute of <img>

Details:
Manually specifying the image width and height does help with preserving the layout of a page regardless of the image size to be shown. The challenge with this method is that the image shown on the page in question may be distorted if the aspect ratio of the image differed from that of the width and height attributes of <img>. This basically forces the person uploading the image to be more vigilant about image aspect ratios.
The purpose is to harmonize on the display size of images with a standardized set of width/height constraints in which an image must fit and preserve the aspect ratio of images.

Currently the source files (eg. ftl, xml) either manually specifies the width or height of a displayed image (ie widget <image> and html <img> tag). The problem with specifying only one constraint is that an image can affect the layout of the page if the user uploads an image where the aspect ratio could be large.

Some ftl and xml files specify both the width and the height. The problem with this is that if the aspect ratio of the image in question does not match that of the width and height of the <img> tag, the image would be displayed distorted.

The solution was to create a standardized set of CSS styles that both configure the displayed image size and preserve the image aspect ratio (eg. thumbnail size, medium size and large size). Of course, the developers can further define or modify the styles to suit their need.

By using CSS, one can change the size of displayed images without having to tamper with the ftl and/or xml files. This helps to reduce potential bugs that come with modifying the ftl and xml files. The existing way of doing things is to go through each ftl or xml file in question and manually modify the width and/or height of the <image> and/or <img> tag.

The question about the "border" around images. If you do not wish to have a border around the image, just remove it from the CSS style. It's that easy No need to change anything else. Ie. configuration to the image is done on the CSS style and not on the <image>, <img> tag.

NB: The current patch does not apply to all displayed images. I have only made appropriate modifications to widget <image> and html <img> tags that have either specified the width and/or height. There are numerous <image> and <img> tags spread all over the project that do not specify dimensions. I would have to modify them as I encountered them when I could see where and how they are displayed on the screen. Note that these images would not be affect by this patch.

jleroux: despite my efforts I was not able to check all screens. But I think it's ok

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1296782 13f79535-47bb-0310-9956-ffa450edef68
2012-03-04 11:54:13 +00:00
Jacopo Cappellato e1eaa6a763 OFBIZ-4715: implemented new mechanism to dynamically select (if available) a country specific ftl template to render the postal address on screen.
Based on an initial patch contributed by Markus M. May

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1293204 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 12:12:00 +00:00
Jacques Le Roux 8c1b55e297 The USERNAME is actually required
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1237201 13f79535-47bb-0310-9956-ffa450edef68
2012-01-29 04:51:15 +00:00
Erwan de Ferrieres 6c0467a257 Assigning a max size to groupId field in AddOtherPartyRelationship so the form won't extend
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1237001 13f79535-47bb-0310-9956-ffa450edef68
2012-01-28 07:33:59 +00:00
Hans Bakker 8926fa1bda show personal image if the party is a person
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1213599 13f79535-47bb-0310-9956-ffa450edef68
2011-12-13 08:49:08 +00:00
Hans Bakker ba670ac011 show status field in thge overview
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1207111 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 12:42:53 +00:00