Beispiel Listing design

This commit is contained in:
Thomas Blazek
2013-07-25 23:26:23 +02:00
parent c6e7584253
commit 8c24c7b09b
2 changed files with 24 additions and 20 deletions

View File

@@ -1,25 +1,10 @@
<h1>Listing beispiele</h1>
<table>
<tr>
<th>Name</th>
<th>Desc</th>
<th></th>
<th></th>
<th></th>
</tr>
<ul>
<% @beispiele.each do |beispiel| %>
<tr>
<td><%= beispiel.name %></td>
<td><%= beispiel.desc %></td>
<td><%= link_to 'Show', beispiel %></td>
<td><%= link_to 'Edit', edit_beispiel_path(beispiel) %></td>
<td><%= link_to 'Destroy', beispiel, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<li>
<%= render :partial=> "beispiele/beispiel_list", :object => beispiel, :as=>:beispiel%>
<% end %>
</table>
<br />
</li>
</ul>
<%= link_to 'New Beispiel', new_beispiel_path %>