% content_for :content do %> <% if @collection %>
<%= link_to(col.title, request.query_parameters.merge(:order => "#{col.sort_key}_#{order_for_sort_key(col.sort_key)}").except(:page)) %> | <% end %>|
---|---|
<% if col.editable && params[:editing] %> <%= send(SimpleAdmin.form_for_helper, object, :as => @interface.member.to_sym, :url => resource_path(object), :id => "#{@interface.member}_#{object.id}", :html => {:class => "inline simple_form formtastic #{@interface.member}"}) do |form| %> <%= form_field(form, col) %> <% end %> <% elsif col.data %> <%= instance_exec(object, &col.data) %> <% else %> <%= pretty_format(object.send(col.attribute)) %> <% end %> | <% end %><%= resource_actions(object) %> |