templates/frontend/competition/single.html.twig line 1

Open in your IDE?
  1. {% extends 'layout_frontend.html.twig' %}
  2. {% block title %}{{ parent() }} {{ competition.name }}{% endblock %}
  3. {% form_theme form 'shared/form/form_errors.html.twig' %}
  4. {% block content %}
  5.     <!--Main Content Start-->
  6.     <div class="main-content innerpagebg wf100 p80">
  7.         <!--News Large Page Start--> 
  8.         <!--Start-->
  9.         <div class="news-details">
  10.             <div class="container">
  11.                 <div class="row">
  12.                     <!--Event Start-->
  13.                     <div class="col-lg-12">
  14.                         {% include 'shared/dashboard/alerts.html.twig' %}
  15.                         <div class="news-details-wrap">
  16.                             <div class="news-large-post">
  17.                                 <div class="google-map">
  18.                                     <div class="google-map">
  19.                                         <div id="map-canvas"></div>
  20.                                     </div>
  21.                                 </div>
  22.                                 <div class="post-txt">
  23.                                     <h1>{{ competition.name }}</h1>
  24.                                     <ul class="post-meta">
  25.                                         <li><i class="fas fa-location-arrow"></i> {{ competition.event.name }}</li>
  26.                                         <li><i class="fas fa-map-marker-alt"></i> {{ competition.location }}</li>
  27.                                         <li><i class="fas fa-calendar-alt"></i> {{ competition.startDate|date('F j, Y') }}</li>
  28.                                     </ul>
  29.                                     {{ competition.description|raw }}
  30.                                 </div>
  31.                             </div>
  32.                         </div>
  33.                     </div>
  34.                     <!--Event End--> 
  35.                 </div>
  36.                 <div class="row">
  37.                     <div class="col-lg-12">
  38.                         <div class="contact-two wf100 p40-0">
  39.                             <!--Form Start-->
  40.                             <div class="contact-form">
  41.                                 <h2>Register for the competition</h2>
  42.                                 <form class="form" method="POST" action="">
  43.                                     <ul class="form-row">
  44.                                         <li class="half-col">
  45.                                             {{ form_widget(form.name, {'attr': {'class': 'form-control', 'placeholder': 'Your Name'} }) }}
  46.                                             {{ form_errors(form.name) }}
  47.                                         </li>
  48.                                         <li class="half-col">
  49.                                             {{ form_widget(form.email, {'attr': {'class': 'form-control', 'placeholder': 'Email'} }) }}
  50.                                             {{ form_errors(form.email) }}
  51.                                         </li>
  52.                                         <li class="full-col">
  53.                                             {{ form_widget(form.phoneNumber, {'attr': {'class': 'form-control', 'placeholder': "Your phone number"} }) }}
  54.                                             {{ form_errors(form.phoneNumber) }}
  55.                                         </li>
  56.                                         <li class="full-col">
  57.                                             {{ form_widget(form.teamName, {'attr': {'class': 'form-control', 'placeholder': "Your team's name"} }) }}
  58.                                             {{ form_errors(form.teamName) }}
  59.                                         </li>
  60.                                         <li class="full-col">
  61.                                             {{ form_widget(form.message, {'attr': {'class': 'form-control', 'placeholder': 'Write your message'} }) }}
  62.                                             {{ form_errors(form.message) }}
  63.                                         </li>
  64.                                         <li class="full-col">
  65.                                             {{ form_widget(form.downPaymentAmount, {'attr': {'class': 'form-control', 'placeholder': 'Enter your down payment amount (min $' ~ competition.minimumDownPayment ~ ')'} }) }}
  66.                                             {{ form_errors(form.downPaymentAmount) }}
  67.                                         </li>
  68.                                         <li class="full-col recaptcha">
  69.                                             <div id="g-recaptcha" class="g-recaptcha" data-sitekey="{{ recaptcha_site_key }}"></div>
  70.                                         </li>
  71.                                         <li class="full-col">
  72.                                             {{ form_widget(form._token) }}
  73.                                             <button type="submit">Continue to down payment</button>
  74.                                         </li>
  75.                                     </ul>
  76.                                 </form>
  77.                             </div>
  78.                             <!--Form End--> 
  79.                         </div>
  80.                     </div>
  81.                 </div>
  82.             </div>
  83.         </div>
  84.         <!--End--> 
  85.     </div>
  86.     <!--Main Content End--> 
  87. {% endblock %}
  88. {% block page_javascripts %}
  89.     <script type="text/javascript">
  90.         $(document).ready(function () {
  91.             codeAddress("{{ competition.location }}");
  92.         });
  93.     </script>
  94. {% endblock %}