app/views/admin/cms/pages/_form.html.haml in cms-fortress-1.0.4 vs app/views/admin/cms/pages/_form.html.haml in cms-fortress-1.0.5

- old
+ new

@@ -1,10 +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) + + /%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 @@ -29,12 +32,11 @@ = render :partial => 'admin/cms/categories/form', :object => form = render :partial => 'form_blocks' =# form.check_box :is_published, :label => t('.is_published') -- @page.page_workflow ||= Cms::PageWorkflow.new = form.fields_for :page_workflow do |wf| - = wf.select :status_id, Cms::PageWorkflow.statuses_for_select, {}, {class: "status-control"} + = wf.select :status_id, Cms::PageWorkflow.statuses_for_select(can?(:manage, 'contents.page.publish'), can?(:manage, 'contents.page.review')), {}, {class: "status-control"} = wf.text_field :published_date, class: "status-control", :data => {:utc_date => (@page.page_workflow.published_date.nil? ? Time.now : @page.page_workflow.published_date).strftime("%d %B, %Y") } = render 'admin/cms/partials/page_form_after', :object => form .form-actions