skeleton/assets/templates/layouts/auth_login.tmpl

96 lines
4.6 KiB
Cheetah
Raw Normal View History

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-19 11:52:26 +02:00
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.8.0/css/bulma.min.css"
integrity="sha256-D9M5yrVDqFlla7nlELDaYZIpXfFWDytQtiV+TaH6F1I=" crossorigin="anonymous" />
<link rel="stylesheet" href="{{ static "css/style.css" }}">
<title>Log In</title>
2019-08-22 00:48:27 +02:00
</head>
<body>
2020-07-19 11:52:26 +02:00
<div class="hero is-success is-fullheight auth-background">
<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">
<h2 class="has-text-centered is-size-3">{{ i18n "de_DE" "Log in" }}</h2>
<form class="form" method="POST" action="{{ url "login" }}">
<div class="field is-horizontal">
<div class="field-label">
<label for="" class="label">username</label>
</div>
<div class="field-body">
<div class="field">
<div class="control">
<input id="" class="input" type="text" name="" autofocus="autofocus">
</div>
</div>
</div>
</div>
<div class="field is-horizontal">
<div class="field-label">
<label for="" class="label">password</label>
</div>
<div class="field-body">
<div class="field">
<div class="control"><input type="password" name="" id="" class="input">
</div>
</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="">
<div class="field is-grouped is-grouped-right">
<p class="control">
<button class="button is-medium is-fullwidth is-success" value="authorize"
type="submit">
Log in
</button>
</p>
</div>
</form>
</div>
<div class="has-text-light-grey has-text-centered">
Don't have an account?
<a class="has-text-white has-text-weight-bold" href="{{ url "register" }}">Sign Up</a>
</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>