2023-03-28 13:42:53 +02:00
|
|
|
<main-controller>
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column is-one-third">
|
2023-03-28 16:52:53 +02:00
|
|
|
<div class="box p-3 m-2">
|
|
|
|
<img class="mt-1 ml-5 mr-auto" style="margin: auto;" src="../resources/logo-parcoursup.svg"/>
|
2023-03-28 16:17:29 +02:00
|
|
|
</div>
|
2023-03-29 22:01:50 +02:00
|
|
|
<search updateCourse={updateCourse}></search>
|
2023-03-28 13:42:53 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
2023-03-30 00:54:13 +02:00
|
|
|
<fili-info course={state.course} shouldShowInfos={state.shouldShowInfos}></fili-info>
|
|
|
|
<school course={state.course} shouldShowInfos={state.shouldShowInfos}></school>
|
2023-03-28 13:42:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<school-info></school-info>
|
|
|
|
|
|
|
|
<script>
|
2023-03-30 00:54:13 +02:00
|
|
|
export default {
|
2023-03-29 22:01:50 +02:00
|
|
|
onBeforeMount(props, state) {
|
|
|
|
//Initial state
|
|
|
|
this.state = {
|
2023-03-30 00:54:13 +02:00
|
|
|
course: null,
|
|
|
|
shouldShowInfos: false
|
2023-03-29 22:01:50 +02:00
|
|
|
}
|
|
|
|
},
|
2023-03-30 00:54:13 +02:00
|
|
|
updateCourse(course){
|
2023-03-29 22:01:50 +02:00
|
|
|
this.update({
|
2023-03-30 00:54:13 +02:00
|
|
|
course: course,
|
|
|
|
shouldShowInfos: course != null
|
2023-03-29 22:01:50 +02:00
|
|
|
})
|
|
|
|
}
|
2023-03-28 13:42:53 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</main-controller>
|