Sha256: 53c9807d9acd40c6a830ba47d610fe052ab3b012faef3691f8081e45b0f4cb16

Contents?: true

Size: 1.56 KB

Versions: 20

Compression:

Stored size: 1.56 KB

Contents

<% content_for :right_column do %>
  <div id='page_save' class='box'>
    <label>
      <input type='checkbox'/>
      <%= Cms::Page.human_attribute_name(:is_published) %>
    </label>
    <button></button>
  </div>
  <%= render :partial => 'cms_admin/files/index' %>
<% end %>

<%= form.text_field :label, :id => (@page.new_record?? 'slugify' : nil) %>

<div class='page_form_extras'>
  <% unless @site.pages.count == 0 || @site.pages.root == @page%>
    <%= form.text_field :slug, :id => 'slug' %>
  <% end %>
  <% if (options = Cms::Layout.options_for_select(@site)).present? %>
    <%= form.select :layout_id, options, {}, 'data-url' => form_blocks_cms_admin_site_page_path(@site, @page.id.to_i) %>
  <% end %>
  <% if (options = Cms::Page.options_for_select(@site, @page)).present? %>
    <%= form.select :parent_id, options %>
  <% end %>
  <% if (options = Cms::Page.options_for_select(@site, @page, nil, 0, false)).present? %>
    <%= form.select :target_page_id, [["---- #{t('.select_target_page')} ----", nil]] + options %>
  <% end %>
  <%= cms_hook :page_form, :object => form %>
  <%= render :partial => 'cms_admin/categories/form', :object => form %>
</div>

<%= render :partial => 'form_blocks' %>

<%= form.simple_field nil, nil, :class => 'submit_element' do %>
  <%= form.check_box :is_published, :disable_builder => true %>
  <%= form.label_for :is_published %>
  <%= form.submit t('.preview'), :name => 'preview', :id => nil, :disable_builder => true %>
  <%= form.submit t(@page.new_record?? '.create' : '.update'), :id => 'cms_page_submit', :disable_builder => true %>
<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.6.23 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.22 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.21 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.20 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.19 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.18 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.17 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.16 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.15 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.14 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.13 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.12 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.11 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.10 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.9 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.8 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.7 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.6 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.5 app/views/cms_admin/pages/_form.html.erb
comfortable_mexican_sofa-1.6.4 app/views/cms_admin/pages/_form.html.erb