summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJannik Schönartz2019-03-08 02:00:24 +0100
committerJannik Schönartz2019-03-08 02:00:24 +0100
commit8f40526c94f9230ee5f7f342923332bb1568312f (patch)
treeffde01e114fed2a51bc528ea6dd8372477c32ad9 /webapp
parent[server] New clients are automaticly added to the groups of the fitting subra... (diff)
downloadbas-8f40526c94f9230ee5f7f342923332bb1568312f.tar.gz
bas-8f40526c94f9230ee5f7f342923332bb1568312f.tar.xz
bas-8f40526c94f9230ee5f7f342923332bb1568312f.zip
[webapp] Add require symbol for the user / account forms
Diffstat (limited to 'webapp')
-rw-r--r--webapp/src/components/AccountModule.vue15
-rw-r--r--webapp/src/components/UserCreateForm.vue18
2 files changed, 20 insertions, 13 deletions
diff --git a/webapp/src/components/AccountModule.vue b/webapp/src/components/AccountModule.vue
index 9d22715..1e6511a 100644
--- a/webapp/src/components/AccountModule.vue
+++ b/webapp/src/components/AccountModule.vue
@@ -147,24 +147,27 @@
<v-text-field
type="password"
v-model="passwordCurrent"
- :label="$t('passwordCurrent')"
:rules="currentPasswordRules"
@input="clearCurrentPasswordErrors"
- ></v-text-field>
+ >
+ <template slot="label">{{ $t('passwordCurrent') }} <label class="error--text">*</label></template>
+ </v-text-field>
<v-text-field
validate-on-blur
type="password"
v-model="passwordNew"
- :label="$t('passwordNew')"
:rules="passwordRules"
- ></v-text-field>
+ >
+ <template slot="label">{{ $t('passwordNew') }} <label class="error--text">*</label></template>
+ </v-text-field>
<v-text-field
validate-on-blur
type="password"
v-model="passwordConfirm"
- :label="$t('passwordConfirm')"
:rules="confirmPasswordRules"
- ></v-text-field>
+ >
+ <template slot="label">{{ $t('passwordConfirm') }} <label class="error--text">*</label></template>
+ </v-text-field>
</v-form>
</div>
</div>
diff --git a/webapp/src/components/UserCreateForm.vue b/webapp/src/components/UserCreateForm.vue
index fc83227..8b31b95 100644
--- a/webapp/src/components/UserCreateForm.vue
+++ b/webapp/src/components/UserCreateForm.vue
@@ -33,29 +33,33 @@
<template>
<v-form class="signup-form" ref="form" v-model="valid">
- <v-text-field
+ <v-text-field class="required"
validate-on-blur
- :label="$t('username')"
v-model="user.username"
:rules="usernameRules"
autocomplete="off"
- ></v-text-field>
+ counter
+ >
+ <template slot="label">{{ $t('username') }} <label class="error--text">*</label></template>
+ </v-text-field>
<v-text-field
validate-on-blur
type="password"
- :label="$t('password')"
v-model="user.password"
:rules="passwordRules"
autocomplete="off"
- ></v-text-field>
+ >
+ <template slot="label">{{ $t('password') }} <label v-if="!id" class="error--text">*</label></template>
+ </v-text-field>
<v-text-field
validate-on-blur
type="password"
- :label="$t('confirmPassword')"
v-model="user.confirmPassword"
:rules="confirmPasswordRules"
autocomplete="off"
- ></v-text-field>
+ >
+ <template slot="label">{{ $t('confirmPassword') }} <label v-if="!id" class="error--text">*</label></template>
+ </v-text-field>
<v-text-field
:label="$t('name')"
autocomplete="off"