use tables to display clients
This commit is contained in:
@@ -1,6 +1,25 @@
|
||||
<p style="color: green"><%= notice %></p>
|
||||
|
||||
<%= render @client %>
|
||||
<% content_for :title, "Client: #{@client.company_name}" %>
|
||||
|
||||
<h1>Client: <%= @client.company_name %></h1>
|
||||
|
||||
<div id="client">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<% client_view_fields.each do |attrib| %>
|
||||
<th><%= attrib.to_s.humanize %></th>
|
||||
<% end %>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<%= render @client %>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<%= link_to "Edit this client", edit_client_path(@client) %> |
|
||||
|
||||
Reference in New Issue
Block a user