Sha256: 7228e0b916ccbacea09ceba73989897d96930504db8ba4ad39d5430fbe284ac5

Contents?: true

Size: 671 Bytes

Versions: 3

Compression:

Stored size: 671 Bytes

Contents

<thead>
  <tr>
    <%
    active_scaffold_config_for(record.class).subform.columns.each :for => record.class, :crud_type => :read do |column|
      next if column.is_a? ActiveScaffold::DataStructures::ActionColumns
      next unless in_subform?(column, parent_record)
      hidden = column_renders_as(column) == :hidden
      -%>
      <th class="<%= "#{column.name}-column #{'required' if column.required?} #{'hidden' if hidden}" %>">
        <label><%= column.label unless hidden %></label>
        <% if column.description.present? -%>
          <span class="description"><%= column.description %></span>
        <% end -%>
      </th>
    <% end -%>
  </tr>
</thead>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_scaffold-3.3.0 app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb
active_scaffold-3.3.0.rc3 app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb
active_scaffold-3.3.0.rc2 app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb