diff --git a/src/pages/Nominum.vue b/src/pages/Nominum.vue
index be27900..7f6ae13 100644
--- a/src/pages/Nominum.vue
+++ b/src/pages/Nominum.vue
@@ -8,14 +8,14 @@
{{ content.occupation }}
- Nom : {{ content.surname }}, {{ content.surname }}
- Prénom : {{ content.forename }}, {{ content.forename }}
- Sexe :
+
Nom : {{ content.surname }}, {{ content.surname }}
+ Prénom : {{ content.forename }}, {{ content.forename }}
+ Sexe :
Masculin
Feminin
- Naissance : {{ content.birthPlace }}, {{ content.birthDate }}
- Mort : {{ content.deathPlace }}, {{ content.deathDate }}
+
+
Notes
@@ -76,6 +76,36 @@ export default {
meta: this.meta
}
},
+ computed: {
+ birth_str () {
+ let str = 'Naissance :'
+ if (this.content.birthPlace) {
+ str += ' ' + this.content.birthPlace
+ }
+ if (this.content.birthPlace && this.content.birthDate) {
+ str += ','
+ }
+ if (this.content.birthDate) {
+ str += ' ' + this.content.birthDate
+ }
+
+ return str
+ },
+ death_str () {
+ let str = 'Mort :'
+ if (this.content.deathPlace) {
+ str += ' ' + this.content.deathPlace
+ }
+ if (this.content.deathPlace && this.content.deathDate) {
+ str += ','
+ }
+ if (this.content.deathDate) {
+ str += ' ' + this.content.deathDate
+ }
+
+ return str
+ }
+ },
created () {
console.log('nominum this.$route', this.$route)
REST.get(`${window.apipath}/indexNominum/` + this.$route.params.id, {})