fix buttonLocation deleted from last merge

This commit is contained in:
Mathieu Jaumotte 2021-08-19 17:16:52 +02:00
parent 3602b0d097
commit 755812ae3c
3 changed files with 30 additions and 12 deletions

View File

@ -13,6 +13,10 @@
<template v-slot:record-actions> <template v-slot:record-actions>
<ul class="record_actions"> <ul class="record_actions">
<button-location
v-if="hasCurrentHouseholdAddress"
v-bind:person="participation.person">
</button-location>
<li> <li>
<on-the-fly <on-the-fly
v-bind:type="participation.person.type" v-bind:type="participation.person.type"
@ -39,23 +43,13 @@
v-bind:title="$t('action.remove')" v-bind:title="$t('action.remove')"
@click.prevent="$emit('close', participation)"> @click.prevent="$emit('close', participation)">
</button> </button>
<button v-else class="btn btn-sm btn-remove disabled"></button> <button v-else
class="btn btn-sm btn-remove disabled"></button>
</li> </li>
</ul> </ul>
</template> </template>
</person-render-box> </person-render-box>
<!-- dates of participation
<tr>
<td><span v-if="participation.startDate">
{{ $d(participation.startDate.datetime, 'short') }}</span>
</td>
<td><span v-if="participation.endDate">
{{ $d(participation.endDate.datetime, 'short') }}</span>
</td>
</tr>
-->
</template> </template>
<script> <script>
@ -95,4 +89,23 @@ export default {
} }
} }
} }
/*
* dates of participation
*
* :title="$t('persons_associated.date_start_to_end', {
* start: $d(participation.startDate.datetime, 'short'),
* end: $d(participation.endDate.datetime, 'short')
* })"
*
* <tr>
* <td><span v-if="participation.startDate">
* {{ $d(participation.startDate.datetime, 'short') }}</span>
* </td>
* <td><span v-if="participation.endDate">
* {{ $d(participation.endDate.datetime, 'short') }}</span>
* </td>
* </tr>
*
*/
</script> </script>

View File

@ -10,6 +10,10 @@
> >
<template v-slot:record-actions> <template v-slot:record-actions>
<ul class="record_actions"> <ul class="record_actions">
<button-location
v-if="hasCurrentHouseholdAddress"
v-bind:person="participation.person">
</button-location>
<li> <li>
<on-the-fly <on-the-fly
v-bind:type="resource.resource.type" v-bind:type="resource.resource.type"

View File

@ -41,6 +41,7 @@ const appMessages = {
startdate: "Date d'entrée", startdate: "Date d'entrée",
enddate: "Date de sortie", enddate: "Date de sortie",
add_persons: "Ajouter des usagers", add_persons: "Ajouter des usagers",
date_start_to_end: "Participation du {start} au {end}",
}, },
requestor: { requestor: {
title: "Demandeur", title: "Demandeur",