rDrama/files/templates/login.html

131 lines
4.4 KiB
HTML
Raw Normal View History

2021-10-15 14:08:27 +00:00
<!DOCTYPE html>
2021-12-14 22:48:37 +00:00
<html lang="en">
2021-12-05 16:17:11 +00:00
2021-10-15 14:08:27 +00:00
<head>
2021-12-29 08:40:06 +00:00
<meta name="description" content="{{'DESCRIPTION' | app_config}}">
2021-12-14 22:48:37 +00:00
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
2021-12-24 23:00:09 +00:00
<script src="/static/assets/js/bootstrap.js?a=3"></script>
2021-12-14 22:48:37 +00:00
2021-10-15 14:08:27 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
2021-12-27 05:07:19 +00:00
2021-10-15 14:08:27 +00:00
<meta name="author" content="">
2021-12-05 16:17:11 +00:00
{% block title %}
<title>Login - {{'SITE_NAME' | app_config}}</title>
{% endblock %}
2021-12-14 22:48:37 +00:00
<style>:root{--primary:#{{'DEFAULT_COLOR' | app_config}}</style>
2022-01-09 15:15:02 +00:00
<link rel="stylesheet" href="/static/assets/css/main.css?a=68">
2021-12-24 23:00:09 +00:00
<link rel="stylesheet" href="/static/assets/css/{{'DEFAULT_THEME' | app_config}}.css?a=3">
2021-12-05 16:15:02 +00:00
2021-12-14 22:48:37 +00:00
</head>
2021-12-05 16:15:02 +00:00
2021-12-14 22:48:37 +00:00
<body id="login">
2021-12-05 16:15:02 +00:00
2021-12-14 22:48:37 +00:00
<nav class="navbar navbar-expand-lg navbar-dark bg-transparent fixed-top border-0">
<div class="container-fluid">
2021-12-30 05:27:22 +00:00
<button class="navbar-toggler d-none" role="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive"
2021-12-14 22:48:37 +00:00
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</nav>
2021-12-05 16:15:02 +00:00
2021-12-05 16:17:11 +00:00
2021-12-14 22:48:37 +00:00
<div class="container-fluid position-absolute h-100 p-0 overflow-auto">
<div class="row no-gutters h-100">
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
<div class="col-12 col-md-6 my-auto p-3">
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
<div class="row justify-content-center">
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
<div class="col-10 col-md-7">
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
<div class="mb-5">
<a href="/" class="text-decoration-none"><span class="h3 text-primary">{{'SITE_NAME' | app_config}}</span></a>
</div>
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
{% block content %}
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
<div id="login-form" class="">
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
<h1 class="h2">Welcome back.</h1>
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
<p class="text-muted mb-md-5">Glad to have you back!</p>
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
{% if failed %}
<div class="alert alert-danger alert-dismissible fade show d-flex my-3" role="alert">
<i class="fas fa-exclamation-circle my-auto"></i>
<div>
Incorrect username, email address, or password.
<br>
<a href="/forgot" class="alert-link">Forgot password?</a>
</div>
2021-12-30 05:27:22 +00:00
<button role="button" class="close" data-bs-dismiss="alert" aria-label="Close">
2021-12-14 22:48:37 +00:00
<span aria-hidden="true">&times;</span>
</button>
</div>
{% endif %}
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
<form action="/login" method="post" class="mt-md-3" id="login">
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
<label for="username" class="mt-3">Username or Email Address</label>
2021-10-15 14:08:27 +00:00
2021-12-28 12:41:26 +00:00
<input autocomplete="off" class="form-control" id="username" aria-describedby="usernameHelp"
2021-12-14 22:48:37 +00:00
type="text" name="username" required="">
2021-12-28 12:41:26 +00:00
<input autocomplete="off" type="hidden" name="redirect" value="{{redirect}}">
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
<label for="password" class="mt-3">Password</label>
2021-10-15 14:08:27 +00:00
2021-12-28 12:41:26 +00:00
<input autocomplete="off" class="form-control" id="password" aria-describedby="passwordHelp"
2021-12-14 22:48:37 +00:00
type="password" name="password" required="">
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
<small><a href="/forgot">Forgot password?</a></small>
2021-12-06 15:32:37 +00:00
2021-12-14 22:48:37 +00:00
<button class="btn btn-primary login w-100 mt-3" id="login_button">Sign in</button>
2021-10-15 14:08:27 +00:00
2022-01-08 06:41:40 +00:00
{% if g.webview %} <div class="custom-control custom-checkbox mt-4">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="termsCheck" required>
<label class="custom-control-label terms" for="termsCheck">I accept the <a
href="/terms" {% if v and v.newtab and not g.webview %}target="_blank"{% endif %}>terms of use</a></label>
</div>
{% endif %}
2021-12-14 22:48:37 +00:00
<div class="text-center text-muted text-small mt-5 mb-3">
Don't have an account? <a href="/signup{{'?redirect='+redirect if redirect else ''}}" class="font-weight-bold toggle-login">Sign up</a>
</div>
</form>
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
</div>
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
{% endblock %}
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
</div>
</div>
</div>
<div class="col-12 col-md-6 d-none d-md-block">
<div class="splash-wrapper">
<div class="splash-overlay"></div>
2021-12-27 05:07:19 +00:00
<img alt="cover" loading="lazy" class="splash-img" src="/static/assets/images/{{'SITE_NAME' | app_config}}/cover.webp?a=3"></img>
2021-12-14 22:48:37 +00:00
</div>
</div>
</div>
</div>
2021-11-30 17:32:52 +00:00
2021-10-15 14:08:27 +00:00
</body>
</html>