templates/view/lost-password.html.twig line 1

Open in your IDE?
  1. {% extends 'layout/base.html.twig' %}
  2. {% block meta %}
  3.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  4.     <meta content="#0095ab" name="theme-color" />
  5.     <meta name="description" content="Morava servis login" />
  6. {% endblock %}
  7. {% block stylesheets %}
  8.     <link href="assets/logo.svg" rel="icon" type="image/svg" />
  9.     <link rel="apple-touch-icon" href="assets/logo.svg" />
  10.     <link
  11.             rel="preload"
  12.             href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
  13.             as="style"
  14.             onload="this.onload=null;this.rel='stylesheet'"
  15.     />
  16.     <noscript>
  17.         <link
  18.                 rel="stylesheet"
  19.                 href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
  20.         />
  21.     </noscript>
  22.     <link
  23.             rel="stylesheet"
  24.             href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
  25.     />
  26.     <link rel="preconnect" href="https://fonts.gstatic.com" />
  27.     <link
  28.             href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap"
  29.             rel="preload"
  30.             as="font"
  31.             type="text/css"
  32.             crossorigin="anonymous"
  33.     />
  34.     <style>
  35.          body {
  36.             font-family: 'Montserrat', sans-serif !important;
  37.         }
  38.         a,h2 {
  39.             color: #000c40 !important;
  40.         }
  41.         .p-col-12 {
  42.             -webkit-box-flex: 0;
  43.             -ms-flex: 0 0 auto;
  44.             flex: 0 0 auto;
  45.             padding: 0.5rem;
  46.         }
  47.         .p-col-12 {
  48.             width: 100%;
  49.         }
  50.         .p-md-12,
  51.         .p-lg-6,
  52.         .p-lg-8,
  53.         .p-lg-9,
  54.         .p-xl-6 {
  55.             padding: 0.5rem;
  56.         }
  57.         @media screen and (min-width: 768px) {
  58.             .p-md-12 {
  59.                 -webkit-box-flex: 0;
  60.                 -ms-flex: 0 0 auto;
  61.                 flex: 0 0 auto;
  62.             }
  63.             .p-md-12 {
  64.                 width: 100%;
  65.             }
  66.         }
  67.         @media screen and (min-width: 992px) {
  68.             .p-lg-6,
  69.             .p-lg-8,
  70.             .p-lg-9 {
  71.                 -webkit-box-flex: 0;
  72.                 -ms-flex: 0 0 auto;
  73.                 flex: 0 0 auto;
  74.             }
  75.             .p-lg-6 {
  76.                 width: 50%;
  77.             }
  78.             .p-lg-8 {
  79.                 width: 66.6667%;
  80.             }
  81.             .p-lg-9 {
  82.                 width: 75%;
  83.             }
  84.         }
  85.         @media screen and (min-width: 1200px) {
  86.             .p-xl-6 {
  87.                 -webkit-box-flex: 0;
  88.                 -ms-flex: 0 0 auto;
  89.                 flex: 0 0 auto;
  90.             }
  91.             .p-xl-6 {
  92.                 width: 50%;
  93.             }
  94.         }
  95.         .p-mt-3 {
  96.             margin-top: 1rem !important;
  97.         }
  98.         .p-mt-5 {
  99.             margin-top: 2rem !important;
  100.         }
  101.         .p-py-5 {
  102.             padding-top: 2rem !important;
  103.             padding-bottom: 2rem !important;
  104.         }
  105.         .p-shadow-4 {
  106.             box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2),
  107.             0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
  108.         }
  109.         button {
  110.             border-radius: 0;
  111.         }
  112.         .p-button {
  113.             margin: 0;
  114.             display: inline-flex;
  115.             align-items: center;
  116.             vertical-align: bottom;
  117.             text-align: center;
  118.             overflow: hidden;
  119.             position: relative;
  120.         }
  121.         .p-inputtext {
  122.             margin: 0;
  123.         }
  124.         .p-fluid .p-inputtext {
  125.             width: 100%;
  126.         }
  127.         button {
  128.             background: #000c40 !important;
  129.            
  130.         }
  131.         button:hover {
  132.             opacity: 0.7;
  133.             cursor: pointer;
  134.         }
  135.         .container {
  136.             width: 100%;
  137.             height: 100vh;
  138.             display: flex;
  139.             flex-wrap: wrap;
  140.         }
  141.         .formWrapper {
  142.             display: flex;
  143.             flex-direction: column;
  144.             align-items: center;
  145.             justify-content: space-evenly;
  146.             background-color: #fff;
  147.             border-radius: 5px;
  148.         }
  149.         .formWrapper > div {
  150.             width: 70% !important;
  151.         }
  152.         .formWrapper button > img {
  153.             width: 20% !important;
  154.         }
  155.         .formWrapper > button {
  156.             display: flex;
  157.             justify-content: space-between;
  158.         }
  159.         .container > div:first-child {
  160.             background: #0095ab;
  161.         }
  162.         .display-flex {
  163.             display: flex;
  164.             justify-content: center;
  165.             align-items: center;
  166.         }
  167.         input:not(:focus) {
  168.             background-color: #e9e5e5 !important;
  169.         }
  170.         @media only screen and (max-width: 1200px) {
  171.             .imageDiv {
  172.                 display: none !important;
  173.             }
  174.             .container > div:first-child {
  175.                 background: #fff;
  176.             }
  177.             .p-shadow-4 {
  178.                 box-shadow: none !important;
  179.             }
  180.             .loginWrapper {
  181.                 max-height: 100vh;
  182.             }
  183.             .formWrapper {
  184.                 height: 100vh;
  185.             }
  186.             .formWrapper > div {
  187.                 width: 100% !important;
  188.             }
  189.             label {
  190.             text-align: center !important;
  191.             line-height:1.8 !important;
  192.         }
  193.         }
  194.         @media only screen and (min-width: 601px) and (max-width: 1200px) and (orientation: portrait) {
  195.             h2{
  196.                     margin: 0 auto !important;
  197.                     line-height: 0 !important;
  198.             }
  199.             .p-inputtext {
  200.                 font-size: 1.5rem !important;
  201.             }
  202.             .formWrapper > div {
  203.                 width: 100% !important;
  204.                 line-height: 4 !important;
  205.             }
  206.             button {
  207.                 transform: scale(1.6);
  208.             }
  209.         }
  210.         :root {
  211.             --surface-a: #ffffff;
  212.             --surface-b: #f8f9fa;
  213.             --surface-c: #e9ecef;
  214.             --surface-d: #dee2e6;
  215.             --surface-e: #ffffff;
  216.             --surface-f: #ffffff;
  217.             --text-color: #495057;
  218.             --text-color-secondary: #6c757d;
  219.             --primary-color: #2196f3;
  220.             --primary-color-text: #ffffff;
  221.             --font-family: 'Montserrat', sans-serif !important;
  222.         }
  223.         * {
  224.             box-sizing: border-box;
  225.         }
  226.         .p-inputtext {
  227.             font-family: 'Montserrat', sans-serif !important;
  228.             font-size: 1rem;
  229.             color: #495057;
  230.             background: #ffffff;
  231.             padding: 0.5rem 0.5rem;
  232.             border: 1px solid #ced4da;
  233.             appearance: none;
  234.             border-radius: 3px;
  235.         }
  236.         .p-inputtext:enabled:focus {
  237.             outline: 0 none;
  238.             outline-offset: 0;
  239.             box-shadow: 0 0 0 0.2rem #a6d5fa;
  240.             border-color: #2196f3;
  241.         }
  242.         .p-button {
  243.             color: #ffffff;
  244.             background: #2196f3;
  245.             border: 1px solid #2196f3;
  246.             padding: 0.5rem 1rem;
  247.             font-size: 1rem;
  248.             border-radius: 3px;
  249.         }
  250.         form {
  251.             display: flex;
  252.             flex-direction: column;
  253.             align-items: center;
  254.         }
  255.         .p-text-center {
  256.             text-align: center !important;
  257.         }
  258.         form > div > label {
  259.             text-align: center !important;
  260.             line-height:1.5;
  261.         }
  262.         .back-to-login{
  263.             text-decoration:none;
  264.         }
  265.     </style>
  266. {% endblock %}
  267. {% block title %}Lost password - {{ parent() }}{% endblock %}
  268. {% block body %}
  269.     <section class="container">
  270.         <div class="loginWrapper display-flex p-col-12 p-md-12 p-xl-6">
  271.             <div class="formWrapper p-col-12 p-lg-8 p-shadow-4 p-py-5">
  272.                         <img src="assets/logo.svg" width="70%" alt="morava service logo">
  273.                 <div class="p-fluid p-mt-3">
  274.                    <h2>
  275.                     {% trans %}Did you{% endtrans %} <span>{% trans %}forget your password?{% endtrans %}</span>
  276.                 </h2>
  277.                 {% if error_message is defined %}
  278.                     <p>{{ error_message }}</p>
  279.                 {% endif %}
  280.                 {{ form_start(form) }}
  281.                     {{ form_row(form.email, {'label': 'Enter your email address below to receive instructions on how to reset your password'|trans, 'attr': {'placeholder': 'Enter your email address'|trans,'class': 'p-col-12 p-lg-9 p-inputtext p-mt-3','autofocus': 'autofocus'}}) }}
  282.                     <button type="submit" class="p-button p-mt-5">
  283.                         {% trans %}Send email{% endtrans %}
  284.                     </button>
  285.                 {{ form_end(form) }}
  286.                 
  287.                 <a href="/login" class="back-to-login">
  288.                   &#8678;  {% trans %}Sign In{% endtrans %}
  289.                 </a>
  290.                 </div>
  291.             </div>
  292.         </div>
  293.         <div class="imageDiv display-flex p-col-12 p-lg-6">
  294.             <img
  295.                     src="assets/forgot_password-illustration.svg"
  296.                     alt="Login cover picture"
  297.                     width="70%"
  298.             />
  299.         </div>
  300.     </section>
  301. {% endblock %}