-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form Improvements #165
Form Improvements #165
Conversation
Added Date, Time and DateTime support Added hasOne() reference support.
…i into feature/form-improvements-hasmany
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to admit that I didn't test new features myself, but by looking at code it all looks very plain, simple and what's even better - working :)
@@ -17,11 +17,12 @@ | |||
*/ | |||
class UI extends \atk4\data\Persistence | |||
{ | |||
public $date_format = 'd/m/Y'; | |||
public $date_format = 'M d, Y'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how is this format better that d/m/Y ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not confusing for Americans and is working with the calendar widget.
Implemented various improvements for the form:
Currency
Now shows currency in a box, not as a text.
DatePicker
TimePicker
And ...drumroll... hasOne field now shows up as drop-down:
Knows visual glitches:
Functionally all works well.