<%= 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} %>
<%= link_to_back search_pages_path %>

<%= link_to @content.title_or_none, '#', class: 'title-truncated' %> <%= icon_tag 'pencil' %>

<%= c.input_field :title, class: 'input-lg form-control', placeholder: 'Title' %>
<%= button_to_settings %> <%= page_actions_tag(@page, @revision) %> <%= button_to_save %>
<%= 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 -%>