Sha256: ddcc46126a3b9e8b9d513059e9d2ff241ea0b917daa528b4625c37bf72446e1a
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 KB
Contents
<% content_for :right_column do %> <div id='page_save' class='box'> <label> <input type='checkbox'/> Published </label> <button></button> </div> <%= render :partial => 'cms_admin/uploads/index' %> <% end %> <%= form.text_field :label, :id => (@cms_page.new_record?? 'slugify' : nil) %> <div class='page_form_extras'> <% unless @cms_site.pages.count == 0 || @cms_site.pages.root == @cms_page%> <%= form.text_field :slug, :id => 'slug' %> <% end %> <% if (options = Cms::Layout.options_for_select(@cms_site)).present? %> <%= form.select :layout_id, options, {}, 'data-page-id' => @cms_page.id.to_i, :label => 'Layout' %> <% end %> <% if (options = Cms::Page.options_for_select(@cms_site, @cms_page)).present? %> <%= form.select :parent_id, options %> <% end %> <% if (options = Cms::Page.options_for_select(@cms_site, @cms_page, nil, 0, false)).present? %> <%= form.select :target_page_id, [['---- No Redirect ----', nil]] + options, :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 'Preview', :name => 'preview', :id => nil, :disable_builder => true %> <%= form.submit 'and continue', :id => nil, :name => 'save', :disable_builder => true %> <%= form.submit @cms_page.new_record? ? 'Create Page' : 'Update Page', :disable_builder => true %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comfortable_mexican_sofa-1.1.2 | app/views/cms_admin/pages/_form.html.erb |