ki-frontend/src/views/Index.vue

78 lines
1.7 KiB
Vue
Raw Normal View History

2021-09-19 12:55:33 +02:00
<!--
SPDX-FileCopyrightText: WTF Kooperative eG <https://wtf-eg.de/>
SPDX-License-Identifier: AGPL-3.0-or-later
-->
2021-08-02 19:06:41 +02:00
<template>
2021-09-19 15:56:48 +02:00
<div class="container pt-5">
<div class="text-center mb-5">
<img class="wtf-logo wtf-logo--index" src="@/assets/img/wtf_logo.svg">
<h1>Kompetenzinventar</h1>
</div>
<form @submit.prevent="submitLogin()" class="bg-white p-3 login-form">
2021-06-07 17:41:25 +02:00
<div class="mb-3">
2021-09-19 15:56:48 +02:00
<label for="exampleInputusername1" class="form-label" >
WTF-Benutzername:
2021-06-07 17:41:25 +02:00
</label>
<input
2021-06-24 00:40:27 +02:00
type="username"
2021-06-07 17:41:25 +02:00
class="form-control"
2021-06-24 00:40:27 +02:00
id="exampleInputusername1"
v-model="username"
2021-06-07 17:41:25 +02:00
required
/>
</div>
<div class="mb-3">
<label for="exampleInputPassword1" class="form-label">Passwort:</label>
<input
type="password"
class="form-control"
id="exampleInputPassword1"
v-model="password"
required
/>
</div>
2021-09-19 15:56:48 +02:00
<button type="submit" class="btn btn-primary">Login</button>
<a class="btn btn-link" href="https://resetpw.wtf-eg.de/">Passwort vergessen?</a>
<div
class="alert alert-danger mt-3 mb-0"
role="alert"
v-if="showErrorMessage"
>
Dein Benutzername oder Passwort ist falsch.<br>Versuche es noch einmal.
</div>
2021-06-07 17:41:25 +02:00
</form>
</div>
</template>
<script>
2021-08-18 22:59:44 +02:00
import RequestMixin from "@/mixins/request.mixin"
2021-06-07 17:41:25 +02:00
export default {
name: "Index",
2021-08-18 22:59:44 +02:00
mixins: [RequestMixin],
2021-06-24 00:40:27 +02:00
data() {
return {
showErrorMessage: false,
username: "",
password: "",
};
},
2021-06-24 00:40:27 +02:00
};
2021-08-15 20:35:15 +02:00
</script>
2021-09-19 15:56:48 +02:00
<style scoped>
.container {
min-height: 100vh;
}
.login-form {
margin: 0 auto;
max-width: 500px;
}
.wtf-logo--index {
max-width: 200px;
}
</style>