Browse Source

monkey patch AS #72

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
7c070aba69
  1. 11
      app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb

11
app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb

@ -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…
Cancel
Save