Nicolae Claudius
13 years ago
1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<% |
||||||
|
active_scaffold_config_for(record.class).subform.columns.each :for => record.class, :crud_type => :read, :flatten => true do |column| |
||||||
|
hidden = column_renders_as(column) == :hidden |
||||||
|
next unless in_subform?(column, parent_record) |
||||||
|
-%> |
||||||
|
<th class="<%= "#{'required' if column.required?} #{'hidden' if hidden}" %>"><label><%= column.label unless hidden %></label></th> |
||||||
|
<% end -%> |
||||||
|
</tr> |
||||||
|
</thead> |
Loading…
Reference in new issue