Sha256: 6608bd354ecbf15a2b4e09435267dfa4d01171545e2b5f2c5339c9b830e06514

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

<div class="page-header">
  <h1>
Listing <%=resource_class.model_name.human%>
    a a a Base b b bjjjkkk
  <div class="pull-right">
    <%= button_to 'New', new_resource_path, :method => :get, :class => "btn primary" %>
  </div>
  </h1>

</div>

<%= form_tag collection_path, :method => 'get' do %>
  <p>
    <%= text_field_tag :search, params[:search] %>
    <%= submit_tag "Search", :name => nil %>
  </p>

<% end %>
<%#= test %>
</br>
<table class="zebra-striped">
  <tr>
  <% attributes.each do |attr| %>
    <th> <%= sortable attr, resource_class.human_attribute_name(attr) %> </th>
  <% end %>
    <th></th>
    <th></th>
    <th></th>
  </tr>

  <% collection.each do |admin_resource| %>
<tr>

 <% attributes.each do |attr| %>
  <td><%= admin_resource.public_send(attr).to_s.truncate(20)  %> </td>


 <% end %>
 <%#= render :partial => "index_action", :locals => { :admin_resource => admin_resource } %>
<%= render :partial => "more_index_action", :locals => { :admin_resource => admin_resource } %>

</tr>
<% end %>
</table>
<%= will_paginate collection %>
<br />

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
customize_admin-0.0.3 app/views/customize_admin/base/index.html.erb