<%%= render(partial: '/shared/search', locals: {placeholder: 'Text to search'}) %> <% attributes.each do |attribute| -%> <% end -%> <%% if @<%= plural_table_name %>.size > 0 %> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <% attributes.each do |attribute| -%> <% end -%> <%% end %> <%% else %> <%% end %>
<%%= sortable('<%= attribute.name %>') + sort_icon(@sort_direction, @sort_column, '<%= attribute.name %>') %>Actions
<%%= <%= singular_table_name %>.<%= attribute.name %> %> <%%= link_to content_tag(:i, nil, class: 'icon-list-alt icon-white'), <%= singular_table_name %>, <%= key_value :class, "'btn btn-info btn-small'" %> %>   <%%= link_to content_tag(:i, nil, class: 'icon-tag icon-white'), edit_<%= singular_table_name %>_path(<%= singular_table_name %>), <%= key_value :class, "'btn btn-primary btn-small'" %> %>   <%%= link_to content_tag(:i, nil, class: 'icon-trash icon-white'), <%= singular_table_name %>, <%= key_value :confirm, "'Are you sure?'" %>, <%= key_value :method, ":delete" %>, <%= key_value :class, "'btn btn-danger btn-small'" %> %>
Empty
<%%= will_paginate @<%= plural_table_name %> %> <%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path, <%= key_value :class, "'btn btn-large btn-success'" %>, <%= key_value :style, "'float: right'" %> %>