Module: Cms::WorkflowButtons
- Defined in:
- lib/cms/form_builder/workflow_buttons.rb
Instance Method Summary collapse
- #publish_button(*args, &block) ⇒ Object
- #save(*args, &block) ⇒ Object
- #save_draft(*args, &block) ⇒ Object
Instance Method Details
#publish_button(*args, &block) ⇒ Object
3 4 5 6 7 |
# File 'lib/cms/form_builder/workflow_buttons.rb', line 3 def (*args, &block) (args, "Publish") do || [: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) (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) (args, "Save Draft") end |