diff --git a/src/Bundle/ChillPersonBundle/Resources/public/js/AccompanyingCourse.js b/src/Bundle/ChillPersonBundle/Resources/public/js/AccompanyingCourse.js
deleted file mode 100644
index 70ae23168..000000000
--- a/src/Bundle/ChillPersonBundle/Resources/public/js/AccompanyingCourse.js
+++ /dev/null
@@ -1,20 +0,0 @@
-
-import Vue from 'vue';
-
-const AccompanyingCourseComponent = {
- data() {
- return {
- id: 7,
- persons_associated: []
- };
- },
-};
-
-let app = Vue.CreateApp({
- delimiters: ['${', '}']
-})
- .component(AccompanyingCourseComponent)
-;
-
-
-app.mount('#app');
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/js/AccompanyingCourse.vue b/src/Bundle/ChillPersonBundle/Resources/public/js/AccompanyingCourse.vue
index 0ce30798c..1b9f60219 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/js/AccompanyingCourse.vue
+++ b/src/Bundle/ChillPersonBundle/Resources/public/js/AccompanyingCourse.vue
@@ -1,105 +1,88 @@
-
-
Usagers concernés
-
- - id
- - {{ course.id }}
- - opening_date
- - {{ course.opening_date }}
- - closing_date
- - {{ course.closing_date }}
- - remarkzzzzz
- - {{ course.remark }}
- - closing_motive
- - {{ course.closing_motive }}
-
-
-
-
-
- firstname |
- lastname |
- startdate |
- enddate |
- actions |
-
-
-
-
- {{ person.firstname }} |
- {{ person.lastname }} |
- {{ person.startdate }} |
- {{ person.enddate }} |
-
-
- |
-
-
-
-
-
+
+
Usagers concernés
+
+ - id
+ - {{ accompanying_course.id }}
+ - opening_date
+ - {{ accompanying_course.opening_date }}
+ - closing_date
+ - {{ accompanying_course.closing_date }}
+ - remark
+ - {{ accompanying_course.remark }}
+ - closing_motive
+ - {{ accompanying_course.closing_motive }}
+
+
+
+
+
+ firstname |
+ lastname |
+ startdate |
+ enddate |
+ actions |
+
+
+
+
+ {{ person.firstname }} |
+ {{ person.lastname }} |
+ {{ person.startdate }} |
+ {{ person.enddate }} |
+
+
+ |
+
+
+
+
+
-
+
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/js/components/PersonsAssociated.js b/src/Bundle/ChillPersonBundle/Resources/public/js/components/PersonsAssociated.js
deleted file mode 100644
index ca0f4ab8a..000000000
--- a/src/Bundle/ChillPersonBundle/Resources/public/js/components/PersonsAssociated.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import Vue from 'vue'
-import VueResource from 'vue-resource'
-
-Vue.use(VueResource);
-
-export default {
- template: '#vue-usagers',
- delimiters: ['${', '}'],
- data () {
- return {
- persons_associated: []
- };
- },
- http: {
- root: 'http://localhost:8001/fr/api'
- },
- methods: {
- addPerson(){
- this.persons_associated.persons.push({"firstname": "Lisa", "lastname": "Simpson", "startdate": "1975-09-15", "enddate": "2021-04-20" })
- }
- },
- computed: {
- counter() {
- return this.persons_associated.persons.length;
- }
- },
- created() {
- this.$resource('parcours/861/show').get().then((response) => {
- this.persons_associated = response.data
- }, (response) => {
- console.log('erreur', response);
- });
- }
-};
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/js/components/PersonsAssociated.vue b/src/Bundle/ChillPersonBundle/Resources/public/js/components/PersonsAssociated.vue
index 8954fdf53..8d1c8b69c 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/js/components/PersonsAssociated.vue
+++ b/src/Bundle/ChillPersonBundle/Resources/public/js/components/PersonsAssociated.vue
@@ -1,34 +1 @@
- import Vue from 'vue'
- import VueResource from 'vue-resource'
-
- Vue.use(VueResource)
-
- export default {
- template: '#vue-usagers',
- delimiters: ['${', '}'],
- data () {
- return {
- persons_associated: []
- }
- },
- http: {
- root: 'http://localhost:8001/fr/api'
- },
- methods: {
- addPerson(){
- this.persons_associated.persons.push({"firstname": "Lisa", "lastname": "Simpson", "startdate": "1975-09-15", "enddate": "2021-04-20" })
- }
- },
- computed: {
- counter() {
- return this.persons_associated.persons.length
- }
- },
- created() {
- this.$resource('parcours/861/show').get().then((response) => {
- this.persons_associated = response.data
- }, (response) => {
- console.log('erreur', response);
- })
- }
- }
+
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/js/index.js b/src/Bundle/ChillPersonBundle/Resources/public/js/index.js
index 6ca083f32..1fd76e2df 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/js/index.js
+++ b/src/Bundle/ChillPersonBundle/Resources/public/js/index.js
@@ -2,8 +2,8 @@ import AccompanyingCourseComponent from './AccompanyingCourse.vue';
import { createApp } from 'vue';
const app = createApp({
- name: 'AccCourseGlobal',
- template: '
',
+ name: 'AppGlobal',
+ template: '',
})
.component('accompanying-course', AccompanyingCourseComponent)
.mount('#app');
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/show.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/show.html.twig
index 4b6321998..87017bbc1 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/show.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/show.html.twig
@@ -6,16 +6,14 @@
{% block content %}
- {{ block('title') }}
+ {{ block('title') }}
+
+
-
-
-
-
-
- {{ encore_entry_script_tags('accompanying_course') }}
+ {{ encore_entry_script_tags('accompanying_course') }}
+
+
{% endblock %}