You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "François Lecomte (JIRA)" <ji...@apache.org> on 2013/10/18 17:45:17 UTC

[jira] [Created] (OFBIZ-5361) Adding the week number in date picking dropdowns

François Lecomte created OFBIZ-5361:
---------------------------------------

             Summary: Adding the week number in date picking dropdowns
                 Key: OFBIZ-5361
                 URL: https://issues.apache.org/jira/browse/OFBIZ-5361
             Project: OFBiz
          Issue Type: Improvement
          Components: framework
    Affects Versions: SVN trunk
         Environment: This improvement was tested on our OFBiz 12.04 (revision 1452418) running on Debian 6.0.7.
            Reporter: François Lecomte
            Priority: Trivial
             Fix For: SVN trunk


For some users, having the week shown in dropdown calendars is an important thing.
This is what it looks like:
!http://i.imgur.com/GNflLdp.jpg!

There is an option to show week numbers in the dropdown date picker used by OFBiz. (datetimepicker)
It can be done by adding "showWeek: true," in the datetimepicker calls in framework/widget/templates/htmlFormMacroLibrary.ftl.

Proposed patch for trunk:

{noformat}
--- framework/widget/templates/htmlFormMacroLibrary.ftl
+++ framework/widget/templates/htmlFormMacroLibrary.ftl
@@ -181,6 +181,7 @@
           stepMinute: 1,
           stepSecond: 1,
       </#if>
+          showWeek: true,
           showOn: 'button',
           buttonImage: '',
           buttonText: '',
@@ -495,6 +496,7 @@
             stepMinute: 5,
             stepSecond: 10,
         </#if>
+            showWeek: true,
             showOn: 'button',
             buttonImage: '',
             buttonText: '',
@@ -531,6 +533,7 @@
             stepMinute: 5,
             stepSecond: 10,
         </#if>
+            showWeek: true,
             showOn: 'button',
             buttonImage: '',
             buttonText: '',
{noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)