templates/bundles/SyliusShopBundle/NoConnected.html.twig line 1

Open in your IDE?
  1. {% if app.user is null%}
  2.     {% extends '@SyliusShop/layout.html.twig' %}
  3.     {% block content %}
  4.     <div class="container-h" id="div-not-connected">
  5.         <div>
  6.             {% if app.request.pathInfo == '/annonce-not-connected'%}
  7.             <h1>Déposer votre Annonce</h1>
  8.             {% elseif app.request.pathInfo == '/evenement-not-connected' %}
  9.             <h1>Créer votre Évènement</h1>
  10.             {% endif %}
  11.         </div>
  12.         <div>
  13.             <p>Pour {% if app.request.pathInfo == '/annonce-not-connected'%} déposer votre annonce {% elseif app.request.pathInfo == '/evenement-not-connected' %} créer votre évènement {% endif %}, vous devez être connecté.<br><br>
  14.                 Si vous ne disposez pas d'un compte, <a href="{{ path('sylius_shop_register') }}">créer le vôtre ici</a><br><br>
  15.                 ou si vous en avez déjà un, <a href="{{ path('sylius_shop_login') }}">connectez-vous</a>.
  16.             </p>
  17.         </div>
  18.     </div>
  19.         <style>
  20.             /*#div-not-connected{*/
  21.             /*    display: flex;*/
  22.             /*    flex-direction: column;*/
  23.             /*    justify-content: center;*/
  24.             /*    align-items: center;*/
  25.             /*    height: 50vh;*/
  26.             /*}*/
  27.             /*#div-not-connected div:first-of-type{*/
  28.             /*    margin-bottom: 20px;*/
  29.             /*}*/
  30.             /*#div-not-connected div:last-of-type{*/
  31.             /*    !*flex-direction: column;*!*/
  32.             /*    !*justify-content: center;*!*/
  33.             /*    !*align-items: center;*!*/
  34.             /*}*/
  35.             /*#div-not-connected p{*/
  36.             /*    font-size: var(--sm-fz);*/
  37.             /*    max-width: 500px;*/
  38.             /*    text-align: center;*/
  39.             /*}*/
  40.             /*#div-not-connected a{*/
  41.             /*    text-decoration: underline;*/
  42.             /*    color: inherit;*/
  43.             /*}*/
  44.         </style>
  45.     {% endblock %}
  46. {% endif %}