forked from bofh/fetsite
40 lines
913 B
Plaintext
Executable File
40 lines
913 B
Plaintext
Executable File
<h1><%= I18n.t("modul.show.title") %></h1>
|
|
|
|
<table class="table" >
|
|
<tr>
|
|
<th>Modulgruppe (Studium)</th>
|
|
<th>Name</th>
|
|
<th>Desc</th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
<% @moduls.sort_by{|n| n[:name]}.each do |modul| %>
|
|
<tr>
|
|
<td>
|
|
<%modul.modulgruppen.sort_by{|n| n[:name]}.each do |m|%>
|
|
|
|
|
|
<%=m.name unless m.nil? %> (<%=m.studium.name unless m.studium.nil? %>)
|
|
<!-- Modulgruppenname falls existiert (Studium falls existiert) -->
|
|
<br>
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td><%= modul.name %></td>
|
|
<td><%= modul.desc %></td>
|
|
<td><%= link_to 'Show', modul_path(modul) %></td>
|
|
<td><%= link_to 'Edit', edit_modul_path(modul) %></td>
|
|
<td><%= link_to 'Destroy', [modul], method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
<br />
|
|
<% #if !@studium.nil? %>
|
|
<%= link_to 'New Modul', new_modul_path() %>
|
|
<% #end%>
|
|
|