<% flash.each do |key, value| %>
<% value.each do |m| %>
-
<%= m %>
<% end %>
<% end %>
<%= t('inline_forms.view.add_new', :model => @Klass.model_name.human ) -%>
<%= form_tag send(@Klass.to_s.underscore.pluralize + '_path', :update => @update_span,
:parent_class => @parent_class,
:parent_id => @parent_id ),
:multipart => true, :remote => true, :class => "edit_form" do -%>
<% attributes = @inline_forms_attribute_list || @object.inline_forms_attribute_list -%>
<% attributes.each do | attribute, name, form_element | -%>
<% unless form_element.to_sym == :associated || form_element.to_sym == :tree || (cancan_enabled? && cannot?(:read, @Klass.to_s.underscore.pluralize.to_sym, attribute)) -%>
<% css_class_id = "attribute_#{attribute}_#{@object.id}" -%>
<% if form_element == :header %>
<% else %>
<%= @object.class.human_attribute_name(attribute) -%>
<%= send("#{form_element}_edit", @object, attribute) -%>
<% end -%>
<% end -%>
<% end -%>
<% end %>