<% attributes = @inline_forms_attribute_list || @object.inline_forms_attribute_list -%> <% attributes.each do | attribute, name, form_element | -%> <% if cancan_disabled? || can?(:read, @object, attribute) %> <% css_class_id = "#{@object.class.name.underscore}_#{@object.id}_#{attribute}" -%> <% if form_element == :header %> <% else %> <% end -%> <% end -%> <% end -%>
<%= h(@object._presentation) -%>
<%= @object.class.human_attribute_name(attribute) -%>
<%= @object.class.human_attribute_name(attribute) -%>
<% if form_element == :associated -%> <%= render :partial => "inline_forms/list", :locals => { :parent_class => @object.class, :parent_id => @object.id, :attribute => attribute } %> <% else -%> <%= send("#{form_element}_show", @object, attribute) -%> <% end -%>