2018-03-01 17:26:07 +00:00
|
|
|
<template>
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
<div id='CONTAINER'>
|
2018-03-03 18:37:38 +00:00
|
|
|
|
2018-03-04 17:15:48 +00:00
|
|
|
<input class='card instant-search neutral' type='text' @keyup='gstore.is_handler($event)' placeholder='Recherche instantannée' id='teacher_view_instant_search'>
|
2018-03-03 18:37:38 +00:00
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
<div class='card container'>
|
2018-03-03 18:37:38 +00:00
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
<section v-if='gstore.professors.length <= 0'>Aucun enseignant trouvé</section>
|
|
|
|
|
2018-03-04 17:15:48 +00:00
|
|
|
<section v-for='prof in gstore.professors'
|
|
|
|
:data-id='prof.idProfesseur'
|
|
|
|
:data-category='prof.idCat'
|
|
|
|
:data-lname='prof.lastName'
|
|
|
|
:data-fname='prof.firstName'>
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
<span class='category'>{{ prof.categorie }}</span>
|
|
|
|
<h1>{{ prof.firstName }} {{ prof.lastName }}</h1>
|
|
|
|
|
|
|
|
<div class='table'>
|
|
|
|
<div>
|
|
|
|
<span>{{prof.hoursToDo}}</span>
|
|
|
|
<span>heures à faire</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span>{{ prof.VHCours + prof.VHTd + prof.VHTp }}</span>
|
|
|
|
<span>heures prévues</span>
|
|
|
|
</div>
|
2018-03-03 18:37:38 +00:00
|
|
|
</div>
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
<div class='sub'><strong>{{ prof.equiTD }}h</strong> équivalents TD</div>
|
|
|
|
|
|
|
|
<div class='footer'>
|
|
|
|
<span :class="(prof.VHCours == 0) ? 'course' : 'course active'">{{ prof.VHCours }}</span><hr>
|
|
|
|
<span :class="(prof.VHTd == 0) ? 'td' : 'td active'">{{ prof.VHTd }}</span><hr>
|
|
|
|
<span :class="(prof.VHTp == 0) ? 'tp' : 'tp active'">{{ prof.VHTp }}</span>
|
2018-03-03 18:37:38 +00:00
|
|
|
</div>
|
2018-03-04 16:23:35 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='card filter'>
|
2018-03-03 18:37:38 +00:00
|
|
|
|
2018-03-05 10:46:01 +00:00
|
|
|
<div v-for='(filter_grp, gname) in gstore.filters' :title='gname'>
|
|
|
|
|
|
|
|
<div class='fold' :data-show='gstore.filters[gname][0].visible ? 1 : 0' @click='gstore.filters[gname][0].visible = !gstore.filters[gname][0].visible'>{{ gname }}</div>
|
|
|
|
|
2018-03-05 17:20:40 +00:00
|
|
|
<span v-for='(data, i) in filter_grp' v-if='i > 0' :class="data.active == true ? 'active' : ''" @click='data.active = !data.active; gstore.filter_handler();' :title='data.code'>{{ data.name }}</span>
|
2018-03-04 11:46:47 +00:00
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
</div>
|
2018-03-05 10:46:01 +00:00
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
</div>
|
2018-03-01 17:26:07 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'CONTAINER_VIEW',
|
|
|
|
data(){
|
|
|
|
return { gstore: gstore.get }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|