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-06 15:34:30 +00:00
|
|
|
<section data-create=''>
|
2018-03-06 15:05:29 +00:00
|
|
|
|
|
|
|
<select class='category'>
|
2018-03-06 15:20:31 +00:00
|
|
|
<option selected='selected' disabled='disabled'>Catégorie d'enseignant</option>
|
|
|
|
<option v-for='cat in gstore.categories' :value='cat.idCategorie'>{{ cat.labelCategorie }}</option>
|
2018-03-06 15:05:29 +00:00
|
|
|
</select>
|
|
|
|
<h1>
|
|
|
|
<input type='text' placeholder='Prénom Nom' value='Prénom Nom'>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div class='table'>
|
|
|
|
<div>
|
|
|
|
<span><input type='text' placeholder='???' value='192'></span>
|
|
|
|
<span>heures à faire</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-03-06 15:34:30 +00:00
|
|
|
<div class='sub'> </div>
|
2018-03-06 15:05:29 +00:00
|
|
|
|
|
|
|
<div class='footer'>
|
2018-03-06 15:34:30 +00:00
|
|
|
<button class='valid'>Créer l'enseignant</button>
|
2018-03-06 15:05:29 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
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>
|
2018-03-06 15:37:27 +00:00
|
|
|
<h1 :class="prof.hoursToDo > prof.equiTD ? 'warning' : ''">{{ prof.firstName }} {{ prof.lastName }}</h1>
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
<div class='table'>
|
|
|
|
<div>
|
|
|
|
<span>{{prof.hoursToDo}}</span>
|
|
|
|
<span>heures à faire</span>
|
|
|
|
</div>
|
|
|
|
<div>
|
2018-03-06 14:02:36 +00:00
|
|
|
<span>{{ prof.equiTD }}</span>
|
2018-03-04 16:23:35 +00:00
|
|
|
<span>heures prévues</span>
|
|
|
|
</div>
|
2018-03-03 18:37:38 +00:00
|
|
|
</div>
|
2018-03-04 16:23:35 +00:00
|
|
|
|
2018-03-06 14:02:36 +00:00
|
|
|
<div class='sub'><strong>{{ prof.VHCours + prof.VHTd + prof.VHTp }}h</strong> physiques prévues</div>
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
<div class='footer'>
|
2018-03-06 14:02:36 +00:00
|
|
|
<span :class="(prof.VHCours == 0) ? 'course' : 'course active'">{{ prof.VHCours }}h <span>Cours</span></span><hr>
|
|
|
|
<span :class="(prof.VHTd == 0) ? 'td' : 'td active'">{{ prof.VHTd }}h <span>TD</span></span><hr>
|
|
|
|
<span :class="(prof.VHTp == 0) ? 'tp' : 'tp active'">{{ prof.VHTp }}h <span>TP</span></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>
|