Module: Cms::WorkflowButtons

Defined in:
lib/cms/form_builder/workflow_buttons.rb

Instance Method Summary collapse

Instance Method Details

#publish_button(*args, &block) ⇒ Object



3
4
5
6
7
# File 'lib/cms/form_builder/workflow_buttons.rb', line 3

def publish_button(*args, &block)
  button_with_normalized_options(args, "Publish") do |options|
    options[:class] << "btn-primary right"
  end
end

#save(*args, &block) ⇒ Object



13
14
15
16
17
# File 'lib/cms/form_builder/workflow_buttons.rb', line 13

def save(*args, &block)
  button_with_normalized_options(args, "Save") do |opts|
    opts[:class] << "btn-primary right"
  end
end

#save_draft(*args, &block) ⇒ Object



9
10
11
# File 'lib/cms/form_builder/workflow_buttons.rb', line 9

def save_draft(*args, &block)
  button_with_normalized_options(args, "Save Draft")
end