templates/layout/partials/modal.html.twig line 1

Open in your IDE?
  1. <div class="modal fade" id="login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  2.       <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  3.         <div class="modal-content">
  4.             {% if error is defined and  error %}
  5.                         <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  6.             {% endif %}
  7.             {% if app.user %}
  8.                         <div class="mb-3">
  9.                             You are logged in as {{ app.user.username }}, <a href="{{ path('app_logout') }}">Logout</a>
  10.                         </div>
  11.              {% endif %}
  12.             <div class="modal-header tit-up">
  13.                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  14.                 <h4 class="modal-title">Customer Login</h4>
  15.             </div>
  16.             <div class="modal-body customer-box">
  17.                 <!-- Nav tabs -->
  18.                 <ul class="nav nav-tabs">
  19.                 {% if  app.user %}
  20.                     
  21.                 {% else  %}
  22.                     <li><a class="active" href="#Login" data-toggle="tab">Login</a></li>
  23.                     <li><a href="#Registration" data-toggle="tab">Registration</a></li>
  24.                 {% endif  %}
  25.                 </ul>
  26.                 <!-- Tab panes -->
  27.                 <div class="tab-content">
  28.                 {# if  app.user %} 
  29.                     
  30.                 {% else  %}
  31.                     <div class="tab-pane active" id="Login">
  32.                         {{ render(path('app_login')) }}
  33.                     </div>
  34.                     <div class="tab-pane" id="Registration">
  35.                         {{ render(path('app_register')) }}
  36.                     </div>
  37.                 {% endif  #}
  38.                 </div>
  39.             </div>
  40.         </div>
  41.       </div>
  42.     </div>