15 lines
396 B
Elixir
15 lines
396 B
Elixir
<h1><%= @class.name %></h1>
|
|
|
|
<span><%= link "Editer", to: Routes.class_path(@conn, :edit, @class) %></span>
|
|
<span><%= link "Retour", to: Routes.class_path(@conn, :index) %></span>
|
|
|
|
<hr>
|
|
|
|
<h2>Liste des élèves</h2>
|
|
|
|
<ul>
|
|
<%= for student <- @class.students do %>
|
|
<li><%= link "#{student.lastname} - #{student.firstname}", to: Routes.student_path(@conn, :show, student) %></li>
|
|
<% end %>
|
|
</ul>
|