Skip to content
Snippets Groups Projects

Small fe mods michael

7 files
+ 225
90
Compare changes
  • Side-by-side
  • Inline

Files

@@ -29,7 +29,7 @@
<v-text-field
outline
:value="firstname"
:label="$t('Firstname')"
:label="checkAsterix($t('Firstname'))"
v-on:input="$emit('input-firstname', $event);validate(); $emit('entity-validation', validationWarning)"
:required="required"
:rules="required ? [ v => !!v || 'This field is required'] : []"
@@ -40,7 +40,7 @@
<v-text-field
outline
:value="lastname"
:label="$t('Lastname')"
:label="checkAsterix($t('Lastname'))"
:required="required"
:rules="required ? [ v => !!v || 'This field is required'] : []"
v-on:input="$emit('input-lastname', $event);validate();$emit('entity-validation', validationWarning)"
@@ -89,11 +89,20 @@
<v-text-field
outline
:value="orcid"
label="Orcid"
label="ORCID"
:rules="[validationrules.orcid]"
v-on:input="$emit('input-orcid', $event);validate();$emit('entity-validation', validationWarning)"
background-color="blue-grey lighten-5"
></v-text-field>
background-color="blue-grey lighten-5">
<template v-slot:prepend>
<v-tooltip bottom>
<v-btn slot="activator" small icon :href="'https://orcid.org/'" target="_blank">
<v-icon color="blue">info</v-icon>
</v-btn>
ORCID: Open Researcher and Contributor ID
</v-tooltip>
</template>
</v-text-field>
</v-flex>
</v-layout>
@@ -248,6 +257,13 @@ export default {
};
},
methods: {
checkAsterix: function(label) {
if (this.required) {
return label + "*";
} else {
return label;
}
},
validate: function() {
if (this.formValidation) {
if (this.$refs.form.validate()) {
Loading