Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5361

Adding the week number in date picking dropdowns

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Done
    • Trunk
    • 16.11.01
    • framework
    • This improvement was tested on our OFBiz 12.04 (revision 1452418) running on Debian 6.0.7.

    • Bug Crush Event - 21/2/2015, Community Day 3 - 2015

    Description

      For some users, having the week shown in dropdown calendars is an important thing.
      This is what it looks like:

      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:

      --- 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: '',
      

      Attachments

        1. OFBIZ-5361.patch
          0.9 kB
          Gil Portenseigne

        Activity

          People

            jleroux Jacques Le Roux
            fgtl François Lecomte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified