src/StartPlatz/Bundle/AlphaBundle/Resources/views/Default/anonym.html.twig line 1

Open in your IDE?
  1. {% extends "@StartPlatzStyleBundle/Bootstrap4/base.sp-connect.with-sections.html.twig" %}
  2. {% set currentPath = app.request.get('_route') %}
  3. {% block title %}
  4.     Login - STARTPLATZ
  5. {% endblock %}
  6. {% block additionalHead %}
  7.     {% include "@StartPlatzStyle/CSS/_sp-connect.version-2021-winter.html.twig" %}
  8.     <style>
  9.         {# leave this css here #}
  10.         body {
  11.             padding: 0 0 0 0;
  12.             margin: 0 0 0 0;
  13.             height: auto;
  14.             min-height:100vh;
  15.             width:100%;
  16.             display:flex; flex-direction:column; justify-content:center;
  17.             background-image: url("https://res.cloudinary.com/startplatz/image/upload/v1624055511/login_assets/Background_4.svg");
  18.             background-position: center;
  19.             background-repeat: no-repeat;
  20.             background-size: cover;
  21.         }
  22.     </style>
  23. {% endblock %}
  24. {% block content %}
  25.     {# pc view #}
  26.     <section class="body">
  27.         <div class="container px-lg-5">
  28.             <section class="row justify-content-center align-content-center px-2 mb-3 mb-md-0 px-lg-5 ">
  29.                 <div class="col-12 shadow rounded-lg p-lg-5 m-lg-0 px-md-5 py-md-3">
  30.                     {{ form_start(loginForm, {action: path('login_password_check') ~ '#login', attr: {class: 'form-horizontal'}}) }}
  31.                     {{ form_errors(loginForm) }}
  32.                     {% for flashMessage in app.session.flashbag.get('notice') %}
  33.                         <div class="row d-flex justify-content-center">
  34.                             <div class="col-md-12">
  35.                                 <div class="alert {% if 'SUCCESS' in flashMessage %}alert-success{% elseif 'ERROR' in flashMessage  %}alert-danger{% else %}alert-default{% endif %}" role="alert">{{ flashMessage|raw }}</div>
  36.                             </div>
  37.                         </div>
  38.                         {% endfor %}
  39.                     <section class="row rounded-lg px-lg-4 justify-content-center">
  40.                             <div class="col-12 col-lg-4">
  41.                                 <div class="row justify-content-md-center">
  42.                                     <div class="col-md-12 mt-2 mb-lg-4 ml-lg-0 pl-lg-0 mt-lg-0 pt-lg-0  ">
  43.                                         <a class="homebtnLogin " href="https://www.startplatz.de">
  44.                                             <svg xmlns="http://www.w3.org/2000/svg" width="42" height="42" fill="currentColor"
  45.                                                  class="bi bi-house-fill p-0 m-0" viewBox="0 0 16 16">
  46.                                                 <path fill-rule="evenodd" d="m8 3.293 6 6V13.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5V9.293l6-6zm5-.793V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"/>
  47.                                                 <path fill-rule="evenodd" d="M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"/>
  48.                                             </svg>
  49.                                         </a>
  50.                                     </div>
  51.                                     <div class="col-md-12 my-3 mt-lg-5 p-lg-0  p-md-0 text-center">
  52.                                         <img class="iconClass" src="https://res.cloudinary.com/startplatz/image/upload/v1624055539/login_assets/STARTPLATZ_Logo_wei%C3%9F_1.svg">
  53.                                         <h4 class="titleClass text-white mt-lg-2" style="font-family: 'Source Sans Pro', sans-serif;">SP-Connect Login</h4>
  54.                                     </div>
  55.                                 </div>
  56.                             </div>
  57.                             <div class="col-12 col-lg-8 bg-white rounded-lg">
  58.                                 {# login form #}
  59.                                     <form>
  60.                                         <p class="text-center pt-4">
  61.                                             Welcome to the internal area of STARTPLATZ <br>  Please log in to continue
  62.                                         </p>
  63.                                         <div class="row px-3">
  64.                                             <div class="form-group col-12">
  65.                                                 <label for="exampleInputEmail1">Your Email </label>
  66.                                                 {{ form_widget(loginForm.username, {'attr': {'class': 'form-control bg-light shadow-sm'}}) }}
  67.                                             </div>
  68.                                             <div class="form-group col-12 py-0">
  69.                                                 <label for="inputPassword1">Your Password</label>
  70.                                                 {{ form_widget(loginForm.password, {label: 'Dein Passwort', 'attr': {'class': 'form-control bg-light shadow-sm'}}) }}
  71.                                             </div>
  72.                                             <a class="ml-3 mt-1 mb-3">
  73.                                                 {{ form_row(loginForm.login, {label: 'Login', 'attr': {'class': 'form-control btn btn-success greenConnectButton border-0'}}) }}
  74.                                             </a>
  75.                                             <div class="col-12">
  76.                                                 <p>
  77.                                                     Forgot your password?
  78.                                                     <a  class="btn btn-sm btn-outline-dark mx-1 py-0 px-2"
  79.                                                         data-toggle="collapse" href="#showMagicLink"
  80.                                                         aria-controls="showMagicLink">
  81.                                                         click here
  82.                                                     </a>
  83.                                                 </p>
  84.                                             </div>
  85.                                         </div>
  86.                                     </form>
  87.                                     {# reset form #}
  88.                                     <form class="collapse bg-light rounded-lg mx-lg-2"
  89.                                           id="showMagicLink"
  90.                                           name="magicLink"
  91.                                           action="{{ path('login_magic_link') }}"
  92.                                           method="post"
  93.                                           novalidate
  94.                                           data-on-ajax-success="toSuccessToast|addToast"
  95.                                           data-on-submit="validateForm"
  96.                                           data-on-valid="sendForm"
  97.                                           data-on-invalid="showFormValidation">
  98.                                         <input type="hidden" name="magic_link_form" value="1">
  99.                                         <div class="form-group row justify-content-center">
  100.                                             <div class="col-12 px-2">
  101.                                                 <p class="pl-3 pt-3">
  102.                                                     <i class="fas fa-thumbs-up"></i>
  103.                                                     Please enter your e-mail address so we can send you a link to reset your password.
  104.                                                 </p>
  105.                                             </div>
  106.                                             <div class="col-7">
  107.                                                 <input type="email" class="form-control" id="email" name="email">
  108.                                             </div>
  109.                                             <div class="col-4">
  110.                                                 <div class="form-group">
  111.                                                     <input type="hidden" name="targetPath" value="{{ path('x_home') }}">
  112.                                                     <button type="submit" class="btn btn-success border-0 greenConnectButton">Send link</button>
  113.                                                 </div>
  114.                                             </div>
  115.                                         </div>
  116.                                     </form>
  117.                                     {{ form_rest(loginForm) }}
  118.                                     {{ form_end(loginForm) }}
  119.                             </div>
  120.                         </section>
  121.                 </div>
  122.             </section>
  123.         </div>
  124.     </section>
  125. {% endblock %}
  126. {% block help_button %}
  127. {% endblock %}