ia-short/templates/login.html

68 lines
2.8 KiB
HTML

<!--
Copyright (c) 2019 Steven Spangler <132@ikl.sh>, Kevin Alberts <kevin@kevinalberts.nl>
This file is part of liteshort by 132ikl
This software is license under the MIT license. It should be included in your copy of this software.
A copy of the MIT license can be obtained at https://mit-license.org/
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Admin Login - {{ config.site_name }}</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='ia.css') }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="top">
<div id="header">
<div id="logo" class="drop-shadow">
<a href="{{ url_for('main') }}">
<img src="{{ url_for('static', filename='ictsv-logo-white.svg') }}" alt="logo">
</a>
</div>
<div id="title" class="drop-shadow">
<a href="{{ url_for('main') }}">
I.C.T.S.V. URL Shortener
</a>
</div>
</div>
</div>
<div id="middle">
<div id="content">
<div class="clearfix"></div>
<div id="box" class="align-self-center col-xl-4 col-lg-4 col-md-6 col-sm-10 col-xs-12">
<div class="form">
<h3 id="box-title">Admin Login</h3>
<form action="{{ url_for('login') }}" method="POST">
<div id="username-box">
<input id="username" name="username" type="text" placeholder="Username">
</div>
<div id="password-box">
<input id="password" name="password" type="password" placeholder="Password">
</div>
<button id="submit" type="submit" class="btn btn-primary" formmethod="post">Login</button>
</form>
</div>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
{% if category == 'success' %}
<div class="success">
✓ {{ message }}
</div>
{% elif category == 'error' %}
<div class="error">
✖ {{ message }}
</div>
{% endif %}
{% endfor %}
{% endif %}
{% endwith %}
</div>
</div>
</div>
</body>
</html>