Commit 2fac75a9 authored by Jean Rabreau's avatar Jean Rabreau
Browse files

馃毟 add non editable internal affiliations

parent d95a0f77
Pipeline #60232 passed with stages
in 4 minutes and 57 seconds
......@@ -32,20 +32,26 @@
:label="$t('profile.bio')"
/>
</v-col>
<fieldset>
<legend>Affiliations</legend>
<fieldset :disabled="!isExternal">
<legend id="institution__legend">{{ $t('profile.institution') }}</legend>
<fieldset :disabled="!isExternal">
<legend>{{ $t('profile.affiliations') }}</legend>
<v-col>
<v-chip
v-for="(affiliation, index) in newPersonalInfo.info.affiliations"
:key="index"
small
>
{{ affiliation }}
</v-chip>
</v-col>
<v-col>
<v-text-field
v-model="newPersonalInfo.info.institution"
aria-labelledby="institution__legend"
class="labelled"
:label="$t('profile.institution')"
/>
</v-col>
</fieldset>
<fieldset :disabled="!isExternal" v-if="labDisplay">
<fieldset v-if="labDisplay">
<legend>
{{ $t('profile.researchLab.field') }}
<div v-if="isExternal">
......@@ -73,20 +79,18 @@
/>
</v-col>
</fieldset>
<fieldset>
<legend id="affiliation__legend">{{ $t('profile.otherAffiliations') }}</legend>
<v-col>
<v-combobox
v-model="newPersonalInfo.info.otherAffiliations"
aria-labelledby="affiliation__legend"
multiple
small-chips
deletable-chips
class="labelled"
/>
</v-col>
</fieldset>
</fieldset>
<v-col>
<v-combobox
v-model="newPersonalInfo.info.otherAffiliations"
aria-labelledby="affiliation__legend"
multiple
small-chips
deletable-chips
:label="$t('profile.otherAffiliations')"
/>
</v-col>
</v-card-text>
<v-card-actions>
......@@ -177,8 +181,9 @@ export default {
}
fieldset {
legend {
font-size: .9rem;
padding-left: 0.4rem;
font-size: .8rem;
padding-left: 12px;
opacity: 0.7;
div {
display: inline;
}
......
......@@ -557,6 +557,7 @@ export const en_US = {
shortName: "Short name",
},
institution: "Institution",
affiliations: "Affiliations",
otherAffiliations: "Other affiliations",
},
project: {
......
......@@ -571,6 +571,7 @@ export const fr_FR = {
shortName: "Libell茅 court",
},
institution: "脡tablissement",
affiliations: "Affiliations",
otherAffiliations: "Autres affiliations",
},
project: {
......
......@@ -26,11 +26,13 @@ import {setLocation} from '@/store/helpers'
* @property {string} bio
* @property {string} institution
* @property {UserStructure[]} researchLabs
* @property {string[]} otherAffiliations
* @property {string[]} [affiliations] - internal official affectations
* @property {string[]} otherAffiliations - optional extra affectations
*/
/**
* @typedef {Object} UserStructure
* @property {number} id
* @property {string} label
* @property {string} acronym
* @property {string} longName
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment