templates/plainte/_form.html.twig line 1
{{ form_start(form) }}<div class="row g-3"><div class="col-md-6"><div class="form-floating">{{ form_widget(form.nom,{'attr':{'class':"form-control"}}) }}<label for="name">Nom</label></div></div><div class="col-md-6"><div class="form-floating">{{ form_widget(form.prenom,{'attr':{'class':"form-control"}}) }}<label for="email">Prénom</label></div></div><div class="col-md-6"><div class="form-floating">{{ form_widget(form.telephone,{'attr':{'class':"form-control"}}) }}<label for="name">Téléphone</label></div></div><div class="col-md-6"><div class=""><select class="form-control" name="motif" required="required" style="height: 58px;"><option value="">Motif</option><option value="Plainte">Plainte</option><option value="Reclamation">Réclamation</option></select></div></div><div class="col-12"><div class="form-floating">{{ form_widget(form.description,{'attr':{'class':"form-control"}}) }}<label for="message">Description</label></div></div><div class="col-12"><button class="btn btn-primary py-3 px-5" type="submit">{{ button_label|default('Envoyer') }}</button></div></div><script>function chiffres(event) {// Compatibilité IE / Firefoxif(!event&&window.event) {event=window.event;}// DOMif(event.keyCode == 8) {}else if(event.keyCode == 127){}else if(event.which < 48 || event.which > 57 ) {event.preventDefault();event.stopPropagation();event.returnValue = false;event.cancelBubble = true;jError("Veuilllez saisir des chiffres uniquement svp !");//envisager une redirection si possible}}</script>{{ form_end(form) }}