Sha256: d307d631e52ad28ff6889938ac3b89ce4ee4a41dfa87daaa0f74f395157521a1
Contents?: true
Size: 1.87 KB
Versions: 4
Compression:
Stored size: 1.87 KB
Contents
<% content_for :page_title do %> <% if @page.name? %> Edit “<%= @page.name %>” <% else %> Edit page <% end %> <% end %> <% content_for :page_description do %> Editing <% @page.ancestors.reverse.each do |page| %> <%= link_to(page.name? ? page.name : tag.i("Untitled"), edit_admin_page_path(@locale, page)) %> » <% end %> <%= link_to(@page.name? ? @page.name : tag.i("Untitled"), edit_admin_page_path(@locale, @page)) %> <% end %> <% content_for :page_description_links do %> <%= locale_links { |l| edit_admin_page_path(l, @page.localize(l)) } %> <% end %> <% content_for :main_wrapper do %> <%= form_for(@page, url: admin_page_url(@locale, @page), builder: PagesCore::Admin::FormBuilder, html: { class: "edit-page main-wrapper", method: :put, data: { controller: "edit-page", "edit-page-target": "form", "preview-url": preview_page_url(@page.locale, @page) } }) do |f| %> <% content_for :main do %> <div class="content"> <%= render(partial: "form", locals: { f: f }) %> <div class="buttons"> <button type="button" id="previewButton" data-action="click->edit-page#preview" data-url="<%= preview_page_url(@page.locale, @page) %>"> Preview </button> <button type="submit"> Save </button> </div> </div> <% end %> <main data-controller="main"> <%= render(partial: "layouts/admin/page_header") %> <%= yield :main %> </main> <aside class="sidebar" id="page-form-sidebar"> <%= render partial: 'edit_options', locals: { f: f } %> </aside> <% end %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems