This commit is contained in:
@@ -1,5 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-row align="center" justify="center" class="mx-auto mt-sm-12 mb-8">
|
<v-row align="center" justify="center" class="mx-auto mt-sm-12 mb-8">
|
||||||
|
<!-- <v-row>
|
||||||
|
<v-col cols="1" offset="5">
|
||||||
|
<v-select
|
||||||
|
v-model="selectedTranslation"
|
||||||
|
:items="selectLists.translations"
|
||||||
|
item-text="name"
|
||||||
|
item-value="value"
|
||||||
|
>
|
||||||
|
</v-select>
|
||||||
|
</v-col>
|
||||||
|
</v-row> -->
|
||||||
<v-col cols="12" offset-md="4">
|
<v-col cols="12" offset-md="4">
|
||||||
<form>
|
<form>
|
||||||
<v-row>
|
<v-row>
|
||||||
@@ -20,6 +31,19 @@
|
|||||||
<v-col cols="12" md="7" v-if="formState.errorBoxMessage">
|
<v-col cols="12" md="7" v-if="formState.errorBoxMessage">
|
||||||
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col cols="12">
|
||||||
|
<v-col cols="12" md="1">
|
||||||
|
<v-select
|
||||||
|
v-model="selectedTranslation"
|
||||||
|
:items="selectLists.translations"
|
||||||
|
item-text="name"
|
||||||
|
item-value="value"
|
||||||
|
>
|
||||||
|
</v-select>
|
||||||
|
</v-col>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
<v-col cols="12" md="7" v-if="trialMode">
|
<v-col cols="12" md="7" v-if="trialMode">
|
||||||
<v-select
|
<v-select
|
||||||
v-model="selectedTrialUserId"
|
v-model="selectedTrialUserId"
|
||||||
@@ -41,7 +65,7 @@
|
|||||||
id="username"
|
id="username"
|
||||||
v-model="input.username"
|
v-model="input.username"
|
||||||
prepend-icon="fa-user"
|
prepend-icon="fa-user"
|
||||||
label="User"
|
:label="userLabel"
|
||||||
autofocus
|
autofocus
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
autocorrect="off"
|
autocorrect="off"
|
||||||
@@ -59,7 +83,7 @@
|
|||||||
v-model="input.password"
|
v-model="input.password"
|
||||||
:append-outer-icon="reveal ? 'fa-eye' : 'fa-eye-slash'"
|
:append-outer-icon="reveal ? 'fa-eye' : 'fa-eye-slash'"
|
||||||
prepend-icon="fa-key"
|
prepend-icon="fa-key"
|
||||||
label="Password"
|
:label="passwordLabel"
|
||||||
:type="reveal ? 'text' : 'password'"
|
:type="reveal ? 'text' : 'password'"
|
||||||
:error="errorBadCreds"
|
:error="errorBadCreds"
|
||||||
v-on:keyup.enter="login"
|
v-on:keyup.enter="login"
|
||||||
@@ -99,8 +123,17 @@ export default {
|
|||||||
reveal: false,
|
reveal: false,
|
||||||
formState: { errorBoxMessage: null },
|
formState: { errorBoxMessage: null },
|
||||||
trialMode: false,
|
trialMode: false,
|
||||||
|
userLabel: "User",
|
||||||
|
passwordLabel: "Password",
|
||||||
|
selectedTranslation: "en",
|
||||||
selectedTrialUserId: 1,
|
selectedTrialUserId: 1,
|
||||||
selectLists: {
|
selectLists: {
|
||||||
|
translations: [
|
||||||
|
{ name: "English", value: "en" },
|
||||||
|
{ name: "Español", value: "es" },
|
||||||
|
{ name: "Deutsch", value: "de" },
|
||||||
|
{ name: "Français", value: "fr" }
|
||||||
|
],
|
||||||
trialUsers: [
|
trialUsers: [
|
||||||
{
|
{
|
||||||
name: "AyaNova administrator - all",
|
name: "AyaNova administrator - all",
|
||||||
@@ -234,7 +267,14 @@ export default {
|
|||||||
//squash it, this isn't critical
|
//squash it, this isn't critical
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
computed: {},
|
watch: {
|
||||||
|
selectedTranslation(val) {
|
||||||
|
console.log(val);
|
||||||
|
},
|
||||||
|
value() {
|
||||||
|
this.date = this.value; //always in UTC
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
trialUserSelected(item) {
|
trialUserSelected(item) {
|
||||||
this.input.password = item.p;
|
this.input.password = item.p;
|
||||||
|
|||||||
Reference in New Issue
Block a user