use tables to display clients

This commit is contained in:
Stefan Tollkühn
2025-07-23 17:33:01 +02:00
parent 8393202661
commit b366e5d0a1
4 changed files with 54 additions and 54 deletions

View File

@@ -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) %> |