mirror of
https://github.com/nkanaev/yarr.git
synced 2026-06-24 09:05:16 +00:00
57 lines
2.1 KiB
HTML
57 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>yarr!</title>
|
|
<link rel="stylesheet" href="./static/stylesheets/bootstrap.min.css">
|
|
<link rel="stylesheet" href="./static/stylesheets/app.css">
|
|
<link rel="icon" href="./static/graphicarts/favicon.svg" type="image/svg+xml">
|
|
<link rel="alternate icon" href="./static/graphicarts/favicon.png" type="image/png">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<style>
|
|
[v-cloak] { display: none }
|
|
form {
|
|
max-width: 300px;
|
|
margin: 0 auto;
|
|
padding: 1rem;
|
|
}
|
|
form img {
|
|
width: 4rem;
|
|
height: 4rem;
|
|
display: block;
|
|
margin: 3rem auto;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="theme-{% .settings.theme_name %}">
|
|
<div id="app" v-cloak>
|
|
<form action="" method="post">
|
|
<img src="./static/graphicarts/anchor.svg" alt="">
|
|
<div class="text-danger text-center my-3" v-if="hasError">{{ $t('login_error') }}</div>
|
|
<div class="form-group">
|
|
<label for="username">{{ $t('username') }}</label>
|
|
<input name="username" class="form-control" id="username" autocomplete="off"
|
|
value="{% if .username %}{% .username %}{% end %}" required autofocus>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">{{ $t('password') }}</label>
|
|
<input name="password" class="form-control" id="password" type="password" required>
|
|
</div>
|
|
<button class="btn btn-block btn-default" type="submit">{{ $t('login') }}</button>
|
|
</form>
|
|
</div>
|
|
<script src="./static/javascripts/vue.min.js"></script>
|
|
<script src="./static/javascripts/fluent.js"></script>
|
|
<script src="./static/javascripts/i18n.js"></script>
|
|
<script>
|
|
Vue.use(i18n)
|
|
new Vue({
|
|
data: { hasError: {% .hasError %} },
|
|
created: function () {
|
|
this.$setLang('{% .settings.language %}')
|
|
}
|
|
}).$mount('#app')
|
|
</script>
|
|
</body>
|
|
</html>
|