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

@@ -2,9 +2,23 @@
<% content_for :title, "Adresse" %>
<h1>Adresse</h1>
<h1>Adress:</h1>
<%= render @subproject_address %>
<div id="subproject_address">
<table>
<thead>
<tr>
<% subproject_address_view_fields.each do |attrib| %>
<th><%= attrib.to_s.humanize %></th>
<% end %>
</tr>
</thead>
<tbody>
<tr>
<%= render @subproject_address %>
</tr>
</tbody>
</table>
<div>
<%= link_to "Edit this subproject address", edit_subproject_address_path(@subproject_address) %> |