2019-09-19 01:27:19 +00:00
|
|
|
{% set metaTitle = "Auth" %}
|
|
|
|
{% set metaUrl = '/auth' %}
|
|
|
|
|
2018-04-19 06:22:53 +00:00
|
|
|
{% extends "_layout.njk" %}
|
2018-04-18 21:00:36 +00:00
|
|
|
|
2020-05-25 20:04:26 +00:00
|
|
|
{% set enableUserAccounts = config.enableUserAccounts %}
|
|
|
|
|
2018-04-18 21:00:36 +00:00
|
|
|
{% block stylesheets %}
|
|
|
|
{{ super() }}
|
2019-09-19 12:10:37 +00:00
|
|
|
<link rel="stylesheet" href="libs/fontello/fontello.css{{ versions[1] }}">
|
|
|
|
<link rel="stylesheet" href="css/sweetalert.css{{ versions[1] }}">
|
2018-04-18 21:00:36 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
2019-09-19 12:10:37 +00:00
|
|
|
<script src="libs/sweetalert/sweetalert.min.js{{ versions[3] }}"></script>
|
|
|
|
<script src="libs/axios/axios.min.js{{ versions[3] }}"></script>
|
|
|
|
<script src="js/auth.js{{ versions[1] }}"></script>
|
2018-04-18 21:00:36 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2020-04-23 18:18:25 +00:00
|
|
|
{% block endmeta %}
|
|
|
|
{% include "_partial/noscript-refresh.njk" %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2018-04-18 21:00:36 +00:00
|
|
|
{% block content %}
|
|
|
|
{{ super() }}
|
2019-09-19 07:19:11 +00:00
|
|
|
<section id="login" class="hero is-fullheight is-hidden">
|
2018-04-18 21:00:36 +00:00
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container">
|
|
|
|
<div class="columns is-centered">
|
|
|
|
<div class="column is-one-third is-hidden-touch"></div>
|
|
|
|
<div class="column">
|
|
|
|
<h1 class="title">
|
|
|
|
Dashboard Access
|
|
|
|
</h1>
|
2020-05-25 20:04:26 +00:00
|
|
|
{% if enableUserAccounts -%}
|
2018-04-18 21:00:36 +00:00
|
|
|
<h2 class="subtitle">
|
|
|
|
Login or register
|
|
|
|
</h2>
|
2020-05-25 20:04:26 +00:00
|
|
|
{%- endif %}
|
2019-08-18 09:57:56 +00:00
|
|
|
<form id="authForm">
|
|
|
|
<div class="field">
|
|
|
|
<div class="control">
|
2020-05-25 20:04:26 +00:00
|
|
|
<input id="user" name="user" class="input" type="text" placeholder="Username" minlength="4" maxlength="32">
|
2019-08-18 09:57:56 +00:00
|
|
|
</div>
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
2019-08-18 09:57:56 +00:00
|
|
|
<div class="field">
|
|
|
|
<div class="control">
|
2020-05-25 20:04:26 +00:00
|
|
|
<input id="pass" name="pass" class="input" type="password" placeholder="Password" minlength="6" maxlength="64">
|
2019-08-18 09:57:56 +00:00
|
|
|
</div>
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
2019-08-18 09:57:56 +00:00
|
|
|
<div class="field is-grouped is-grouped-right">
|
2020-05-25 20:04:26 +00:00
|
|
|
{% if enableUserAccounts -%}
|
2019-08-18 09:57:56 +00:00
|
|
|
<div class="control">
|
2019-09-19 07:19:11 +00:00
|
|
|
<button id="registerBtn" type="button" class="button is-primary is-outlined">
|
2019-08-18 09:57:56 +00:00
|
|
|
<span class="icon">
|
|
|
|
<i class="icon-user-plus"></i>
|
|
|
|
</span>
|
|
|
|
<span>Register</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2020-05-25 20:04:26 +00:00
|
|
|
{%- endif %}
|
2019-08-18 09:57:56 +00:00
|
|
|
<div class="control">
|
2019-09-19 07:19:11 +00:00
|
|
|
<button id="loginBtn" type="submit" class="button is-info is-outlined">
|
2019-08-18 09:57:56 +00:00
|
|
|
<span class="icon">
|
|
|
|
<i class="icon-login"></i>
|
|
|
|
</span>
|
|
|
|
<span>Log in</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
2019-08-18 09:57:56 +00:00
|
|
|
</form>
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="column is-one-third is-hidden-mobile"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2018-04-23 19:58:44 +00:00
|
|
|
|
2019-09-21 04:50:49 +00:00
|
|
|
{% include "_partial/loader.njk" %}
|
2020-05-25 20:49:54 +00:00
|
|
|
{% set floatingHomeHideInitially = true %}
|
|
|
|
{% include "_partial/floating-home.njk" %}
|
2018-04-23 19:58:44 +00:00
|
|
|
{% include "_partial/noscript.njk" %}
|
2018-04-18 21:00:36 +00:00
|
|
|
{% endblock %}
|