forked from bofh/fetsite
ADD: Informationsseite:
Models für Themengruppen/Themen/FAQs/Attachments Views für Themengruppen/Themen
This commit is contained in:
@@ -1,25 +1,24 @@
|
||||
<h1>Listing themengruppen</h1>
|
||||
<div class="container-fluid">
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Text</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @themengruppen.each do |themengruppe| %>
|
||||
<tr>
|
||||
<td><%= themengruppe.title %></td>
|
||||
<td><%= themengruppe.text %></td>
|
||||
<td><%= link_to 'Show', themengruppe %></td>
|
||||
<td><%= link_to 'Edit', edit_themengruppe_path(themengruppe) %></td>
|
||||
<td><%= link_to 'Destroy', themengruppe, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% @themengruppen.each_slice(2) do |row| %>
|
||||
<div class="row-fluid">
|
||||
<% row.each do |themengruppe| %>
|
||||
<div class="span6 equalheight">
|
||||
<div class="themengruppe">
|
||||
<%= render themengruppe %>
|
||||
<p>
|
||||
<%= link_to 'Edit', edit_themengruppe_path(themengruppe) %>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<script>
|
||||
make_equal_height();
|
||||
</script>
|
||||
|
||||
<%= link_to 'New Themengruppe', new_themengruppe_path %>
|
||||
|
||||
Reference in New Issue
Block a user