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

Adding the week number in date picking dropdowns

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Done
    • Affects Version/s: Trunk
    • Fix Version/s: 16.11.01
    • Component/s: framework
    • Labels:
    • Environment:

      This improvement was tested on our OFBiz 12.04 (revision 1452418) running on Debian 6.0.7.

    • Sprint:
      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: '',
      
      1. OFBIZ-5361.patch
        0.9 kB
        Gil Portenseigne

        Activity

        Hide
        gil portenseigne Gil Portenseigne added a comment -

        The patch given works fine, i like to see week number in date picking. Seems ok to me.

        Show
        gil portenseigne Gil Portenseigne added a comment - The patch given works fine, i like to see week number in date picking. Seems ok to me.
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks François, and Gil for the test and reminder

        François, your patch is in trunk at revision: 1704086

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks François, and Gil for the test and reminder François, your patch is in trunk at revision: 1704086

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            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

                Development

                  Agile