Category : bootstrap-4

I’m using Symfony 5, Twig 3, Bootstrap, Webpack Encore and fullCalendar. The calendar is not rendered into my template. There is the code : in the template : {% extends “base.html.twig” %} {% block stylesheets %} {{ parent() }} {{ encore_entry_script_tags(‘fullcalendar_daygrid_css’) }} #calendar{ width: 80%; margin: auto; } {% endblock %} {% block title %} ..

Read more

The main problem (no label for choosen filname in bootstrap 4 upload field) was solved with the plugin (https://github.com/Johann-S/bs-custom-file-input) You can use the "bs-custom-file-input" to display the choosen filename in the bootstrap 4 file upload field. But this does not work when I use array Collections in my FormType. (to add multiple dynamically new upload ..

Read more

I am new to Symfony (and this is my first time posting here). I’m working on a project, however Symfony won’t load the css file. I have installed Asset already. I have tried loading the file both with asset{{}} and without. Also I tried including /public and without. The ways I have tried : <link ..

Read more

I’m trying to change a EntityType form view for something look like: http://davidstutz.de/bootstrap-multiselect/#templates I make change on my base.html.twig, by adding dependency, I make try bye using code exmaple on this twig file to see if all is fine and it’s working. Now the problem come when I make change on my _form.html.twig or in ..

Read more

I have a Symfony Form for a file upload looking like $builder ->add(‘imageFile’, FileType::class, [ ‘mapped’ => false, ‘required’ => false, ‘label’ =>’user.edit.select_image’, ‘constraints’ => $coverConstraints ]) ->getForm(); because of a bug in bootstrap 4 i have to theme it so it can show Select a file to upload in the box {% set tr ..

Read more