Sha256: a36c9600f598b3e495b99165da3c264f39881b08959fa678c0b911d63fc279c3

Contents?: true

Size: 1.35 KB

Versions: 25

Compression:

Stored size: 1.35 KB

Contents

<%= content_tag(:div, id: active_scaffold_id, class: as_main_div_class, data: as_main_div_data) do %>
  <div class="active-scaffold-header">
    <%= render :partial => 'list_header' %>
  </div>
  <table>
    <tbody class="before-header" id="<%= before_header_id -%>">
      <% if active_scaffold_config.list.always_show_search %>
      <% old_record, @record = @record, new_model %>
        <tr>
          <td>
            <div class="active-scaffold show_search-view <%= "#{id_from_controller params[:controller]}-view" %> view">
              <%= render :partial => active_scaffold_config.list.search_partial, :locals => {:xhr => true} %>
            </div>
          </td>
        </tr>
      <% @record = old_record %>
      <% else %>
      <tr><td></td></tr>
      <% end %>
      <% if active_scaffold_config.list.always_show_create && controller.send(:create_authorized?) %>
      <% old_record, @record = @record, new_model %>
        <tr>
          <td>
            <div  class="active-scaffold create-view <%= "#{id_from_controller params[:controller]}-view" %> view">
              <%= render :partial => 'create_form_on_list' %>
            </div>
          </td>
        </tr>
      <% @record = old_record %>
      <% end %>
    </tbody>
  </table>
  <div id="<%= active_scaffold_content_id-%>" class="as_content">
    <%= render :partial => 'list' %>
  </div>
<% end %>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
active_scaffold-3.7.2 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.7.1 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.7.0 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.20 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.19 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.17 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.15 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.14 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.13 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.12 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.11.1 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.11 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.10 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.9 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.8 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.6 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.5 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.4.1 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.4 app/views/active_scaffold_overrides/_list_with_header.html.erb
active_scaffold-3.6.3 app/views/active_scaffold_overrides/_list_with_header.html.erb