templates/checkout/checkout_address.html.twig line 69

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
  2. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  3. {% block content %}
  4.     <div class="py-5 bg-light">
  5.         <div class="container">
  6.             <div class="row">
  7.                 <div class="col-md-8">
  8.                     <h4 class="mb-3">{{ 'checkout.billing-address' | trans }}</h4>
  9.                     {% if(not app.user) %}
  10.                         <div class="mb-5">
  11.                             {% include 'account/partial/social_buttons.html.twig' with {'connect': false} %}
  12.                         </div>
  13.                     {% endif %}
  14.                     {{ form_start(form) }}
  15.                         <div class="row">
  16.                             <div class="col-md-6">
  17.                                 {{ form_row(form.firstname) }}
  18.                             </div>
  19.                             <div class="col-md-6">
  20.                                 {{ form_row(form.lastname) }}
  21.                             </div>
  22.                         </div>
  23.                         {{ form_row(form.email) }}
  24.                         {{ form_row(form.company) }}
  25.                         {{ form_row(form.street) }}
  26.                         <div class="row">
  27.                             <div class="col-md-4">
  28.                                 {{ form_row(form.zip) }}
  29.                             </div>
  30.                             <div class="col-md-8">
  31.                                 {{ form_row(form.city) }}
  32.                             </div>
  33.                         </div>
  34.                         {{ form_row(form.countryCode) }}
  35.                         <hr/>
  36.                     <div class="form-group">
  37.                         {% do form.terms.setRendered %}
  38.                         <div class="custom-control custom-checkbox">
  39.                             <input type="checkbox" id="{{ form.terms.vars.id }}" name="{{ form.terms.vars.name }}" {{ form.terms.vars.required ? 'required="required"' : '' }} class="custom-control-input" value="{{ form.terms.vars.value }}">
  40.                             <label class="checkbox-custom custom-control-label {{ form.terms.vars.required ? 'required' : '' }}" for="{{ form.terms.vars.id }}">
  41.                                 {{ 'checkout.terms' | trans([document.getProperty('terms_and_conditions')]) | raw }}
  42.                             </label>
  43.                         </div>
  44.                     </div>
  45. {#                    {{ form_widget(form.terms) }}#}
  46. {#                        {{ form_row(form.terms, {'label': ( 'checkout.terms' | trans([document.getProperty('terms_and_conditions')]) | raw ), label_attr: {class: 'checkbox-custom'} }) }}#}
  47.                         <hr/>
  48.                     {{ form_row(form._submit, {'attr': {'class': 'btn-success btn-lg btn-block'}}) }}
  49.                     {{ form_end(form) }}
  50.                 </div>
  51.                 <div class="col-md-4 mb-4 mt-5 mt-md-0">
  52.                     {% include 'cart/shared/order_summary.html.twig' %}
  53.                 </div>
  54.             </div>
  55.         </div>
  56.     </div>
  57. {% endblock %}