Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Use new datepicker #575

Merged
merged 1 commit into from Sep 18, 2019
Merged

Conversation

quisse
Copy link
Contributor

@quisse quisse commented Mar 10, 2019

Subject

I am targeting this branch, because not backwards compatible.

Changelog

### Changed
- use newer datepicker

core23
core23 previously approved these changes Mar 13, 2019
pierredup
pierredup previously approved these changes Mar 13, 2019
Copy link
Contributor

@pierredup pierredup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the commits just need to be squashed, but otherwise 👍

@quisse
Copy link
Contributor Author

quisse commented Mar 15, 2019

@pierredup @core23 squashed.

OskarStark
OskarStark previously approved these changes Mar 15, 2019
core23
core23 previously approved these changes Mar 15, 2019
if ($container->hasExtension('twig')) {
// add custom form widgets
$container->prependExtensionConfig('twig', ['form_themes' => ['@SonataCore/Form/datepicker.html.twig']]);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the PR not backwards compatible and why is this necessary now, and was not before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will look into this

Copy link
Contributor Author

@quisse quisse Sep 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it ís backwards compatible (I've rebased).
Without this, the input used is just a normal text input. Am I missing something or do I add this fragment to Sonata\OrderBundle\DependencyInjection\SonataOrderExtension so the bundles can be used separately?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do that yeah. Since it is BC, maybe contribute it to the stable branch then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was a bit confused but had to change the base branch here. (instead of rebasing in git 🤦‍♂)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you would have to do both things :P

@quisse quisse dismissed stale reviews from core23 and OskarStark via c442f44 March 27, 2019 14:46
@quisse quisse changed the base branch from master to 2.x September 18, 2019 07:34
@greg0ire greg0ire merged commit db0399a into sonata-project:2.x Sep 18, 2019
@greg0ire
Copy link
Contributor

Thanks @quisse !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants