Sha256: e7e7137bfafffe0138d35c2ab8ee5761030339ab4e841e9aad02bf500dd31d7a

Contents?: true

Size: 1.53 KB

Versions: 6

Compression:

Stored size: 1.53 KB

Contents

<% content_for :right_column do %>
  <div id='page_save' class='box'>
    <label>
      <input type='checkbox'/>
      Published
    </label>
    <a class='big button' href='#'></a>
  </div>
<% end %>

<%= form.hidden_field :cms_user_id, :value => @cms_current_user.id %>
<%= form.text_field :label, :id => (@cms_page.new_record?? 'slugify' : nil) %>

<div class='page_form_extras'>
  <% unless @cms_site.cms_pages.count == 0 || @cms_site.cms_pages.root == @cms_page%>
    <%= form.text_field :slug, :id => 'slug' %>
  <% end %>
  <% if (options = CmsLayout.options_for_select(@cms_site)).present? %>
    <%= form.select :cms_layout_id, options, {}, 'data-page-id' => @cms_page.id.to_i, :label => 'Layout' %>
  <% end %>
  <% if (options = CmsPage.options_for_select(@cms_site, @cms_page)).present? %>
    <%= form.select :parent_id, options %>
  <% end %>
  <% if (options = CmsPage.options_for_select(@cms_site, @cms_page, nil, 0, false)).present? %>
    <%= form.select :target_page_id, options, :include_blank => true, :label => 'Redirect To Page' %>
  <% end %>
  <%= cms_hook :page_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, :label => 'Published' %>
  <%= form.submit @cms_page.new_record?? 'Create Page' : 'Update Page', :disable_builder => true %>
  <%= form.submit 'Preview', :name => 'preview', :id => 'cms_page_preview', :disable_builder => true %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lucy_cms-0.0.6 app/views/cms_admin/pages/_form.html.erb
lucy_cms-0.0.5 app/views/cms_admin/pages/_form.html.erb
lucy_cms-0.0.4 app/views/cms_admin/pages/_form.html.erb
lucy_cms-0.0.3 app/views/cms_admin/pages/_form.html.erb
lucy_cms-0.0.2 app/views/cms_admin/pages/_form.html.erb
lucy_cms-0.0.1 app/views/cms_admin/pages/_form.html.erb