login.html 1.3 KB

1234567891011121314151617181920212223242526
  1. {{ $v := version }}<!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Панель администрирования</title>
  7. <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
  8. <link href="/static/admin/css/bootstrap.min.css?v={{ $v }}" rel="stylesheet">
  9. <link href="/static/admin/css/dashboard.css?v={{ $v }}" rel="stylesheet">
  10. </head>
  11. <body class="login-page">
  12. <main class="login-form">
  13. <form method="post">
  14. <div class="form-floating">
  15. <input type="text" name="username" class="form-control {{ if .hasErrors }}is-invalid{{ end }}" value="{{ .form.Username }}" id="formUsername" placeholder="Имя пользователя">
  16. <label for="formUsername">Имя пользователя</label>
  17. </div>
  18. <div class="form-floating">
  19. <input type="password" name="password" class="form-control {{ if .hasErrors }}is-invalid{{ end }}" value="{{ .form.Password }}" id="formPassword" placeholder="Пароль">
  20. <label for="formPassword">Пароль</label>
  21. </div>
  22. <button class="w-100 btn btn-primary" type="submit">Авторизоваться</button>
  23. </form>
  24. </main>
  25. </body>
  26. </html>