%= simple_form_for @revision, as: :revision, url: [@page.becomes(Georgia::Page), @revision], html: {class: 'form-with-helpers js-spin-and-roll js-revision-form'}, defaults: { input_html: { class: "form-control" } } do |f| %>
<%= f.simple_fields_for :contents, @content do |c| %>
<%= c.hidden_field :locale, data: {locale: current_locale} %>
<%= render partial: 'georgia/revisions/fields/content', locals: {f: c} %>
<%= render partial: 'georgia/revisions/fields/template', locals: {f: f} %>
<%= render partial: 'georgia/revisions/fields/slides', locals: {f: f} %>
<%= render partial: 'georgia/revisions/fields/widgets', locals: {f: f} %>
<% end -%>
<% end %>
<%= content_for :footer do %>
<%= render 'georgia/shared/modals/media_library' %>
<% end -%>