app/views/shared/new.html.erb in adminpanel-2.0.0 vs app/views/shared/new.html.erb in adminpanel-2.0.1

- old
+ new

@@ -14,22 +14,23 @@ <h5><%= t("action.create") + " " + @model.display_name %></h5> </div> <div class = "widget-body"> <div class = "widget-forms clearfix"> <%= - custom_form_for( - resource, :html => { - :class => "form-horizontal", - :id => "new_resource" + adminpanel_form_for( + resource, + :html => { + :class => 'form-horizontal', + :id => 'new_resource' } ) do |f| -%> <%= render 'shared/error_messages', :object => resource %> <%= render 'shared/form_fields', :f => f %> </div> </div> <div class = "widget-footer"> <%= - f.submit t("action.add") + " " + @model.display_name, + f.submit t('action.add') + " " + @model.display_name, data: {:disable_with => t("action.submitting")}, :id =>"new-#{@model.name.demodulize}-button" %> </div> <% end -%>