mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
addperson: repair altname: add altname if known
This commit is contained in:
parent
3d5723facb
commit
4afea55465
@ -43,10 +43,11 @@
|
|||||||
<label for="firstname">{{ $t('person.firstname') }}</label>
|
<label for="firstname">{{ $t('person.firstname') }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-for="(a) in config.altNames" :key="a.key" class="form-floating mb-3">
|
<div v-for="(a, i) in config.altNames" :key="a.key" class="form-floating mb-3">
|
||||||
<input
|
<input
|
||||||
class="form-control form-control-lg"
|
class="form-control form-control-lg"
|
||||||
:id="a.key"
|
:id="a.key"
|
||||||
|
:value="personAltNamesLabels[i]"
|
||||||
@input="onAltNameInput"
|
@input="onAltNameInput"
|
||||||
/>
|
/>
|
||||||
<label :for="a.key">{{ a.labels.fr }}</label>
|
<label :for="a.key">{{ a.labels.fr }}</label>
|
||||||
@ -199,6 +200,9 @@ export default {
|
|||||||
},
|
},
|
||||||
feminized() {
|
feminized() {
|
||||||
return (this.person.gender === 'woman')? 'e' : '';
|
return (this.person.gender === 'woman')? 'e' : '';
|
||||||
|
},
|
||||||
|
personAltNamesLabels() {
|
||||||
|
return this.person.altNames.map(a => a ? a.label : '');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user