Skip to content

Instantly share code, notes, and snippets.

@yury
Created July 30, 2013 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yury/6114864 to your computer and use it in GitHub Desktop.
Save yury/6114864 to your computer and use it in GitHub Desktop.
bootstrap_modal(dom_id: 'a_dom_id', fade: true, header_title: "I'm a bootstrap modal popup") do |modal|
modal.body do |c|
c.content_tag :div, "the body"
end
modal.footer do |f|
f.bootstrap_button "Save", "/link1", :type => 'btn-primary'
f.bootstrap_button "Cancel", "/link2"
end
end
#a_dom_id.modal.fade
.modal-header
a.close data-dismiss="modal" &times
h3 I'm a bootstrap modal popup
.modal-body
div the body
.modal-footer
a.btn.btn-primary href='/link1' Save
a.btn href='/link2' Cancel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment