mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
vue_activity Location i18n translations
This commit is contained in:
parent
ada9efc75d
commit
3e4cb41f7a
@ -2,7 +2,7 @@
|
|||||||
<teleport to="#location">
|
<teleport to="#location">
|
||||||
<div class="mb-3 row">
|
<div class="mb-3 row">
|
||||||
<label class="col-form-label col-sm-4">
|
<label class="col-form-label col-sm-4">
|
||||||
Localisation
|
{{ $t('activity.location') }}
|
||||||
</label>
|
</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
|
|
||||||
@ -13,14 +13,13 @@
|
|||||||
:multiple="false"
|
:multiple="false"
|
||||||
:searchable="true"
|
:searchable="true"
|
||||||
open-direction="top"
|
open-direction="top"
|
||||||
placeholder="Choisissez une localisation"
|
:placeholder="$t('activity.choose_location')"
|
||||||
label="name"
|
label="name"
|
||||||
:custom-label="customLabel"
|
:custom-label="customLabel"
|
||||||
v-model="location"
|
v-model="location"
|
||||||
:options="locations">
|
:options="locations">
|
||||||
</VueMultiselect>
|
</VueMultiselect>
|
||||||
<!--
|
|
||||||
-->
|
|
||||||
<new-location @saveNewLocation="saveNewLocation"></new-location>
|
<new-location @saveNewLocation="saveNewLocation"></new-location>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<li>
|
<li>
|
||||||
<a class="btn btn-sm btn-create" @click="openModal">
|
<a class="btn btn-sm btn-create" @click="openModal">
|
||||||
Créer une nouvelle localisation
|
{{ $t('activity.create_new_location') }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -14,7 +14,7 @@
|
|||||||
@close="modal.showModal = false">
|
@close="modal.showModal = false">
|
||||||
|
|
||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<h3 class="modal-title">Créer une nouvelle localisation</h3>
|
<h3 class="modal-title">{{ $t('activity.create_new_location') }}</h3>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body>
|
<template v-slot:body>
|
||||||
|
|
||||||
@ -26,38 +26,38 @@
|
|||||||
</add-address>
|
</add-address>
|
||||||
|
|
||||||
<div class="form-floating mb-3">
|
<div class="form-floating mb-3">
|
||||||
<input class="form-control form-control-lg" id="name" v-model="inputName" placeholder="edit me" />
|
<input class="form-control form-control-lg" id="name" v-model="inputName" placeholder />
|
||||||
<label for="name">Nom</label>
|
<label for="name">{{ $t('activity.location_fields.name') }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-floating mb-3">
|
<div class="form-floating mb-3">
|
||||||
<select class="form-select form-select-lg" id="type" v-model="selectType">
|
<select class="form-select form-select-lg" id="type" v-model="selectType">
|
||||||
<option selected disabled value="">Please select one</option>
|
<option selected disabled value="">{{ $t('activity.choose_location_type') }}</option>
|
||||||
<option v-for="ltype in locationTypes" :value="ltype.id">
|
<option v-for="t in locationTypes" :value="t.id">
|
||||||
{{ ltype.title.fr }}
|
{{ t.title.fr }}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
<label>Type</label>
|
<label>{{ $t('activity.location_fields.type') }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-floating mb-3">
|
<div class="form-floating mb-3">
|
||||||
<input class="form-control form-control-lg" id="phonenumber1" v-model="inputPhonenumber1" placeholder="edit me" />
|
<input class="form-control form-control-lg" id="phonenumber1" v-model="inputPhonenumber1" placeholder />
|
||||||
<label for="phonenumber1">Téléphone</label>
|
<label for="phonenumber1">{{ $t('activity.location_fields.phonenumber1') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-floating mb-3" v-if="hasPhonenumber1">
|
<div class="form-floating mb-3" v-if="hasPhonenumber1">
|
||||||
<input class="form-control form-control-lg" id="phonenumber2" v-model="inputPhonenumber2" placeholder="edit me" />
|
<input class="form-control form-control-lg" id="phonenumber2" v-model="inputPhonenumber2" placeholder />
|
||||||
<label for="phonenumber2">Autre téléphone</label>
|
<label for="phonenumber2">{{ $t('activity.location_fields.phonenumber2') }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-floating mb-3">
|
<div class="form-floating mb-3">
|
||||||
<input class="form-control form-control-lg" id="email" v-model="inputEmail" placeholder="edit me" />
|
<input class="form-control form-control-lg" id="email" v-model="inputEmail" placeholder />
|
||||||
<label for="email">Adresse courriel</label>
|
<label for="email">{{ $t('activity.location_fields.email') }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:footer>
|
<template v-slot:footer>
|
||||||
<button class="btn btn-save"
|
<button class="btn btn-save"
|
||||||
@click.prevent="$emit('saveNewLocation', selected); modal.showModal = false;">
|
@click.prevent="$emit('saveNewLocation', selected); modal.showModal = false;">
|
||||||
Enregistrer
|
{{ $t('action.save') }}
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -96,10 +96,10 @@ export default {
|
|||||||
addAddress: {
|
addAddress: {
|
||||||
options: {
|
options: {
|
||||||
button: {
|
button: {
|
||||||
text: { create: 'Créer une adresse', edit: "Modifier l'adresse" },
|
text: { create: 'activity.create_address', edit: 'activity.edit_address' },
|
||||||
size: 'btn-sm'
|
size: 'btn-sm'
|
||||||
},
|
},
|
||||||
title: { create: 'Créer une adresse', edit: "Modifier l'adresse" },
|
title: { create: 'activity.create_address', edit: 'activity.edit_address' },
|
||||||
},
|
},
|
||||||
context: {
|
context: {
|
||||||
target: { //name, id
|
target: { //name, id
|
||||||
|
@ -8,7 +8,7 @@ const appMessages = {
|
|||||||
choose_other_social_issue: "Ajouter une autre problématique sociale...",
|
choose_other_social_issue: "Ajouter une autre problématique sociale...",
|
||||||
social_actions: "Actions d'accompagnement",
|
social_actions: "Actions d'accompagnement",
|
||||||
select_first_a_social_issue: "Sélectionnez d'abord une problématique sociale",
|
select_first_a_social_issue: "Sélectionnez d'abord une problématique sociale",
|
||||||
|
|
||||||
//
|
//
|
||||||
add_persons: "Ajouter des personnes concernées",
|
add_persons: "Ajouter des personnes concernées",
|
||||||
bloc_persons: "Usagers",
|
bloc_persons: "Usagers",
|
||||||
@ -16,6 +16,22 @@ const appMessages = {
|
|||||||
bloc_persons_not_associated: "Tiers non-pro.",
|
bloc_persons_not_associated: "Tiers non-pro.",
|
||||||
bloc_thirdparty: "Tiers professionnels",
|
bloc_thirdparty: "Tiers professionnels",
|
||||||
bloc_users: "T(M)S",
|
bloc_users: "T(M)S",
|
||||||
|
|
||||||
|
//
|
||||||
|
location: "Localisation",
|
||||||
|
choose_location: "Choisissez une localisation",
|
||||||
|
choose_location_type: "Choisissez un type de localisation",
|
||||||
|
create_new_location: "Créer une nouvelle localisation",
|
||||||
|
location_fields: {
|
||||||
|
name: "Nom",
|
||||||
|
type: "Type",
|
||||||
|
phonenumber1: "Téléphone",
|
||||||
|
phonenumber2: "Autre téléphone",
|
||||||
|
email: "Adresse courriel",
|
||||||
|
},
|
||||||
|
create_address: 'Créer une adresse',
|
||||||
|
edit_address: "Modifier l'adresse"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user