[webpack.teacher.view] updated with VH data

This commit is contained in:
xdrm-brackets 2018-03-04 11:59:10 +01:00
parent 2352842543
commit 8bb07d4a33
2 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
<section v-if='gstore.professors.length <= 0'>Aucun enseignant trouvé</section>
<section v-for='prof in gstore.professors'>
<section v-for='prof in gstore.professors' :data-id='prof.idProfesseur'>
<span class='category'>{{ prof.abreviation }}</span>
<h1>{{ prof.firstName }} {{ prof.lastName }}</h1>
@ -14,15 +14,15 @@
<span>heures à faire</span>
</div>
<div>
<span>?</span>
<span>{{prof.equiTD}}</span>
<span>heures prévues</span>
</div>
</div>
<div class='footer'>
<span class='course active'>13</span><hr>
<span class='td active'>9</span><hr>
<span class='tp active'>32</span>
<span class='course active'>{{prof.VHCours}}</span><hr>
<span class='td active'>{{prof.VHTd}}</span><hr>
<span class='tp active'>{{prof.VHTp}}</span>
</div>
</section>

View File

@ -4,7 +4,7 @@
gstore.add('professors', []);
/* (2) Get professors */
api.call('GET professor', {}, function(rs){
api.call('GET professor/1/', { vh: true }, function(rs){
// {1} If error -> abort //
if( rs.error !== 0 )