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

Increase width of datetime widget #8204

Closed
wants to merge 1 commit into from

Conversation

core23
Copy link
Member

@core23 core23 commented Aug 20, 2024

Subject

I am targeting this branch, because this is a patch.

Changelog

### Changed
- Increase `datetime_widget` width to 6 when using separated field inputs for date and time.

Given the following form type, the default width is far to small to display the date widget.

            ->add('begin', DateTimeType::class, [
                'label'        => 'form.label_date_begin',
                'required'     => true,
                'row_attr'     => [
                    'class' => 'col-md-6',
                ],
                'date_widget'   => 'single_text',
                'time_widget'   => 'choice',
            ])
            ->add('end', DateTimeType::class, [
                'label'        => 'form.label_date_begin',
                'required'     => true,
                'row_attr'     => [
                    'class' => 'col-md-6',
                ],
                'date_widget'   => 'single_text',
                'time_widget'   => 'choice',
            ])

@core23 core23 closed this Aug 28, 2024
@core23 core23 deleted the form-theme branch August 28, 2024 19:28
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.

1 participant