Category : twitter-bootstrap

I have a simple contact form. Within the form I would like to change the color of the help text In FormType I added i. e. the name field: $builder ->add(‘name’, TextType::class, [‘help’ => ‘Pflichtfeld’]) In Twig I have this: <div class="row"> <div class="col"> {{ form_label(ContactForm.name)}} {{ form_widget(ContactForm.name) }} {{ form_help(ContactForm.name, {‘help_attr’: {‘class’:’text-danger’}}) }} </div> ..

Read more

I am building a form in Symfony 4 and I have multiple groups of radio inputs on my page and I need to replace the form-check form-check-inline classes that is placed around each radio input. This is the output html: <div class="form-check form-check-inline"> <input type="radio" id="feedback_answer_1_0" name="feedback[answer_1]" required="required" class="form-check-input" value="1"> <label class="form-check-label required" for="feedback_answer_1_0">1</label> </div> ..

Read more