phproad / phpr-framework

[PHPR Framework] PHPRoad system files
http://phproad.com
MIT License
12 stars 2 forks source link

TIME in backend #12

Closed Garbee closed 9 years ago

Garbee commented 11 years ago

We should be able to submit times without a seconds selection. If a seconds is not sent then :00 should be assumed by default.

highruned commented 11 years ago

+1

I think the time and datetime field should use multiple inputs/dropdowns time selection also: http://o7.no/17laRqW

Dropdown 0-24 and 0-60 with AM/PM would do it.

Garbee commented 11 years ago

Meh, I don't really like the separated inputs. ptTimeSelect is my personal favorite selector right now. Nice simple UI. The only issue is you need to actually press "Set" when submitting or else it doesn't get set in the form. But that is one minor thing to overcome for a quick and simple selector.

highruned commented 11 years ago

Yah that works. :+1: Should be able to make it auto set.

Garbee commented 11 years ago

This also makes DATETIME a bit better since you'd then have a single date input with a helper along with a single helper for inputting the time. Also it avoids the 24 hour thing since that adds conversion for people which many don't like to do.

ptTimeSelect is the best I have found, although I think Chrome now ships with (or will soon) a time helper built in. Should we have supporting browsers use their built in method or override and always use our custom helper?

daftspunk commented 11 years ago

+1 I'll pick up this one