Last active
October 11, 2015 15:47
-
-
Save nonlinear/3882055 to your computer and use it in GitHub Desktop.
bootstrap_modal
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
<!-- | |
TODO: | |
1. add trigger: <button data-toggle="modal" data-target="#myModal">Trigger</button> | |
2. rename myModal id and trigger | |
OPTIONS: | |
for persistent modal, add data-backdrop="static" to trigger | |
--> | |
<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
<h4 class="modal-title" id="myModalLabel">[Title]</h4> | |
</div><!-- modal-header --> | |
<div class="modal-body"> | |
[Content] | |
</div><!-- modal-body --> | |
<div class="modal-footer"> | |
<button type="button" class="btn btn-default pull-left" data-dismiss="modal"><i class="glyphicon glyphicon-remove"></i>Close</button> | |
<button type="button" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i>Save</button> | |
</div><!-- modal-footer --> | |
</div><!-- modal-content --> | |
</div><!-- modal-dialog --> | |
</div><!-- modal --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment