Add users and grades display
This commit is contained in:
parent
42b15a1546
commit
c9d64640e2
13 changed files with 432 additions and 17 deletions
62
htdocs/views/user.html
Normal file
62
htdocs/views/user.html
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<h2>
|
||||
Étudiant
|
||||
<small class="text-muted">
|
||||
{{ user.login }}
|
||||
</small>
|
||||
</h2>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="offset-1 col-7">
|
||||
<dl class="row">
|
||||
<dt class="col-2">ID</dt>
|
||||
<dd class="col-10">{{ user.id }}</dd>
|
||||
|
||||
<dt class="col-2">Login</dt>
|
||||
<dd class="col-10">{{ user.login }}</dd>
|
||||
|
||||
<dt class="col-2">E-mail</dt>
|
||||
<dd class="col-10"><a href="mailto:{{ user.email }}">{{ user.email }}</a></dd>
|
||||
|
||||
<dt class="col-2">Nom</dt>
|
||||
<dd class="col-10">{{ user.lastname }}</dd>
|
||||
|
||||
<dt class="col-2">Prénom</dt>
|
||||
<dd class="col-10">{{ user.firstname }}</dd>
|
||||
|
||||
<dt class="col-2">Date d'inscription</dt>
|
||||
<dd class="col-10">{{ user.time }}</dd>
|
||||
|
||||
<dt class="col-2">Admin</dt>
|
||||
<dd class="col-10">{{ user.id_admin?"Oui":"Non" }}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div class="col-3">
|
||||
<img src="https://photos.cri.epita.fr/thumb/{{ user.login }}" alt="avatar" style="max-width: inherit; max-height: inherit">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card" ng-controller="SurveysController">
|
||||
<div class="card-header">
|
||||
Questionnaires
|
||||
</div>
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Titre</th>
|
||||
<th>Avancement</th>
|
||||
<th>Note</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="(sid,survey) in surveys">
|
||||
<td>{{ survey.id }}</td>
|
||||
<td>{{ survey.title }}</td>
|
||||
<td ng-controller="UserGradesController" title="{{ grades }}">{{ avancement * 100 | number:2 }} %</td>
|
||||
<td ng-controller="UserScoreController">{{ score.score | number:2 }}<span ng-show="score.score >= 0">/20</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
Reference in a new issue