2019-08-22 00:48:27 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
2020-07-20 00:50:05 +02:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.0/css/bulma.min.css"
|
|
|
|
integrity="sha256-aPeK/N8IHpHsvPBCf49iVKMdusfobKo2oxF8lRruWJg=" crossorigin="anonymous" />
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-icons/3.0.1/iconfont/material-icons.min.css" integrity="sha512-mRuH7OxetZB1XiSaKZ2fxENKgxVvx3ffpzX0FUcaP6GBqAuqOLc8YiC/3EVTUVt5p5mIRT5D9i4LitZUQKWNCg==" crossorigin="anonymous" />
|
2020-07-19 11:52:26 +02:00
|
|
|
<link rel="stylesheet" href="{{ static "css/style.css" }}">
|
|
|
|
<title>Log In</title>
|
2019-08-22 00:48:27 +02:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2020-07-20 00:50:05 +02:00
|
|
|
<div class="hero is-primary is-fullheight auth-background">
|
2020-07-19 11:52:26 +02:00
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container">
|
|
|
|
<div class="columns">
|
|
|
|
<div
|
|
|
|
class="column is-one-third-desktop is-offset-one-third-desktop is-half-tablet is-offset-one-quarter-tablet">
|
|
|
|
{{- range $i, $error := .Errors }}
|
|
|
|
<div class="notification is-warning">
|
|
|
|
<button class="delete"></button>
|
|
|
|
{{ $error }}
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
|
|
|
<div class="content box">
|
2020-07-20 00:50:05 +02:00
|
|
|
<h3 class="has-text-centered is-size-3 has-text-weight-light">{{ i18n "de_DE" "Log in" }}</h3>
|
2020-07-19 11:52:26 +02:00
|
|
|
<form class="form" method="POST" action="{{ url "login" }}">
|
|
|
|
<div class="field is-horizontal">
|
|
|
|
<div class="field-body">
|
|
|
|
<div class="field">
|
2020-07-20 00:50:05 +02:00
|
|
|
<div class="control has-icons-left">
|
|
|
|
<input id="" placeholder="Email" class="input" type="text" name="" autofocus="autofocus">
|
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<i class="material-icons">mail_outline</i>
|
|
|
|
</span>
|
2020-07-19 11:52:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2020-07-20 00:50:05 +02:00
|
|
|
<div class="field">
|
2020-07-19 11:52:26 +02:00
|
|
|
<div class="field-body">
|
|
|
|
<div class="field">
|
2020-07-20 00:50:05 +02:00
|
|
|
<div class="control has-icons-left">
|
|
|
|
<input placeholder="Password" type="password" name="" id="" class="input">
|
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<i class="material-icons">lock_outline</i>
|
|
|
|
</span>
|
2020-07-19 11:52:26 +02:00
|
|
|
</div>
|
2020-07-20 00:50:05 +02:00
|
|
|
<p class="has-text-right"><a>Forgot password?</a></p>
|
2020-07-19 11:52:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ .csrf_token }}
|
|
|
|
|
|
|
|
<input type="hidden" name="client_id" value="">
|
|
|
|
<input type="hidden" name="redirect_uri" value="">
|
|
|
|
<input type="hidden" name="scope" value="">
|
|
|
|
<input type="hidden" name="state" value="">
|
|
|
|
<input type="hidden" name="response_type" value="">
|
|
|
|
<input type="hidden" name="duration" value="">
|
|
|
|
<input type="hidden" name="csrf_token" value="">
|
2020-07-20 00:50:05 +02:00
|
|
|
<div class="field">
|
|
|
|
<button class="button is-medium is-fullwidth is-primary" value="authorize"
|
|
|
|
type="submit">
|
|
|
|
Log in
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="seperate-header">
|
|
|
|
<p class="has-text-centered">Or</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<button class="button is-medium is-fullwidth is-dark" value="authorize"
|
|
|
|
type="submit">
|
|
|
|
Log in with external
|
|
|
|
</button>
|
2020-07-19 11:52:26 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="has-text-light-grey has-text-centered">
|
|
|
|
Don't have an account?
|
2020-07-20 00:50:05 +02:00
|
|
|
<a class="has-text-white has-text-weight-bold" href="{{ url "signup" }}">Sign Up</a>
|
2020-07-19 11:52:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
|
|
|
|
$notification = $delete.parentNode;
|
|
|
|
$delete.addEventListener('click', () => {
|
|
|
|
$notification.parentNode.removeChild($notification);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2019-08-22 00:48:27 +02:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|