mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
add InterlocutorItem subcomponent
This commit is contained in:
parent
ed17f78da5
commit
569679238c
@ -0,0 +1,54 @@
|
|||||||
|
<template>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td>{{ interlocutor.key }}</td>
|
||||||
|
<td>{{ interlocutor.result.text }}</td>
|
||||||
|
<td><span >
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td><span >
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
<ul class="record_actions">
|
||||||
|
<li>
|
||||||
|
<a class="sc-button bt-show" target="_blank"
|
||||||
|
:href="url.show"
|
||||||
|
:title="$t('action.show')">
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="sc-button bt-update" target="_blank"
|
||||||
|
:href="url.edit"
|
||||||
|
:title="$t('action.edit')">
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<button
|
||||||
|
class="sc-button bt-remove"
|
||||||
|
:title="$t('action.remove')"
|
||||||
|
@click.prevent="$emit('remove', interlocutor)">
|
||||||
|
</button>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'InterlocutorItem',
|
||||||
|
props: ['interlocutor'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
url: {
|
||||||
|
show: 'show', //'/fr/person/' + this.interlocutor.person.id + '/general',
|
||||||
|
edit: 'edit' //'/fr/person/' + this.interlocutor.person.id + '/general/edit'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
emits: ['remove']
|
||||||
|
}
|
||||||
|
</script>
|
@ -9,22 +9,24 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th class="chill-orange">{{ $t('interlocutors.firstname') }}</th>
|
<th class="chill-orange">{{ $t('interlocutors.firstname') }}</th>
|
||||||
<th class="chill-orange">{{ $t('interlocutors.lastname') }}</th>
|
<th class="chill-orange">{{ $t('interlocutors.lastname') }}</th>
|
||||||
|
<th>3</th>
|
||||||
|
<th>4</th>
|
||||||
<th class="chill-orange">{{ $t('action.actions') }}</th>
|
<th class="chill-orange">{{ $t('action.actions') }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<!--person-item
|
<interlocutor-item
|
||||||
v-for="interlocutor in interlocutors"
|
v-for="interlocutor in interlocutors"
|
||||||
v-bind:interlocutor="interlocutor"
|
v-bind:interlocutor="interlocutor"
|
||||||
v-bind:key="interlocutor.id"
|
v-bind:key="interlocutor.id"
|
||||||
@remove="removeInterlocutor"
|
@remove="removeInterlocutor">
|
||||||
</person-item-->
|
</interlocutor-item>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<add-persons
|
<add-persons
|
||||||
buttonTitle="interlocutor.add_interlocutor"
|
buttonTitle="interlocutors.add_interlocutors"
|
||||||
modalTitle="interlocutor.add_interlocutor"
|
modalTitle="interlocutors.add_interlocutors"
|
||||||
v-bind:key="addPersons.key"
|
v-bind:key="addPersons.key"
|
||||||
v-bind:options="addPersons.options"
|
v-bind:options="addPersons.options"
|
||||||
@addNewPersons="addNewPersons"
|
@addNewPersons="addNewPersons"
|
||||||
@ -36,11 +38,13 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AddPersons from 'ChillPersonAssets/vuejs/_components/AddPersons.vue'
|
import AddPersons from 'ChillPersonAssets/vuejs/_components/AddPersons.vue'
|
||||||
|
import InterlocutorItem from './InterlocutorItem.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Interlocutors',
|
name: 'Interlocutors',
|
||||||
components: {
|
components: {
|
||||||
AddPersons,
|
AddPersons,
|
||||||
|
InterlocutorItem
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -46,6 +46,13 @@ const appMessages = {
|
|||||||
address: "Adresse",
|
address: "Adresse",
|
||||||
location: "Localité",
|
location: "Localité",
|
||||||
},
|
},
|
||||||
|
interlocutors: {
|
||||||
|
title: "Interlocuteurs privilégiés",
|
||||||
|
counter: "Pas d'interlocuteur | 1 interlocuteur | {count} interlocuteurs",
|
||||||
|
firstname: "Prénom",
|
||||||
|
lastname: "Nom",
|
||||||
|
add_interlocutors: "Ajouter des interlocuteurs",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user