2018-03-12 18:50:33 +00:00
|
|
|
<template>
|
|
|
|
|
2018-03-14 18:57:31 +00:00
|
|
|
<div id='CONTAINER' class='list'>
|
2018-03-12 18:50:33 +00:00
|
|
|
|
2018-03-14 18:57:31 +00:00
|
|
|
<div class='list container' data-anim-incoming='1' :data-anim-bounce='gstore.nav_anim.out?1:0'>
|
|
|
|
|
|
|
|
<!-- <button @click='gstore.nav_out($router)'>Retour</button> -->
|
|
|
|
|
|
|
|
<!-- FILTERS -->
|
2018-03-15 12:13:35 +00:00
|
|
|
<section class='filter'>
|
2018-03-14 18:57:31 +00:00
|
|
|
|
2018-03-15 12:13:35 +00:00
|
|
|
<div>Type</div>
|
2018-03-14 18:57:31 +00:00
|
|
|
<div>enseignant</div>
|
|
|
|
<div>volume horaire</div>
|
|
|
|
<div>formations</div>
|
|
|
|
|
2018-03-15 12:13:35 +00:00
|
|
|
</section>
|
2018-03-12 18:50:33 +00:00
|
|
|
|
2018-03-14 17:56:55 +00:00
|
|
|
<!-- COURS -->
|
2018-03-15 12:41:16 +00:00
|
|
|
<section class='cours'
|
2018-03-14 17:56:55 +00:00
|
|
|
v-for='c in gstore.manage.cours'
|
2018-03-14 18:57:31 +00:00
|
|
|
:data-id='c.idCours'>
|
2018-03-12 18:50:33 +00:00
|
|
|
|
2018-03-14 18:57:31 +00:00
|
|
|
<div>Cours</div>
|
|
|
|
<div :data-prof='c.idProf'>{{ c.idProf ? `${c.firstName} ${c.lastName}` : 'Aucun enseignant affecté' }}</div>
|
2018-03-14 17:56:55 +00:00
|
|
|
<div>{{ c.volume }}</div>
|
2018-03-14 18:57:31 +00:00
|
|
|
<div class='taglist'>
|
2018-03-15 14:15:12 +00:00
|
|
|
<div v-for='f in c.formations' data-action>
|
|
|
|
<span class='tag'>{{ gstore.form_by_id(f).labelForm || '???' }}</span>
|
|
|
|
<span data-remove @click='gstore.rem_for(0, c.idCours, f)'></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div data-action>
|
|
|
|
<select class='tag'>
|
|
|
|
<option value='-' disbabled selected>Ajouter</option>
|
|
|
|
<option
|
|
|
|
v-for='f in gstore.formations'
|
|
|
|
v-show='c.formations.indexOf(f.idForm) < 0'
|
|
|
|
:value='f.idForm'>{{ f.labelForm }}</option>
|
|
|
|
</select>
|
|
|
|
<span class='pointer' data-create @click='gstore.add_for(0, c.idCours)'></span>
|
|
|
|
</div>
|
2018-03-14 18:57:31 +00:00
|
|
|
</div>
|
2018-03-12 18:50:33 +00:00
|
|
|
|
|
|
|
</section>
|
|
|
|
|
2018-03-14 17:56:55 +00:00
|
|
|
|
|
|
|
<!-- TD -->
|
2018-03-15 12:41:16 +00:00
|
|
|
<section class='td'
|
2018-03-14 18:57:31 +00:00
|
|
|
v-for='td in gstore.manage.td'
|
|
|
|
:data-id='td.idTD'
|
|
|
|
data-anim-incoming='1'
|
|
|
|
:data-anim-bounce='gstore.nav_anim.out?1:0'>
|
|
|
|
|
|
|
|
<div>TD</div>
|
|
|
|
<div :data-prof='td.idProf'>{{ td.idProf ? `${td.firstName} ${td.lastName}` : 'Aucun enseignant affecté' }}</div>
|
|
|
|
<div>{{ td.volume }}</div>
|
|
|
|
<div class='taglist'>
|
2018-03-15 14:15:12 +00:00
|
|
|
<div v-for='f in td.formations' data-action>
|
|
|
|
<span class='tag'>{{ gstore.form_by_id(f).labelForm || '???' }}</span>
|
|
|
|
<span data-remove @click='gstore.rem_for(1, td.idTD, f)'></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div data-action>
|
|
|
|
<select class='tag'>
|
|
|
|
<option value='-' disbabled selected>Ajouter</option>
|
|
|
|
<option
|
|
|
|
v-for='f in gstore.formations'
|
|
|
|
v-show='td.formations.indexOf(f.idForm) < 0'
|
|
|
|
:value='f.idForm'>{{ f.labelForm }}</option>
|
|
|
|
</select>
|
|
|
|
<span class='pointer' data-create @click='gstore.add_for(1, td.idTD)'></span>
|
|
|
|
</div>
|
2018-03-14 18:57:31 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
2018-03-14 17:56:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- TP -->
|
2018-03-15 12:41:16 +00:00
|
|
|
<section class='tp'
|
2018-03-14 18:57:31 +00:00
|
|
|
v-for='tp in gstore.manage.tp'
|
|
|
|
:data-id='tp.idTP'
|
|
|
|
data-anim-incoming='1'
|
|
|
|
:data-anim-bounce='gstore.nav_anim.out?1:0'>
|
2018-03-14 17:56:55 +00:00
|
|
|
|
2018-03-14 18:57:31 +00:00
|
|
|
<div>TP</div>
|
|
|
|
<div :data-prof='tp.idProf'>{{ tp.idProf ? `${tp.firstName} ${tp.lastName}` : 'Aucun enseignant affecté' }}</div>
|
|
|
|
<div>{{ tp.volume }}</div>
|
|
|
|
<div class='taglist'>
|
2018-03-15 14:15:12 +00:00
|
|
|
<div v-for='f in tp.formations' data-action>
|
|
|
|
<span class='tag'>{{ gstore.form_by_id(f).labelForm || '???' }}</span>
|
|
|
|
<span data-remove @click='gstore.rem_for(2, tp.idTP, f)'></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div data-action>
|
|
|
|
<select class='tag'>
|
|
|
|
<option value='-' disbabled selected>Ajouter</option>
|
|
|
|
<option
|
|
|
|
v-for='f in gstore.formations'
|
|
|
|
v-show='tp.formations.indexOf(f.idForm) < 0'
|
|
|
|
:value='f.idForm'>{{ f.labelForm }}</option>
|
|
|
|
</select>
|
|
|
|
<span class='pointer' data-create @click='gstore.add_for(2, tp.idTP)'></span>
|
|
|
|
</div>
|
2018-03-14 18:57:31 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
2018-03-12 18:50:33 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'CONTAINER_VIEW',
|
|
|
|
data(){
|
|
|
|
return { gstore: gstore.get }
|
2018-03-14 17:56:55 +00:00
|
|
|
},
|
|
|
|
beforeMount(){
|
|
|
|
gstore.get.manage_load(this.$route.params.code, this.$router);
|
2018-03-12 18:50:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|