25 lines
894 B
Elixir
25 lines
894 B
Elixir
<h1>Liste des rendus</h1>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Elève</th>
|
|
<th>Classe</th>
|
|
<th>Devoir</th>
|
|
<th>Validé</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<%= for work <- @works do %>
|
|
<tr>
|
|
<td><%= link "#{work.student.lastname} #{work.student.firstname}", to: Routes.student_path(@conn, :show, work.student.id) %></td>
|
|
<td><%= link work.student.class.name, to: Routes.class_path(@conn, :show, work.student.class.id) %></td>
|
|
<td><%= link "#{work.assignment.title} | #{work.assignment.slug}", to: Routes.assignment_path(@conn, :show, work.assignment.id) %></td>
|
|
<td><%= work.inserted_at %></td>
|
|
<td><%= link "Télécharger", to: Path.join([Application.fetch_env!(:confient, :domain), "uploads", work.student.class.name, work.assignment.slug, work.path]), target: "_blank" %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|