← Back to team overview

anewt-developers team mailing list archive

[Bug 229860] Re: Implement form control for date/time entry

 

I've made two controls for this: FormControlDatePicker and
FormControlDateSelect. The first one uses a fancy client side javascript
script, but since it uses some javascript libraries I won't include it
in anewt.

The second one uses 2 dropdowns for day and month and a text input for
the year. It is ideal for things like birthdays which are not in the
near future or past. Only problem is that it uses hardcoded day-month-
year input format, and it's not really documented (just 1 dutch
description). I will include it here for anyone to use.

The main advantage of these over AnewtFormControlTextInput is that
$control->get('value') and $control->set('value', $value) give/expect
AnewtDateTimeAtom values instead of strings.

** Attachment added: "FormControlDateSelect class"
   http://launchpadlibrarian.net/29287415/dateselect.class.php

-- 
Implement form control for date/time entry
https://bugs.launchpad.net/bugs/229860
You received this bug notification because you are a member of Anewt
developers, which is subscribed to Anewt.