Letractively / rmh-roomreservation-maker

Automatically exported from code.google.com/p/rmh-roomreservation-maker
0 stars 0 forks source link

Datepicker objects instead of plain text inputs or select inputs to make date entry easier. #98

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Enhancement name:
"jQuery Datepicker objects"

...instead of arrays of 'select' inputs or stock 'text' inputs, in forms 
containing date inputs.

Functionality:
Perhaps something like the object described here:

http://jqueryui.com/datepicker/

to avoid problems with users entering poorly-formatted dates.
Example forms where this seems to be a problem include:
family/newProfile.php
family/profileChange.php
referralForm.php

As jQuery code already exists in rmh-roomreservation-maker, I would guess that 
using these objects would not be impossible.

As they are, the date forms do not specify the format of the dates being 
entered (in the case of raw text fields), or can accept dates such as February 
31st (in the case of the select fields). The code used to implement the select 
field date entry is also repetitive -- a lot of 
copy-paste-paste-paste...paste-paste. And when I say a lot, I mean that there 
are 62 'select' options that differ by no more than 3 or 4 characters a piece 
(days of month) as well as 28 year numbers and 24 months.

Original issue reported on code.google.com by niceo...@gmail.com on 26 Oct 2012 at 7:37

GoogleCodeExporter commented 8 years ago
Don't use any fancy JavaScript date-picker stuff, use HTML5's built-in "date" 
type for input tags.

Original comment by niceo...@gmail.com on 19 Nov 2012 at 7:54