themes/BootstrapExtendTheme/SyliusShopBundle/views/login.html.twig line 1

Open in your IDE?
  1. {% extends is_mobile.check ? '@templates/Mobile/Shop/layout.html.twig' : '@templates/Front/Shop/layout.html.twig' %}
  2. {% block title %} {{ 'app.ui.login'|trans }} | Roviniete.ro{% endblock %}
  3. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  4. {% block content %}
  5.     {% include '@templates/Front/Shop/login_header.html.twig' %}
  6.     {{ sonata_block_render_event('sylius.shop.login.after_content_header') }}
  7.     <div class="row">
  8.         <div class="col-12 col-md-6 mb-3">
  9.             {{ sonata_block_render_event('sylius.shop.login.before_login') }}
  10.             <div class="card">
  11.                 <div class="card-body">
  12.                     <h4>{{ 'sylius.ui.registered_customers'|trans }}</h4>
  13.                     <p>{{ 'sylius.ui.if_you_have_an_account_sign_in_with_your_email_address'|trans }}.</p>
  14.                     {{ form_start(form, {'action': path('sylius_shop_login_check'), 'attr': {'class': 'loadable', 'novalidate': 'novalidate'}}) }}
  15.                         {% include '@SyliusShop/Login/_form.html.twig' %}
  16.                         {{ sonata_block_render_event('sylius.shop.login.form', {'form': form}) }}
  17.                         <button type="submit" class="btn btn-primary">{{ 'sylius.ui.login'|trans }}</button>
  18.                         <a href="{{ path('sylius_shop_request_password_reset_token') }}" class="btn btn-link">{{ 'sylius.ui.forgot_password'|trans }}</a>
  19.                         <input type="hidden" name="_csrf_shop_security_token" value="{{ csrf_token('shop_authenticate') }}">
  20.                     {{ form_end(form, {'render_rest': false}) }}
  21.                 </div>
  22.             </div>
  23.             {{ sonata_block_render_event('sylius.shop.login.after_login') }}
  24.         </div>
  25.         <div class="col-12 col-md-6 mb-3">
  26.             {{ sonata_block_render_event('sylius.shop.login.before_register') }}
  27.             <div class="card">
  28.                 <div class="card-body">
  29.                     {% include '@SyliusShop/Login/_register.html.twig' %}
  30.                 </div>
  31.             </div>
  32.             {{ sonata_block_render_event('sylius.shop.login.after_register') }}
  33.         </div>
  34.     </div>
  35.     <script>
  36.         $(document).ready(function () {
  37.             let username = $('#_username');
  38.             let label = $('label[for=' + username.attr('id') + ']');
  39.             label.html('{{ 'app.ui.email_address'|trans }}')
  40.         })
  41.     </script>
  42. {% endblock %}