Ammelioration apparance show
This commit is contained in:
parent
85d1ef6e10
commit
cdfe44d678
|
@ -3,46 +3,30 @@
|
||||||
{% block title %}Atelier{% endblock %}
|
{% block title %}Atelier{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<h1>Atelier</h1>
|
<div class="card mb-4">
|
||||||
|
<div class="card-header">
|
||||||
|
<h1 class="card-title">Atelier : "{{ atelier.nom }}"</h1>
|
||||||
|
<h6 class="card-subtitle mb-2 text-muted">Instructeur : <a href="mailto:{{ atelier.instructeur.email }}"
|
||||||
|
class="card-link">{{ atelier.instructeur.prenom }} {{ atelier.instructeur.nom }}</a>
|
||||||
|
- Moyenne des notes : {{ note }}</h6>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="card-text">
|
||||||
|
{{ atelier.description | raw }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<table class="table">
|
{% if is_granted('ROLE_INSTRUCTEUR') %}
|
||||||
<tbody>
|
<details class="card">
|
||||||
<tr>
|
<summary class="card-header">Eleves inscrits</summary>
|
||||||
<th>Id</th>
|
<ul class="list-group list-group-flush">
|
||||||
<td>{{ atelier.id }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Nom</th>
|
|
||||||
<td>{{ atelier.nom }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Description</th>
|
|
||||||
<td>{{ atelier.description | raw }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Email instructeur</th>
|
|
||||||
<td>{{ atelier.instructeur.email }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Note</th>
|
|
||||||
<td>
|
|
||||||
{{ note }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Elèves inscrits</th>
|
|
||||||
<td>
|
|
||||||
<ul>
|
|
||||||
{% for eleve in eleves %}
|
{% for eleve in eleves %}
|
||||||
<li>{{ eleve.prenom }} {{ eleve.nom }} - {{ eleve.email }}</li>
|
<li class="list-group-item">{{ eleve.prenom }} {{ eleve.nom }} - {{ eleve.email }}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</details>
|
||||||
</tr>
|
{% endif %}
|
||||||
</tbody>
|
</div>
|
||||||
</table>
|
<div class="d-flex flex-row card-footer">
|
||||||
|
|
||||||
<div class="d-flex flex-row">
|
|
||||||
{% if app.user and app.user == atelier.instructeur %}
|
{% if app.user and app.user == atelier.instructeur %}
|
||||||
<a class="btn btn-outline-primary m-2"
|
<a class="btn btn-outline-primary m-2"
|
||||||
href="{{ path('app_atelier_edit', {'id': atelier.id}) }}">Modifier</a>
|
href="{{ path('app_atelier_edit', {'id': atelier.id}) }}">Modifier</a>
|
||||||
|
@ -64,4 +48,5 @@
|
||||||
href="{{ path('app_atelier_noter', {'id': atelier.id}) }}">Noter</a>
|
href="{{ path('app_atelier_noter', {'id': atelier.id}) }}">Noter</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue