%= simple_form_for @page, as: :page, url: url_for( controller: controller_name, action: :update, id: @page.id), html: {class: 'form-vertical form-with-helpers js-spin-and-roll', data: {'page-id' => @page.id}, defaults: { input_html: { class: "form-control" }}} do |f| %>
<%= icon_tag 'cog' %> <%= instance_name.titleize %> Settings
<% if extra_fields? %>
<%= render partial: extra_fields_path, locals: {f: f, page: @page} %>
<% end -%>
<% end %>