templates/home/parts/contact_us.html.twig line 1

Open in your IDE?
  1. <style>
  2.     .user-box {
  3.         position: relative;
  4.     }
  5.     .user-box input {
  6.         width: 100%;
  7.         /*padding: 10px 0;*/
  8.         font-size: 16px;
  9.         color: white !important;
  10.         margin-bottom: 30px;
  11.         border: none;
  12.         border-bottom: 1px solid white !important;
  13.         outline: none;
  14.         background: transparent;
  15.     }
  16.     .user-box label {
  17.         /*position: absolute;*/
  18.         /*top: 0;*/
  19.         /*left: 0;*/
  20.         /*padding: 10px 0;*/
  21.         font-size: 16px;
  22.         color: white
  23.     }
  24.     .user-box-radio {
  25.         color: white
  26.     }
  27.     textarea {
  28.         width: 100%;
  29.     }
  30. </style>
  31. <div class="container bg-gradient-dark">
  32.     <div class="row">
  33.         <div class="col-12 col-md-4 mx-auto">
  34.             <form class="py-5" method="post" action="{{ path('website_contacts_new') }}">
  35.                 <div class="user-box">
  36.                     <label for="firstName">First Name<sup style="padding-left:5px">*</sup></label>
  37.                     <input type="text" name="firstName" required>
  38.                 </div>
  39.                 <div class="user-box">
  40.                     <label>Last Name<sup style="padding-left:5px">*</sup></label>
  41.                     <input type="text" name="lastName" required>
  42.                 </div>
  43.                 <div class="user-box">
  44.                     <label>Email<sup style="padding-left:5px">*</sup></label>
  45.                     <input type="email" name="email" required>
  46.                 </div>
  47.                 <div class="user-box">
  48.                     <label>Phone<sup style="padding-left:5px">*</sup></label>
  49.                     <input type="text" name="mobile" required>
  50.                 </div>
  51.                 <div class="user-box-radio">
  52.                     <label class="pr-5" for="user-box-radio">Interested in:</label>
  53.                     {% set products = Product.getProductFooter %}
  54.                     {% for product in products %}
  55.                         <div>
  56.                         <span style="white-space: nowrap">
  57.                         <input type="radio" name="service" required
  58.                                value="{{ product.product }}" id="{{ product.product }}">
  59.                         <label class="pr-5" for="{{  product.product }}">{{ product.product }}</label>
  60.                         </span>
  61.                         </div>
  62.                     {% endfor %}
  63.                 </div>
  64.                 <div class="user-box">
  65.                     <label class="pr-5" for="message-box">Message:</label>
  66.                     <textarea style="width: 100%" rows="7" name="notes" id="message-box"></textarea>
  67.                 </div>
  68.                 <button class="btn btn-outline-success mt-3">Submit</button>
  69.             </form>
  70.         </div>
  71.     </div>
  72. </div>