Sha256: cce17ddd478c1a4719e65a97a8939d069080b0f2c260efd8186e5a157a5f9bfb
Contents?: true
Size: 1.31 KB
Versions: 14
Compression:
Stored size: 1.31 KB
Contents
<% if @page.parent self.page_title = "New page" self.page_description = "<em>#{@page.parent.name}</em> » New Page" else self.page_title = "Create new page" self.page_description = "You are creating a new root page" end @url_options = { action: :new } @url_options[:parent] = @page.parent if @page.parent %> <% content_for :main_wrapper do %> <%= form_for(@page, url: admin_pages_url(@locale), builder: PagesCore::Admin::FormBuilder, html: { class: "edit-page main-wrapper", data: { controller: "edit-page", "edit-page-target": "form" } }) do |f| %> <% content_for :main do %> <div class="content"> <%= f.hidden_field 'parent_page_id' if @page.parent %> <%= render(partial: "form", locals: { f: f }) %> <div class="buttons"> <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
14 entries across 14 versions & 1 rubygems