Browse Source

fixed in AS pull #72

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
19bc7fd7e6
  1. 13
      app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb

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

@ -1,13 +0,0 @@
<%# use correct ACL https://github.com/activescaffold/active_scaffold/pull/72 %>
<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