app/views/admin/cms/pages/_form.html.haml in cms-fortress-1.1.1 vs app/views/admin/cms/pages/_form.html.haml in cms-fortress-1.1.2

- old
+ new

@@ -1,13 +1,13 @@ - @page.page_workflow ||= Cms::PageWorkflow.new - content_for :right_column do #form-save.box - - /%label.checkbox.inline - / %input{:type => 'checkbox'} - / = ::Cms::Page.human_attribute_name(:is_published) + - unless Cms::Fortress.configuration.enable_page_workflow + %label.checkbox.inline + %input{:type => 'checkbox'} + = ::Cms::Page.human_attribute_name(:is_published) %button.btn.btn-small.btn-primary.pull-right = render :partial => 'admin/cms/files/index' = render 'admin/cms/partials/page_form_before', :object => form @@ -18,11 +18,11 @@ - unless @page.new_record? = form.text_field :full_path, :id => 'full-path', :disabled => true - if (options = ::Cms::Layout.options_for_select(@site)).present? = form.select :layout_id, options, {}, 'data-url' => form_blocks_admin_cms_site_page_path(@site, @page.id.to_i) - + - if (options = ::Cms::Page.options_for_select(@site, @page)).present? = form.select :parent_id, options - if (options = ::Cms::Page.options_for_select(@site, @page, nil, 0, false)).present? = form.select :target_page_id, [["---- #{t('.select_target_page')} ----", nil]] + options @@ -31,10 +31,11 @@ = render :partial => 'admin/cms/categories/form', :object => form = render :partial => 'form_blocks' -=# form.check_box :is_published, :label => t('.is_published') +- unless Cms::Fortress.configuration.enable_page_workflow + = form.check_box :is_published, :label => t('.is_published') = render :partial => 'cms/fortress/shared/page_extend', :locals => {form: form} = render 'admin/cms/partials/page_form_after', :object => form .form-actions