tables for subproject_addresses

This commit is contained in:
Stefan Tollkühn
2025-07-23 17:46:22 +02:00
parent b366e5d0a1
commit deba114e9c
4 changed files with 47 additions and 35 deletions

View File

@@ -5,12 +5,23 @@
<h1>Subproject addresses</h1>
<div id="subproject_addresses">
<% @subproject_addresses.each do |subproject_address| %>
<%= render subproject_address %>
<p>
<%= link_to "Show this subproject address", subproject_address %>
</p>
<% end %>
<table>
<thead>
<tr>
<% subproject_address_view_fields.each do |attrib| %>
<th><%= attrib.to_s.humanize %></th>
<% end %>
</tr>
</thead>
<tbody>
<% @subproject_addresses.each do |subproject_address| %>
<tr id="<%= dom_id subproject_address %>">
<%= render subproject_address %>
</tr>
<% end %>
</tbody>
</table>
</div>
<%= link_to "New subproject address", new_subproject_address_path %>