[webpack.teacher.view] updated with VH data
This commit is contained in:
parent
2352842543
commit
8bb07d4a33
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<section v-if='gstore.professors.length <= 0'>Aucun enseignant trouvé</section>
|
<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>
|
<span class='category'>{{ prof.abreviation }}</span>
|
||||||
<h1>{{ prof.firstName }} {{ prof.lastName }}</h1>
|
<h1>{{ prof.firstName }} {{ prof.lastName }}</h1>
|
||||||
|
|
||||||
|
@ -14,15 +14,15 @@
|
||||||
<span>heures à faire</span>
|
<span>heures à faire</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span>?</span>
|
<span>{{prof.equiTD}}</span>
|
||||||
<span>heures prévues</span>
|
<span>heures prévues</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='footer'>
|
<div class='footer'>
|
||||||
<span class='course active'>13</span><hr>
|
<span class='course active'>{{prof.VHCours}}</span><hr>
|
||||||
<span class='td active'>9</span><hr>
|
<span class='td active'>{{prof.VHTd}}</span><hr>
|
||||||
<span class='tp active'>32</span>
|
<span class='tp active'>{{prof.VHTp}}</span>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
gstore.add('professors', []);
|
gstore.add('professors', []);
|
||||||
|
|
||||||
/* (2) Get professors */
|
/* (2) Get professors */
|
||||||
api.call('GET professor', {}, function(rs){
|
api.call('GET professor/1/', { vh: true }, function(rs){
|
||||||
|
|
||||||
// {1} If error -> abort //
|
// {1} If error -> abort //
|
||||||
if( rs.error !== 0 )
|
if( rs.error !== 0 )
|
||||||
|
|
Loading…
Reference in New Issue