app/views/shared/new.html.erb in adminpanel-1.2.9 vs app/views/shared/new.html.erb in adminpanel-1.2.10

- old
+ new

@@ -1,8 +1,8 @@ <% provide(:page_title, t("action.create") + " #{@model.display_name.capitalize}") -%> <% breadcrumb_add( - @model.display_name.capitalize.pluralize, + @model.display_name.capitalize.pluralize, { :controller => params[:controller], :action => "index" } ) %> @@ -13,16 +13,27 @@ <%= content_tag(:i, nil, :class => @model.icon) %> <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"}) do |f| -%> + <%= + custom_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, :disable_with => t("action.submitting"), :id =>"new-resource-button" %> + <%= + f.submit t("action.add") + " " + @model.display_name, + :disable_with => t("action.submitting"), + :id =>"new-#{@model.name.demodulize}-button" + %> </div> <% end -%> </div> -</div> \ No newline at end of file +</div> +<%= render 'shared/modal' %>