Sha256: d5282ffe434a31c8725a7a2d9aed8665275f519e7503e8c05757416a99e3ddc1

Contents?: true

Size: 562 Bytes

Versions: 5

Compression:

Stored size: 562 Bytes

Contents

= form.fields_for :page_workflow do |wf|
  = 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, label: 'Published', class: "status-control", :data => {:utc_date => (@page.page_workflow.published_date.nil? ? Time.now : @page.page_workflow.published_date).strftime("%d %B, %Y") }

= form.select :cached_timeout, Cms::PageWorkflow.cached_timeout_for_select, {label: 'Cached Timeout'}, {class: 'status-control'}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cms-fortress-1.1.1 app/views/cms/fortress/shared/_page_extend.html.haml
cms-fortress-1.1.0 app/views/cms/fortress/shared/_page_extend.html.haml
cms-fortress-1.0.12 app/views/cms/fortress/shared/_page_extend.html.haml
cms-fortress-1.0.9 app/views/cms/fortress/shared/_page_extend.html.haml
cms-fortress-1.0.8 app/views/cms/fortress/shared/_page_extend.html.haml