===entity_code=== <%%= <%= 'nested_' if @model.nested_many? %>form_for(<%= @model.to_route_object('@') %><%= ", :remote => true, :html => {:class => :mdwa_ajax #{',:multipart => true' if @model.attributes.select{|attr| attr.type.to_sym == :file}.count.zero?}}" if @entity.ajax %>) do |f| %>
<%%= render '/template/mdwa/crud_error', :object => @<%= @model.singular_name %> %>
<%%= render 'form_fields', :f => f %>
<%- if !@entity.ajax -%> <%%= link_to t('system.cancel_button'), <%= @model.object_name.pluralize %>_path, :class => :cancel %> <%- else -%> <%%= link_to t('system.cancel_button'), '#', :class => :cancel %> <%- end -%> <%%= f.submit :class => :button %>
<%% end %>