{% extends "@StartPlatzStyleBundle/Bootstrap4/base.sp-connect.with-sections.html.twig" %}{% set currentPath = app.request.get('_route') %}{% block title %} Login - STARTPLATZ{% endblock %}{% block additionalHead %} {% include "@StartPlatzStyle/CSS/_sp-connect.version-2021-winter.html.twig" %} <style> {# leave this css here #} body { padding: 0 0 0 0; margin: 0 0 0 0; height: auto; min-height:100vh; width:100%; display:flex; flex-direction:column; justify-content:center; background-image: url("https://res.cloudinary.com/startplatz/image/upload/v1624055511/login_assets/Background_4.svg"); background-position: center; background-repeat: no-repeat; background-size: cover; } </style>{% endblock %}{% block content %} {# pc view #} <section class="body"> <div class="container px-lg-5"> <section class="row justify-content-center align-content-center px-2 mb-3 mb-md-0 px-lg-5 "> <div class="col-12 shadow rounded-lg p-lg-5 m-lg-0 px-md-5 py-md-3"> {{ form_start(loginForm, {action: path('login_password_check') ~ '#login', attr: {class: 'form-horizontal'}}) }} {{ form_errors(loginForm) }} {% for flashMessage in app.session.flashbag.get('notice') %} <div class="row d-flex justify-content-center"> <div class="col-md-12"> <div class="alert {% if 'SUCCESS' in flashMessage %}alert-success{% elseif 'ERROR' in flashMessage %}alert-danger{% else %}alert-default{% endif %}" role="alert">{{ flashMessage|raw }}</div> </div> </div> {% endfor %} <section class="row rounded-lg px-lg-4 justify-content-center"> <div class="col-12 col-lg-4"> <div class="row justify-content-md-center"> <div class="col-md-12 mt-2 mb-lg-4 ml-lg-0 pl-lg-0 mt-lg-0 pt-lg-0 "> <a class="homebtnLogin " href="https://www.startplatz.de"> <svg xmlns="http://www.w3.org/2000/svg" width="42" height="42" fill="currentColor" class="bi bi-house-fill p-0 m-0" viewBox="0 0 16 16"> <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"/> <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"/> </svg> </a> </div> <div class="col-md-12 my-3 mt-lg-5 p-lg-0 p-md-0 text-center"> <img class="iconClass" src="https://res.cloudinary.com/startplatz/image/upload/v1624055539/login_assets/STARTPLATZ_Logo_wei%C3%9F_1.svg"> <h4 class="titleClass text-white mt-lg-2" style="font-family: 'Source Sans Pro', sans-serif;">SP-Connect Login</h4> </div> </div> </div> <div class="col-12 col-lg-8 bg-white rounded-lg"> {# login form #} <form> <p class="text-center pt-4"> Welcome to the internal area of STARTPLATZ <br> Please log in to continue </p> <div class="row px-3"> <div class="form-group col-12"> <label for="exampleInputEmail1">Your Email </label> {{ form_widget(loginForm.username, {'attr': {'class': 'form-control bg-light shadow-sm'}}) }} </div> <div class="form-group col-12 py-0"> <label for="inputPassword1">Your Password</label> {{ form_widget(loginForm.password, {label: 'Dein Passwort', 'attr': {'class': 'form-control bg-light shadow-sm'}}) }} </div> <a class="ml-3 mt-1 mb-3"> {{ form_row(loginForm.login, {label: 'Login', 'attr': {'class': 'form-control btn btn-success greenConnectButton border-0'}}) }} </a> <div class="col-12"> <p> Forgot your password? <a class="btn btn-sm btn-outline-dark mx-1 py-0 px-2" data-toggle="collapse" href="#showMagicLink" aria-controls="showMagicLink"> click here </a> </p> </div> </div> </form> {# reset form #} <form class="collapse bg-light rounded-lg mx-lg-2" id="showMagicLink" name="magicLink" action="{{ path('login_magic_link') }}" method="post" novalidate data-on-ajax-success="toSuccessToast|addToast" data-on-submit="validateForm" data-on-valid="sendForm" data-on-invalid="showFormValidation"> <input type="hidden" name="magic_link_form" value="1"> <div class="form-group row justify-content-center"> <div class="col-12 px-2"> <p class="pl-3 pt-3"> <i class="fas fa-thumbs-up"></i> Please enter your e-mail address so we can send you a link to reset your password. </p> </div> <div class="col-7"> <input type="email" class="form-control" id="email" name="email"> </div> <div class="col-4"> <div class="form-group"> <input type="hidden" name="targetPath" value="{{ path('x_home') }}"> <button type="submit" class="btn btn-success border-0 greenConnectButton">Send link</button> </div> </div> </div> </form> {{ form_rest(loginForm) }} {{ form_end(loginForm) }} </div> </section> </div> </section> </div> </section>{% endblock %}{% block help_button %}{% endblock %}