Skip to content
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

Merged
merged 6 commits into from
May 29, 2017
Merged

Form Improvements #165

merged 6 commits into from
May 29, 2017

Conversation

romaninsh
Copy link
Member

@romaninsh romaninsh commented May 13, 2017

Implemented various improvements for the form:

Currency

screen shot 2017-05-13 at 20 32 40

Now shows currency in a box, not as a text.

DatePicker

screen shot 2017-05-13 at 20 34 17

TimePicker

screen shot 2017-05-13 at 20 33 35

And ...drumroll... hasOne field now shows up as drop-down:

screen shot 2017-05-13 at 20 37 02

Knows visual glitches:

  • date / time popup shows in double frame (couldn't figure out why)
  • dropdown does not show up same width as other fields (again - not sure about CSS)

Functionally all works well.

romaninsh and others added 2 commits May 13, 2017 20:16
Added Date, Time and DateTime support
Added hasOne() reference support.
Copy link
Member

@DarkSide666 DarkSide666 left a 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';
Copy link
Member

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 ?

Copy link
Member Author

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.

@romaninsh romaninsh merged commit 37a95b3 into develop May 29, 2017
@romaninsh romaninsh deleted the feature/form-improvements-hasmany branch May 29, 2017 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants