<% begin %>
<% content = capture do %>
<% partial_content = render(:partial => "skyline/articles/#{a.object.class.name.demodulize.underscore}/header", :locals => {:a => a, :v => v, :vd => vd}) %>
<% if partial_content.present? %>
<%= partial_content %>
<% end %>
<% end %>
<% rescue ActionView::MissingTemplate %>
<% content = "" %>
<% end %>
<%= content %>
<% menu_button t(:add_section, :scope => [:article, :edit]), :id => "add_section_button" do %>
<% Skyline::Rendering::Renderer.renderables(:sections, a.object.class).each do |section| %>
-
<%= link_to_remote(section.human_name,
:url => new_skyline_section_path(:sectionable_type => section.name, :object_name => v.object_name_with_index, :renderable_scope => @renderable_scope.serialize),
:method => :get,
:data => "(new Hash({'after_section' : $('contentlist').retrieve('application.sections').getCurrentActiveId()})).toQueryString()") %>
<% end %>
<% end %>
<% begin %>
<% content = capture do %>
<%= render :partial => "skyline/articles/#{a.object.class.name.demodulize.underscore}/data", :locals => {:a => a, :v => v, :vd => vd} %>
<% end %>
<% rescue ActionView::MissingTemplate %>
<% content = "" %>
<% end %>
<%= content %>
<% v.object.sections.each do |section| %>
<%= render :partial => "skyline/sections/form", :locals => {:variant_form => v, :section => section, :guid => Guid.new} %>
<% end %>