I'm trying to make a checkbox for "Terms of Use". This what I did so far:
->add('terms', 'checkbox', array(
'mapped' => false,
'required' => false,
'label' => "J'accepte les Conditions Générales de Vente et les Conditions
Générales d'Utilisation",
'attr' => array('style' => 'margin-left:-257px;'),
'constraints' => new True(array('message' => "SVP acceptez les Conditions
Générales de Vente et
les Conditions Générales
d'Utilisation")),
))
I want to make the section "Conditions Générales de Vente" of the label
as a link to a PDF file for the user to read.
When the user clicks on that link an Ajax function will call a Controller that will render the PDF.
I just can't figure out how to add <a></a>
inside the label
.