build tables for project and subproject/s views

This commit is contained in:
Stefan Tollkühn
2025-07-23 15:19:59 +02:00
parent 440750881b
commit 53e2dba32d
5 changed files with 76 additions and 35 deletions

View File

@@ -1,6 +1,25 @@
<p style="color: green"><%= notice %></p>
<%= render @subproject %>
<% content_for :title, "Subproject: #{@subproject.subproject_name}" %>
<h1>Subproject: <%= @subproject.subproject_name %></h1>
<div id="subproject">
<table>
<thead>
<tr>
<% subproject_view_fields.each do |attrib| %>
<th><%= attrib.to_s.humanize %></th>
<% end %>
</tr>
</thead>
<tbody>
<tr>
<%= render @subproject %>
</tr>
</tbody>
</table>
</div>
<div>
<%= link_to "Edit this subproject", edit_subproject_path(@subproject) %> |