mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
improve household button in course participation
This commit is contained in:
parent
0e98010d0e
commit
2492a9281f
@ -5,7 +5,7 @@
|
|||||||
addId : false,
|
addId : false,
|
||||||
addEntity: false,
|
addEntity: false,
|
||||||
addLink: false,
|
addLink: false,
|
||||||
addHouseholdLink: true,
|
addHouseholdLink: false,
|
||||||
addAltNames: true,
|
addAltNames: true,
|
||||||
addAge : true,
|
addAge : true,
|
||||||
hLevel : 3,
|
hLevel : 3,
|
||||||
@ -20,14 +20,15 @@
|
|||||||
v-if="hasCurrentHouseholdAddress"
|
v-if="hasCurrentHouseholdAddress"
|
||||||
v-bind:person="participation.person">
|
v-bind:person="participation.person">
|
||||||
</button-location>
|
</button-location>
|
||||||
|
<li v-if="participation.person.current_household_id">
|
||||||
|
<a class="btn btn-sm btn-chill-beige"
|
||||||
|
:href="getCurrentHouseholdUrl"
|
||||||
|
:title="$t('persons_associated.show_household_number', { id: participation.person.current_household_id })">
|
||||||
|
<i class="fa fa-fw fa-home"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li><on-the-fly :type="participation.person.type" :id="participation.person.id" action="show"></on-the-fly></li>
|
<li><on-the-fly :type="participation.person.type" :id="participation.person.id" action="show"></on-the-fly></li>
|
||||||
<li><on-the-fly :type="participation.person.type" :id="participation.person.id" action="edit" @saveFormOnTheFly="saveFormOnTheFly"></on-the-fly></li>
|
<li><on-the-fly :type="participation.person.type" :id="participation.person.id" action="edit" @saveFormOnTheFly="saveFormOnTheFly"></on-the-fly></li>
|
||||||
<!-- <li>
|
|
||||||
<button class="btn btn-delete"
|
|
||||||
:title="$t('action.delete')"
|
|
||||||
@click.prevent="$emit('remove', participation)">
|
|
||||||
</button>
|
|
||||||
</li> -->
|
|
||||||
<li>
|
<li>
|
||||||
<button v-if="!participation.endDate"
|
<button v-if="!participation.endDate"
|
||||||
class="btn btn-sm btn-remove"
|
class="btn btn-sm btn-remove"
|
||||||
@ -100,6 +101,9 @@ export default {
|
|||||||
},
|
},
|
||||||
getAccompanyingCourseReturnPath() {
|
getAccompanyingCourseReturnPath() {
|
||||||
return `fr/parcours/${this.$store.state.accompanyingCourse.id}/edit#section-10`;
|
return `fr/parcours/${this.$store.state.accompanyingCourse.id}/edit#section-10`;
|
||||||
|
},
|
||||||
|
getCurrentHouseholdUrl() {
|
||||||
|
return `/fr/person/household/${this.participation.person.current_household_id}/summary?returnPath=${this.getAccompanyingCourseReturnPath}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user