forked from rDrama/rDrama
Deux: Add 'Sign In with rDrama' UI button.
Also reduced the indentation in much of login.html to one tab rather than two since I was touching the file anyway.master
parent
88108594ad
commit
8c40f9e9a8
|
@ -36,86 +36,82 @@
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="container-fluid position-absolute h-100 p-0 overflow-auto">
|
<div class="container-fluid position-absolute h-100 p-0 overflow-auto">
|
||||||
<div class="row no-gutters h-100">
|
<div class="row no-gutters h-100">
|
||||||
|
<div class="col-12 col-md-6 my-auto p-3">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-10 col-md-7">
|
||||||
|
|
||||||
<div class="col-12 col-md-6 my-auto p-3">
|
<div class="mb-5">
|
||||||
|
<a href="/" class="text-decoration-none"><span class="h3 text-primary"></span></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row justify-content-center">
|
{% block content %}
|
||||||
|
|
||||||
<div class="col-10 col-md-7">
|
<div id="login-form" class="">
|
||||||
|
|
||||||
<div class="mb-5">
|
<h1 class="h2">Welcome back.</h1>
|
||||||
<a href="/" class="text-decoration-none"><span class="h3 text-primary"></span></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% block content %}
|
<p class="text-muted mb-md-5">Glad to have you back!</p>
|
||||||
|
|
||||||
<div id="login-form" class="">
|
{% 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>
|
||||||
|
<button class="close" data-bs-dismiss="alert" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<h1 class="h2">Welcome back.</h1>
|
<form action="/login" method="post" class="mt-md-3" id="login">
|
||||||
|
|
||||||
<p class="text-muted mb-md-5">Glad to have you back!</p>
|
<label for="username" class="mt-3">Username or Email Address</label>
|
||||||
|
|
||||||
{% if failed %}
|
<input autocomplete="off" class="form-control" id="username" aria-describedby="usernameHelp"
|
||||||
<div class="alert alert-danger alert-dismissible fade show d-flex my-3" role="alert">
|
type="text" name="username" required="">
|
||||||
<i class="fas fa-exclamation-circle my-auto"></i>
|
<input type="hidden" name="redirect" value="{{redirect}}">
|
||||||
<div>
|
|
||||||
Incorrect username, email address, or password.
|
|
||||||
<br>
|
|
||||||
<a href="/forgot" class="alert-link">Forgot password?</a>
|
|
||||||
</div>
|
|
||||||
<button class="close" data-bs-dismiss="alert" aria-label="Close">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<form action="/login" method="post" class="mt-md-3" id="login">
|
<label for="password" class="mt-3">Password</label>
|
||||||
|
|
||||||
<label for="username" class="mt-3">Username or Email Address</label>
|
<input autocomplete="off" class="form-control" id="password" aria-describedby="passwordHelp"
|
||||||
|
type="password" name="password" required="">
|
||||||
<input autocomplete="off" class="form-control" id="username" aria-describedby="usernameHelp"
|
|
||||||
type="text" name="username" required="">
|
|
||||||
<input type="hidden" name="redirect" value="{{redirect}}">
|
|
||||||
|
|
||||||
<label for="password" class="mt-3">Password</label>
|
|
||||||
|
|
||||||
<input autocomplete="off" class="form-control" id="password" aria-describedby="passwordHelp"
|
|
||||||
type="password" name="password" required="">
|
|
||||||
|
|
||||||
|
|
||||||
<small><a href="/forgot">Forgot password?</a></small>
|
<small><a href="/forgot">Forgot password?</a></small>
|
||||||
|
|
||||||
<button class="btn btn-primary login w-100 mt-3" id="login_button">Sign in</button>
|
<button class="btn btn-primary login w-100 mt-3" id="login_button">Sign In</button>
|
||||||
|
|
||||||
<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>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
<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>
|
</div>
|
||||||
|
|
||||||
</div>
|
</form>
|
||||||
|
|
||||||
|
{% if SITE_NAME == 'Deuxrama' or True -%}
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<div class="small pt-4">Already signed in on rDrama on this device?</div>
|
||||||
|
<a class="btn btn-primary login w-100 mt-3" id="loginshared_button" href="https://rdrama.net/loginshared/auth/deuxrama.net">Sign In with rDrama</a>
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-12 col-md-6 d-none d-md-block">
|
|
||||||
|
|
||||||
<div class="splash-wrapper">
|
|
||||||
|
|
||||||
<div class="splash-overlay"></div>
|
|
||||||
|
|
||||||
<img alt="cover" loading="lazy" class="splash-img" src="/i/{{SITE_NAME}}/cover.webp?v=2004"></img>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col-12 col-md-6 d-none d-md-block">
|
||||||
|
<div class="splash-wrapper">
|
||||||
|
<div class="splash-overlay"></div>
|
||||||
|
<img alt="cover" loading="lazy" class="splash-img" src="{{asset_siteimg('cover.webp')}}"></img>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="{{asset('js/bootstrap.js')}}"></script>
|
<script src="{{asset('js/bootstrap.js')}}"></script>
|
||||||
|
|
Loading…
Reference in New Issue