use tables to display clients
This commit is contained in:
@@ -5,12 +5,22 @@
|
||||
<h1>Clients</h1>
|
||||
|
||||
<div id="clients">
|
||||
<% @clients.each do |client| %>
|
||||
<%= render client %>
|
||||
<p>
|
||||
<%= link_to "Show this client", client %>
|
||||
</p>
|
||||
<% end %>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<% client_view_fields.each do |attrib| %>
|
||||
<th><%= attrib.to_s.humanize %></th>
|
||||
<% end %>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @clients.each do |client| %>
|
||||
<tr id="<%= dom_id client %>">
|
||||
<%= render client %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<%= link_to "New client", new_client_path %>
|
||||
|
||||
Reference in New Issue
Block a user