Merge branch 'feature/form-max-with'
This commit is contained in:
commit
60b2774540
13
web/src/components/Centered.vue
Normal file
13
web/src/components/Centered.vue
Normal file
@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div class="row d-flex justify-content-center">
|
||||
<div class="mt-3 col-md-6">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Centered"
|
||||
}
|
||||
</script>
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<b-card class="mt-3" header="Sign in">
|
||||
<Centered>
|
||||
<b-card header="Sign in">
|
||||
<b-form @submit.prevent="signin">
|
||||
|
||||
<b-form-group id="username-group" label="Username:" label-for="username">
|
||||
@ -33,15 +33,19 @@
|
||||
</b-alert>
|
||||
|
||||
</b-card>
|
||||
</div>
|
||||
</Centered>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Api from '@/api'
|
||||
import {mapMutations} from "vuex";
|
||||
import Centered from '@/components/Centered'
|
||||
|
||||
export default {
|
||||
name: "SignupForm",
|
||||
components: {
|
||||
Centered
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<b-card class="mt-3" header="Create an account">
|
||||
<Centered>
|
||||
<b-card header="Create an account">
|
||||
<b-form @submit.prevent="handleSubmit">
|
||||
<b-form-group
|
||||
id="email-group"
|
||||
@ -44,7 +44,8 @@
|
||||
</b-form-invalid-feedback>
|
||||
</b-form-group>
|
||||
|
||||
<b-form-group id="password-confirm-group" label="Confirm password:" label-for="password-confirm">
|
||||
<b-form-group id="password-confirm-group" label="Confirm password:"
|
||||
label-for="password-confirm">
|
||||
<b-form-input
|
||||
id="password-confirm"
|
||||
v-model="form.passwordConfirm"
|
||||
@ -67,16 +68,20 @@
|
||||
<b-alert :show="error" variant="danger" dismissible class="mt-3">
|
||||
An error occurred while attempting to create your account
|
||||
</b-alert>
|
||||
|
||||
</b-card>
|
||||
</div>
|
||||
</Centered>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Api from '@/api'
|
||||
import Centered from '@/components/Centered'
|
||||
|
||||
|
||||
export default {
|
||||
name: "SignupForm",
|
||||
components: {
|
||||
Centered
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user