Created
July 30, 2013 17:09
-
-
Save yury/6114864 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#a_dom_id.modal.fade | |
.modal-header | |
a.close data-dismiss="modal" × | |
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