templates/components/modals/auth.html.twig line 1

Open in your IDE?
  1. <section class="auth-modal-layer" id="authModal" data-auth-screen="login" aria-hidden="true" inert>
  2.   <div class="auth-modal-dialog" role="dialog" aria-modal="true" aria-label="Авторизация">
  3.     <button class="auth-close" type="button" aria-label="Закрыть" data-auth-close>
  4.       <svg viewBox="0 0 16 16" fill="none" aria-hidden="true">
  5.         <path d="m4.5 4.5 7 7m0-7-7 7" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
  6.       </svg>
  7.     </button>
  8.     <img class="auth-logo" src="/assets/logo.svg" alt="PlayPapa" />
  9.     <section class="auth-view auth-view-login" aria-label="Вход">
  10.       <h2>С возвращением!</h2>
  11.       <div class="auth-tabs" role="tablist" aria-label="Авторизация">
  12.         <button class="auth-tab" type="button" role="tab" data-auth-screen-target="login">Вход</button>
  13.         <button class="auth-tab" type="button" role="tab" data-auth-screen-target="register">Регистрация</button>
  14.       </div>
  15.       <form class="auth-form" data-auth-form="login">
  16.         <input type="hidden" name="redirect" value="" data-auth-return />
  17.         <label class="auth-field">
  18.           <img src="/assets/auth-user.svg" alt="" />
  19.           <input type="text" name="login" placeholder="Логин" autocomplete="username" />
  20.         </label>
  21.         <label class="auth-field">
  22.           <img src="/assets/auth-lock.svg" alt="" />
  23.           <input type="password" name="password" placeholder="Пароль" autocomplete="current-password" />
  24.         </label>
  25.         <button class="auth-link auth-forgot" type="button" data-auth-screen-target="recover">Забыли пароль?</button>
  26.         <button class="auth-primary" type="submit">Войти</button>
  27.       </form>
  28.     </section>
  29.     <section class="auth-view auth-view-register" aria-label="Регистрация">
  30.       <h2>Создание аккаунта</h2>
  31.       <div class="auth-tabs" role="tablist" aria-label="Авторизация">
  32.         <button class="auth-tab" type="button" role="tab" data-auth-screen-target="login">Вход</button>
  33.         <button class="auth-tab" type="button" role="tab" data-auth-screen-target="register">Регистрация</button>
  34.       </div>
  35.       <form class="auth-form" data-auth-form="register">
  36.         <input type="hidden" name="redirect" value="" data-auth-return />
  37.         <label class="auth-field">
  38.           <img src="/assets/auth-user.svg" alt="" />
  39.           <input type="text" name="register-login" placeholder="Логин" autocomplete="username" />
  40.         </label>
  41.         <label class="auth-field">
  42.           <img src="/assets/auth-mail.svg" alt="" />
  43.           <input type="email" name="register-email" placeholder="E-mail" autocomplete="email" />
  44.         </label>
  45.         <label class="auth-field">
  46.           <img src="/assets/auth-lock.svg" alt="" />
  47.           <input type="password" name="register-password" placeholder="Пароль" autocomplete="new-password" />
  48.         </label>
  49.         <label class="auth-field">
  50.           <img src="/assets/auth-lock.svg" alt="" />
  51.           <input type="password" name="register-password-repeat" placeholder="Повторите пароль" autocomplete="new-password" />
  52.         </label>
  53.         <label class="auth-consent">
  54.           <input type="checkbox" checked />
  55.           <span aria-hidden="true"></span>
  56.           <b>Я принимаю <a href="#">условия</a> и <a href="#">политику конфиденциальности</a>.</b>
  57.         </label>
  58.         <button class="auth-primary" type="submit">Создать аккаунт</button>
  59.       </form>
  60.     </section>
  61.     <section class="auth-view auth-view-recover" aria-label="Восстановление пароля">
  62.       <button class="auth-back" type="button" data-auth-screen-target="login">
  63.         <svg viewBox="0 0 16 16" fill="none" aria-hidden="true">
  64.           <path d="M10.5 3.5 6 8l4.5 4.5" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" />
  65.         </svg>
  66.         <span>Назад ко входу</span>
  67.       </button>
  68.       <h2>Восстановление пароля</h2>
  69.       <p class="auth-subtitle">Введите e-mail - пришлем ссылку для сброса пароля.</p>
  70.       <form class="auth-form" data-auth-form="recover">
  71.         <label class="auth-field">
  72.           <img src="/assets/auth-mail.svg" alt="" />
  73.           <input type="email" name="recover-email" placeholder="you@mail.ru" autocomplete="email" />
  74.         </label>
  75.         <button class="auth-primary" type="submit">Отправить ссылку</button>
  76.       </form>
  77.     </section>
  78.     <section class="auth-view auth-view-success" aria-label="Письмо отправлено">
  79.       <div class="auth-status auth-status-success"><img src="/assets/auth-check.svg" alt="" /></div>
  80.       <h2>Проверьте почту</h2>
  81.       <p class="auth-message">Мы отправили ссылку для сброса пароля на <strong>you@mail.ru</strong>. Перейдите по ней, чтобы задать новый пароль.</p>
  82.       <button class="auth-text-action" type="button" data-auth-screen-target="recover">Не пришло письмо? Отправить повторно</button>
  83.       <button class="auth-secondary" type="button" data-auth-screen-target="login">Вернуться ко входу</button>
  84.     </section>
  85.     <section class="auth-view auth-view-error" aria-label="Ошибка отправки">
  86.       <div class="auth-status auth-status-error"><img src="/assets/auth-error.svg" alt="" /></div>
  87.       <h2>Не удалось отправить</h2>
  88.       <p class="auth-message">Письмо не отправлено - возможно, неверный адрес или проблема со связью. Проверьте e-mail и попробуйте снова.</p>
  89.       <button class="auth-primary" type="button" data-auth-screen-target="recover">Попробовать снова</button>
  90.       <button class="auth-support" type="button">Написать в поддержку</button>
  91.     </section>
  92.   </div>
  93. </section>