Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1531

Allow specifying default date/time for "inp_edit_date_time" control

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.2-B1
    • Component/s: Admin Interfaces
    • Labels:
      None

      Description

      Plan:

      1. the new "picker_default" field option would be implemented, that can have 2 type values:
      • exact timestamp
      • relative timestamp in any format supported by "strtotime" function (e.g. "midnight +1 day -1 second" would resolve to "23:59:59" of today)
      1. the new "picker" format would be added to "kDateFormatter" class, that would work like this:
      • if field does have value take it
      • if field doesn't have any value AND "picker_default" is specified, then use above rules to create desired timestamp
      • format timestamp from above using default format of the field (as if empty "format" was specified instead of "picker")
      1. in the "inp_edit_date_time" control use "picker" format (instead of no format) for the hidden field, that name starts with "full_date_"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Erik Snarski [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: