Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Symfony 5 Form Theme

zakbahm free asked 3 years ago


Is there a Symfony 5 form theme for MDB available? Symfony 5 can auto-generate form HTML based on your required inputs. It uses a twig "form theme" to determine what HTML is used for each different kind of input. Symfony already provides a form theme for Bootstrap 5 so it should be pretty straight-forward to modify the bootstrap theme to be a MDB theme. This would greatly increase compatibility with symfony and make it much easier to use. If there is no form theme for MDB available would it be possible for that to be created?

Resources (screenshots, code snippets etc.)

Link to Bootstrap 5 form theme: https://github.com/symfony/symfony/blob/5.4/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_5_layout.html.twig


Copleutre priority answered 11 months ago


Hello, It would be a real added value for all your Symfony users :-) Could you reopen the idea with your team ? Thank you


Grzegorz Bujański staff answered 3 years ago


Unfortunately, not at the moment. Especially since these templates are created by symphony and they would have to be added in the symphony repository.


zakbahm free commented 3 years ago

Is this something that I could pay to have done? There are form themes that come with symfony but you can create form themes of your own (https://symfony.com/doc/current/form/form_themes.html#creating-your-own-form-theme) and just add them to your project. This is what I was thinking would be done. They could eventually be added to the Symfony project but that isn't really necessary.


Grzegorz Bujański staff commented 3 years ago

We will discuss this possibility in the team and maybe one day we will add such a template.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.8.0
  • Device: Laptop
  • Browser: Firefox
  • OS: Linux
  • Provided sample code: No
  • Provided link: Yes