<%%= link_to ' '.html_safe + t(:new, :default => "New") + ' ' + <%= i18n_t_m(model) %>, new_<%= namespace_for_route %><%= singular_table_name %>_path, :class => "btn btn-default" %> <%% if <%= model_with_engine_camelize %>.columns.map(&:name).include?("<%= model %>_id") then %> <%%= link_to ' '.html_safe + t(:treeview, :default => "Treeview") + ' ' + <%= i18n_t_m(model) %>, treeview_<%= namespace_for_route %><%= model_pluralize %>_path, :class => "btn btn-default" %> <%% end %>
<%%= render :partial => "layouts/mass_inserting", :locals => { :engine => '<%= engine_opt %>', :namespace => '<%= namespace_alone %>', :model_name => '<%= model %>', :model_columns => [<%= attributes.map{ |e| "'#{e.name}'" }.join(',') %>] } %> <%%# Set your scopes below (string in array) %> <%% scopes = [] %> <%% if not scopes.blank? then %> <%% end %>" > | <%%= check_box_tag :checkall, '' %> | <%= render_partial 'app/views/partials/_index_header.html.erb' %>", "created_at") %> class="bs-col-created_at"> <%%= sorting_header("<%= singular_table_name %>", "created_at", "<%= namespace_alone %>") %> | ", "updated_at") %> class="bs-col-updated_at"> <%%= sorting_header("<%= singular_table_name %>", "updated_at", "<%= namespace_alone %>") %> | |||
---|---|---|---|---|---|---|
<%%= <%= singular_table_name %>.id %> | <%%= check_box_tag "ids[]",<%= singular_table_name %>.id, false, :class => 'cbbatch' %> | <%= render_partial 'app/views/partials/_index_column.html.erb' %>", "created_at") %> class="bs-col-created_at <%%= align_attribute("datetime") %>"> <%%= l(<%= singular_table_name %>.created_at, :format => :long) %> | ", "updated_at") %> class="bs-col-updated_at <%%= align_attribute("datetime") %>"> <%%= l(<%= singular_table_name %>.updated_at, :format => :long) %> | <%%= link_to ''.html_safe, <%= namespace_for_route %><%= singular_table_name %>_path(<%= singular_table_name %>), :title => t(:show, :default => "Show") %> | <%%= link_to ''.html_safe, edit_<%= namespace_for_route %><%= singular_table_name %>_path(<%= singular_table_name %>), :title => t(:edit, :default => "Edit") %> | <%%= link_to ''.html_safe, <%= namespace_for_route %><%= singular_table_name %>_path(<%= singular_table_name %>), :data => { :confirm => t(:are_you_sure, :default => "Are you sure?") }, :method => :delete, :title => t(:destroy, :default => "Destroy") %> |