Modals ====== Use the `modal` helper to insert a button that will toggle any type of [modal](http://getbootstrap.com/javascript/#modals) provided by Bootstrap. Basic modals ------------ ```erb <%= modal 'Click to toggle a modal', 'I am the content of the modal' %> ``` will generate the HTML to render a button that, when clicked, will toggle a modal with some simple text: ```html
``` Complex modals -------------- ```erb <%= modal 'Delete account', title: 'Confirm your action', dismissible: true, context: :danger, button_class: 'btn-sm', modal_class: 'modal-sm' do %> You are about to delete your account. Would you like to proceed? <%= footer do %> <% end %> <% end %> will generate the HTML to render a small "danger" (red) button that, when clicked, will toggle a small, dismissible modal with a title, some text, and a footer with a call-to-action: ```html ``` Panels ====== Use the `panel` helper to insert any type of [panel](http://getbootstrap.com/components/#panels) provided by Bootstrap. Basic panels ------------ ```erb <%= panel 'You have the right to remain silent...' %> ``` will generate the HTML to render a basic panel: ```html