% content_for :html_head do %> <%= stylesheet_link_tag('cms/form_layout') %> <%= stylesheet_link_tag('cms/content_library') %> <% end %> <% page_title "Content Library / Edit #{content_type.display_name}" %> <% @toolbar_title = "Edit #{content_type.display_name} '#{@block.name}'" %> <% content_for :functions, render(:partial => 'cms/blocks/toolbar') %> <% form_for(@block, :url => block_path, :html => {:multipart => true}) do |f| %> <%= f.error_messages %> <%= render :partial => 'cms/shared/exception', :object => @exception if @exception %> <% if @other_version %> <%= render :partial => 'cms/shared/version_conflict_error', :locals => {:other_version => @other_version, :your_version => @block} %> <% end %> <%= render :partial => 'cms/blocks/hidden_fields', :locals => { :f => f } %> <%= render :partial => block_form, :locals => {:f => f} %> <% if @other_version %> <%= render :partial => "cms/shared/version_conflict_diff", :locals => {:other_version => @other_version, :your_version => @block} %> <% end %>
<% end %>