diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js index 382d2c0c3..c0946f702 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js @@ -290,7 +290,7 @@ let initPromise = Promise.all([scopesPromise, accompanyingCoursePromise]) })); } else if (payload.type === 'thirdparty') { - body.name = payload.data.name; + body.name = payload.data.text; body.email = payload.data.email; body.phonenumber = payload.data.phonenumber; body.address = { address_id: payload.data.address.address_id }; diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue index eddde6a67..c2714126a 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue @@ -19,14 +19,6 @@

- - - - {{ thirdparty.age }}

@@ -42,9 +34,9 @@ -
  • +
  • - {{ thirdparty.telephone }} + {{ thirdparty.phonenumber }}
  • @@ -78,21 +70,7 @@ export default { } else { return false } - }, - getGender: function() { - return this.thirdparty.gender === 'woman' ? 'renderbox.birthday.woman' : 'renderbox.birthday.man'; - }, - getGenderIcon: function() { - return this.thirdparty.gender === 'woman' ? 'fa-venus' : this.thirdparty.gender === 'man' ? 'fa-mars' : 'fa-neuter'; - }, - birthdate: function(){ - var date = new Date(this.thirdparty.birthdate.datetime); - return dateToISO(date); - }, - deathdate: function(){ - var date = new Date(this.thirdparty.deathdate.datetime); - return dateToISO(date); - }, + } } }