<% flash.each do |key, value| %>
<% 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 || (cancan_enabled? && cannot?(:read, @Klass.to_s.underscore.pluralize.to_sym, attribute)) -%> <% css_class_id = "attribute_#{attribute}_#{@object.id}" -%> <% if form_element == :header %>
<%= @object.class.human_attribute_name(attribute) -%>
<% else %>
<%= @object.class.human_attribute_name(attribute) -%>
<%= send("#{form_element}_edit", @object, attribute) -%>
<% end -%> <% end -%> <% end -%> <%= link_to( send(@Klass.to_s.underscore.pluralize + '_path', :update => @update_span, :parent_class => @parent_class, :parent_id => @parent_id, :ul_needed => true ), :remote => true, ) do -%> <% end %> <%= submit_tag "ok", :class => "button "-%>
<% end %>