Sha256: b1b095a2a57b467cebbed565f9be058f884c2ac6be35220c6bba15b964008244

Contents?: true

Size: 1.5 KB

Versions: 7

Compression:

Stored size: 1.5 KB

Contents

<%= 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 %>
    <header class='header-main'>
      <div class="header-gutter">
        <%= link_to_back search_pages_path %>
      </div>
      <div class="header-title">
        <h1>
          <%= link_to (@content.title || content_tag(:span, 'No title', class: 'muted')), '#', class: 'title-truncated' %>
          <%= icon_tag 'pencil' %>
        </h1>
        <%= c.input_field :title, class: 'input-lg form-control', placeholder: 'Title' %>
      </div>
      <div class="header-actions">
        <%= button_to_settings %>
        <%= page_actions_tag(@page, @revision) %>
        <%= button_to_save %>
      </div>
    </header>
    <section class="body-main">
      <%= 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} %>
      <footer>
        <hr />
        <%= link_to_delete @page if can?(:destroy, @page) %>
      </footer>
    </section>
  <% end -%>
<% end %>

<%= content_for :footer do %>
  <%= render 'georgia/shared/modals/media_library' %>
<% end -%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
georgia-0.7.6 app/views/georgia/revisions/edit.html.erb
georgia-0.7.5 app/views/georgia/revisions/edit.html.erb
georgia-0.7.4 app/views/georgia/revisions/edit.html.erb
georgia-0.7.3 app/views/georgia/revisions/edit.html.erb
georgia-0.7.2 app/views/georgia/revisions/edit.html.erb
georgia-0.7.1 app/views/georgia/revisions/edit.html.erb
georgia-0.7.0 app/views/georgia/revisions/edit.html.erb