Studienliste keine Tabelle mehr

This commit is contained in:
Andreas Stephanides
2013-02-13 00:57:54 +01:00
parent f2e2b1203f
commit e254db7ae2
3 changed files with 5 additions and 21 deletions

View File

@@ -10,7 +10,7 @@
<%= @modulgruppe.name %>
</h1>
<p>
<b><%= link_to "Studium: "+@modulgruppe.studium.name, studium_path(@modulgruppe.studium) %></b>
<!-- <b><%= link_to "Studium: "+@modulgruppe.studium.name, studium_path(@modulgruppe.studium) %></b>-->
</p><p>
<b><%= I18n.t "modulgruppe.typ"%>:</b>

View File

@@ -1,30 +1,13 @@
<h1><%= I18n.t("studien.list") %></h1>
<table class="table-striped">
<tr>
<th>Zahl</th>
<th>Name</th>
<th>Desc</th>
<th>Typ</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @studien.each do |studium| %>
<tr>
<td><%= studium.zahl %></td>
<td><%= studium.name %></td>
<td><%= studium.typ %></td>
<td><%= link_to 'Show', studium_path(studium) %></td>
<td><%= link_to 'Edit', edit_studium_path(studium) %></td>
<td><%= link_to 'Destroy', studium, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<h2><%= link_to studium.zahl + " "+ studium.typ+" " + studium.name, studium_path(studium) %></h2>
<% end %>
</table>
<br />

View File

@@ -24,6 +24,7 @@
<span class="span12">
<%= link_to '<i class="icon-plus-sign"></i>'.html_safe+I18n.t("studien.newmodulgroup"), new_studium_modulgruppe_path(@studium),:class=>"btn" %> |
<%= link_to '<i class="icon-pencil"></i>'.html_safe+I18n.t("common.edit"), edit_studium_path(@studium) ,:class=>"btn"%>
<%= link_to 'Destroy', @studium, method: :delete, data: { confirm: 'Are you sure?' } %>
</span>
</div>