Sha256: 7abe65d2564c041045621870d38be527077d6532c7382f5a9a6391362184ff4a

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

<%= render :partial => 'admin_data/search/search/title', :locals => { 
                                                            :records => records, 
                                                            :total_num_of_children => @total_num_of_children } %>

<div class="pagination">
  <%= will_paginate @records, :container => false, :params => {:klass => klass.name} %>
</div>
<div class='clear'></div>

<table cellspacing="3" cellpadding="3" id="view_table" class='table colorize'>

  <thead>
     <tr>
      <% AdminData::Util.columns_order(klass.name).each do |column| %>
        <th> <%= column %> </th>
      <% end %>
    </tr>
  </thead>

  <% @records.each do |record| %>
    <tr>
      <% AdminData::Util.columns_order(klass.name).each do |column| %>
        <td>
          <% if (column == klass.primary_key) %>
            <%= link_to(record.send(column), admin_data_on_k_path(:klass => klass.name.underscore, :id => record)) %>
         <% else %>
            <%=h  admin_data_get_value_for_column(admin_data_column_native(klass, column), record) %>
          <% end %>  
        </td>
      <% end %>
    </tr>
  <% end %>  
</table>

<div class="pagination">
  <%= will_paginate records, :container => false, :params => {:klass => klass.name.underscore} %>
</div>

<div class='clear'></div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
admin_data-1.0.2 app/views/admin_data/search/search/_listing.html.erb
admin_data-1.0.1 app/views/admin_data/search/search/_listing.html.erb
admin_data-1.0.0 app/views/admin_data/search/search/_listing.html.erb