OFBiz
  1. OFBiz
  2. OFBIZ-3497

using date-time type="time" shouldn't display a textbox for a date

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: SVN trunk
    • Fix Version/s: SVN trunk
    • Component/s: framework
    • Labels:
      None

      Description

      When using a field like this : <date-time type="time" input-method="time-dropdown"/>, a textbox is added at the beginning of the field, but not needed. As we just want to select time, this textbox which is usually for dates is not needed.

      1. OFBIZ-3497.png
        1 kB
        Erwan de FERRIERES

        Activity

        Hide
        Erwan de FERRIERES added a comment -

        An example

        Show
        Erwan de FERRIERES added a comment - An example
        Hide
        Jacques Le Roux added a comment -

        Hi Erwan,

        This makes sense indeed since we have all the information in the dropdowns. Maybe could be an option though, to let the user type in (even if I guess most of the time it's not used). Then I would suggest to not show the field by default.

        Show
        Jacques Le Roux added a comment - Hi Erwan, This makes sense indeed since we have all the information in the dropdowns. Maybe could be an option though, to let the user type in (even if I guess most of the time it's not used). Then I would suggest to not show the field by default.
        Hide
        Erwan de FERRIERES added a comment -

        Hi Jacques,

        if you want to choose the date and have drop-downs for the time, you can use this combination :
        <date-time type="date" input-method="time-dropdown"/>

        Show
        Erwan de FERRIERES added a comment - Hi Jacques, if you want to choose the date and have drop-downs for the time, you can use this combination : <date-time type="date" input-method="time-dropdown"/>
        Hide
        Jacques Le Roux added a comment -

        Erwan,

        Sure, I know that, it's in the examples: <<Field4: advanced date time selection>>
        I was just saying that maybe some persons will like to be able to enter a time by hand. Hence the idea to have an attribute for that...

        Show
        Jacques Le Roux added a comment - Erwan, Sure, I know that, it's in the examples: <<Field4: advanced date time selection>> I was just saying that maybe some persons will like to be able to enter a time by hand. Hence the idea to have an attribute for that...
        Hide
        Erwan de FERRIERES added a comment -

        Jacques,

        we are not speaking of the same thing. The advanced date/time is here to select date and time, but when you use type="time", it's only to select a time, so the date box is not needed

        Show
        Erwan de FERRIERES added a comment - Jacques, we are not speaking of the same thing. The advanced date/time is here to select date and time, but when you use type="time", it's only to select a time, so the date box is not needed
        Hide
        Jacques Le Roux added a comment -

        Ha!

        I see, sorry for the confusion. I must say I never used <date-time type="time" input-method="time-dropdown"/> and from what you say it seems that I'm not alone. Because I can see any reasons to show an useless field Or maybe something has changed behind? Anyway, I totally agree with you then!

        Thanks for the clarification Erwan

        Show
        Jacques Le Roux added a comment - Ha! I see, sorry for the confusion. I must say I never used <date-time type="time" input-method="time-dropdown"/> and from what you say it seems that I'm not alone. Because I can see any reasons to show an useless field Or maybe something has changed behind? Anyway, I totally agree with you then! Thanks for the clarification Erwan

          People

          • Assignee:
            Unassigned
            Reporter:
            Erwan de FERRIERES
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development