templates/component/form/large_form.html.twig line 1

Open in your IDE?
  1. {#
  2.     component: form
  3.     heading: [{
  4.         title {string}: Titre 
  5.         titleAnnex {string}: Titre annexe
  6.     }]
  7.     image {image}: 
  8.       size: {
  9.         width: "1440",
  10.         height: "1045"
  11.       }
  12.     form {
  13.         action {string}: Action du formulaire
  14.         inputs {array}: tableau d'inputs
  15.         buttonText {string}: Texte du bouton d'envoi
  16.         information {string}: Texte d'information
  17.         mandatory {string}: Texte de champs obligatoires
  18.     }
  19. #}
  20. {% set props = {
  21.     heading:null,
  22.     image:null,
  23.     form:null
  24. }|merge(props|default({}))  %}
  25. <section
  26.     data-component="contact-form" class="ContactForm-component" id="fm">
  27.     {# Heading #}
  28.     {% include "component/heading.html.twig" with {
  29.     props: props.heading
  30.   } %}
  31.     <div
  32.         class="ContactForm-content">
  33.         {# Background Image #}
  34.         <div class="ContactForm-backgroundImage">
  35.             {% include "component/image.html.twig" with {
  36.                 props: props.image
  37.             } %}
  38.             {# {% include "component/picture.html.twig" with {
  39.                 props: props.image|merge({
  40.                     srcWebp: (props.image.src) ? asset(props.image.src | imagine_filter('convert_img_to_webp')) : ''
  41.                 })
  42.             } %} #}
  43.         </div>
  44.         <div class="l-container">
  45.             <div
  46.                 class="l-row u-center">
  47.                 {# Main #}
  48.                 <div class="l-column ContactForm-main" style="background-image: url({{ asset('build/images/quote-form-pattern.jpg') }});">
  49.                     {% include "component/form/form.html.twig" with {
  50.                         props: props.form
  51.                     } %}
  52.                 </div>
  53.             </div>
  54.         </div>
  55.     </div>
  56. </section>