This commit is contained in:
2020-04-25 23:17:25 +02:00
parent 86ec7f4de8
commit 9d1d1b3afb
5 changed files with 60 additions and 27 deletions
+15 -10
View File
@@ -1,7 +1,7 @@
<template>
<v-card flat>
<v-card-text>
<v-form ref="form" v-model="valid" lazy-validation>
<v-form ref="form" v-model="valid" lazy-validation>
<v-card-text>
<v-text-field
v-model="form.username"
:rules="usernameRules"
@@ -18,14 +18,19 @@
prepend-icon="mdi-lock"
type="password"
></v-text-field>
</v-form>
</v-card-text>
<v-card-actions>
<v-spacer />
<v-btn :disabled="!valid" color="success" @click="userLogin">
Login
</v-btn>
</v-card-actions>
</v-card-text>
<v-card-actions>
<v-spacer />
<v-btn
:disabled="!valid"
color="success"
type="submit"
@click.prevent="userLogin"
>
Login
</v-btn>
</v-card-actions>
</v-form>
</v-card>
</template>
+16 -11
View File
@@ -1,7 +1,7 @@
<template>
<v-card flat>
<v-card-text>
<v-form ref="form" v-model="valid" lazy-validation>
<v-form ref="form" v-model="valid" lazy-validation>
<v-card-text>
<v-text-field
v-model="form.username"
:rules="usernameRules"
@@ -35,15 +35,20 @@
prepend-icon="mdi-lock"
type="password"
></v-text-field>
</v-form>
</v-card-text>
<v-divider />
<v-card-actions>
<v-spacer />
<v-btn :disabled="!valid" color="success" @click="registerUser">
Register
</v-btn>
</v-card-actions>
</v-card-text>
<v-divider />
<v-card-actions>
<v-spacer />
<v-btn
:disabled="!valid"
color="success"
type="submit"
@click.prevent="registerUser"
>
Register
</v-btn>
</v-card-actions>
</v-form>
</v-card>
</template>