<% edit_mode = controller.send(:boxes_editor?) && controller.send(:uses_design_blocks?) %>
<% box_decorator = edit_mode ? self : BoxesHelper::DontMoveBlocks %>
<%= block_title(block.title, block.subtitle) %>
<%= display_box_content(block.container_box, nil) %>
<% if edit_mode %>
<%= link_to_remote '', :url => { :controller => controller.boxes_holder.kind_of?(Environment) ? 'container_block_plugin_admin' : 'container_block_plugin_myprofile', :action => 'saveWidths', :id => block.id },
:with => "containerChildrenWidth(#{block.id}, #{block.container_box.id})",
:html => {:class => "button icon-save container_block_save", :id => "container_block_save_#{block.id}", :title => c_('Save') },
:loading => "open_loading(DEFAULT_LOADING_MESSAGE);",
:loaded => "close_loading();",
:complete => "display_notice(request.responseText);"%>
<% end %>