forked from bofh/fetsite
Layout änderungen für Modul und Modulgruppenindex
Tabellenformatierung durch render-div kombination ersetzt, modul/lang- version für Modulanzeige mit Modulgruppen eingefügt
This commit is contained in:
@@ -1,36 +1,7 @@
|
||||
|
||||
<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>
|
||||
<%= render :partial=>'moduls/lang', :collection=>@moduls, :as=>:modul%>
|
||||
|
||||
<br />
|
||||
<% #if !@studium.nil? %>
|
||||
|
||||
Reference in New Issue
Block a user