mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
vue_accourse: initialize new submodule courseLocation
This commit is contained in:
parent
e2e38a9ce8
commit
714d8b841c
@ -12,6 +12,7 @@
|
||||
<origin-demand></origin-demand>
|
||||
<requestor></requestor>
|
||||
<social-issue></social-issue>
|
||||
<course-location></course-location>
|
||||
<referrer></referrer>
|
||||
<resources></resources>
|
||||
<comment v-if="accompanyingCourse.step === 'DRAFT'"></comment>
|
||||
@ -29,6 +30,7 @@ import OriginDemand from './components/OriginDemand.vue';
|
||||
import PersonsAssociated from './components/PersonsAssociated.vue';
|
||||
import Requestor from './components/Requestor.vue';
|
||||
import SocialIssue from './components/SocialIssue.vue';
|
||||
import CourseLocation from './components/CourseLocation.vue';
|
||||
import Referrer from './components/Referrer.vue';
|
||||
import Resources from './components/Resources.vue';
|
||||
import Comment from './components/Comment.vue';
|
||||
@ -43,6 +45,7 @@ export default {
|
||||
PersonsAssociated,
|
||||
Requestor,
|
||||
SocialIssue,
|
||||
CourseLocation,
|
||||
Referrer,
|
||||
Resources,
|
||||
Comment,
|
||||
|
@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<li>
|
||||
<button class="btn btn-sm btn-secondary" :title="$t('courselocation.assign_course_address')">
|
||||
<i class="fa fa-map-marker"></i>
|
||||
</button>
|
||||
</li>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "ButtonLocation"
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,52 @@
|
||||
<template>
|
||||
<div class="vue-component">
|
||||
<h2><a name="section-35"></a>
|
||||
{{ $t('courselocation.title') }}
|
||||
</h2>
|
||||
<div class="my-4">
|
||||
|
||||
<div>
|
||||
<show-address
|
||||
v-if="address"
|
||||
v-bind:address="address">
|
||||
</show-address>
|
||||
</div>
|
||||
|
||||
<!--ul class="record_actions">
|
||||
<li>
|
||||
<button class="btn btn-create" type="button" name="button">
|
||||
{{ $t('courselocation.add_temp_address') }}
|
||||
</button>
|
||||
</li>
|
||||
</ul-->
|
||||
<add-address
|
||||
modalAddTitle="courselocation.add_temp_address"
|
||||
modalEditTitle="courselocation.edit_temp_address"
|
||||
@addNewAddress="addTemporaryAddress">
|
||||
</add-address>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AddAddress from 'ChillMainAssets/vuejs/Address/components/AddAddress.vue';
|
||||
import ShowAddress from 'ChillMainAssets/vuejs/Address/components/ShowAddress.vue';
|
||||
|
||||
export default {
|
||||
name: "CourseLocation",
|
||||
components: {
|
||||
AddAddress,
|
||||
ShowAddress
|
||||
},
|
||||
methods: {
|
||||
addTemporaryAddress({ address, modal }) {
|
||||
console.log('@@@ CLICK button addTemporaryAdress', address);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
</style>
|
@ -12,6 +12,9 @@
|
||||
</td>
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
<button-location
|
||||
v-if="!participation.endDate">
|
||||
</button-location>
|
||||
<li>
|
||||
<on-the-fly
|
||||
v-bind:type="participation.person.type"
|
||||
@ -47,11 +50,13 @@
|
||||
|
||||
<script>
|
||||
import OnTheFly from 'ChillMainAssets/vuejs/_components/OnTheFly.vue';
|
||||
import ButtonLocation from '../ButtonLocation.vue';
|
||||
|
||||
export default {
|
||||
name: 'PersonItem',
|
||||
components: {
|
||||
OnTheFly
|
||||
OnTheFly,
|
||||
ButtonLocation
|
||||
},
|
||||
props: ['participation'],
|
||||
emits: ['remove', 'close'],
|
||||
|
@ -20,6 +20,9 @@
|
||||
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
<button-location
|
||||
v-if="resource.resource.type === 'person'">
|
||||
</button-location>
|
||||
<li>
|
||||
<on-the-fly
|
||||
v-bind:type="resource.resource.type"
|
||||
@ -48,11 +51,13 @@
|
||||
|
||||
<script>
|
||||
import OnTheFly from 'ChillMainAssets/vuejs/_components/OnTheFly.vue';
|
||||
import ButtonLocation from '../ButtonLocation.vue';
|
||||
|
||||
export default {
|
||||
name: 'ResourceItem',
|
||||
components: {
|
||||
OnTheFly
|
||||
OnTheFly,
|
||||
ButtonLocation
|
||||
},
|
||||
props: ['resource'],
|
||||
emits: ['remove']
|
||||
|
@ -63,6 +63,12 @@ const appMessages = {
|
||||
title: "Problématiques sociales",
|
||||
label: "Choisir les problématiques sociales",
|
||||
},
|
||||
courselocation: {
|
||||
title: "Localisation du parcours",
|
||||
add_temp_address: "Ajouter une adresse temporaire",
|
||||
edit_temp_address: "Modifier l'adresse temporaire",
|
||||
assign_course_address: "Désigner comme l'adresse du parcours",
|
||||
},
|
||||
referrer: {
|
||||
title: "Référent du parcours",
|
||||
label: "Vous pouvez choisir un TMS ou vous assigner directement comme référent",
|
||||
|
Loading…
x
Reference in New Issue
Block a user