build tables for project and subproject/s views
This commit is contained in:
@@ -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) %> |
|
||||
|
||||
Reference in New Issue
Block a user