Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FAIR-v1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIRness
FAIR-v1
Merge requests
!3
Small fe mods michael
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Small fe mods michael
small_FE_modsMichael
into
master
Overview
0
Commits
2
Changes
7
Merged
Small fe mods michael
Isa H
requested to merge
small_FE_modsMichael
into
master
May 15, 2020
Overview
0
Commits
2
Changes
7
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
4833f96b
2 commits,
May 15, 2020
7 files
+
225
−
90
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
src/components/input/pharma-input-fields/PhEntity.vue
+
21
−
5
View file @ 4833f96b
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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=
"O
rcid
"
label=
"O
RCID
"
: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