1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/vendor/assets/components/summernote/examples/ondialog-multitab.html

78 lines
2.8 KiB
HTML
Raw Normal View History

2015-05-13 18:30:35 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>summernote</title>
<!-- include jquery -->
2016-03-23 18:39:41 +01:00
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
2015-05-13 18:30:35 +02:00
<!-- include libraries BS3 -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" />
<script type="text/javascript" src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" />
<!-- include summernote -->
<link rel="stylesheet" href="../dist/summernote.css">
<script type="text/javascript" src="../dist/summernote.js"></script>
<script>
$(function () {
$('#dropper').on('shown.bs.modal', function() {
$('.dropping').summernote({ height: 300, focus: true });
}).on('hidden.bs.modal', function () {
$('.dropping').destroy();
});
2016-03-23 18:39:41 +01:00
$('.nav.nav-tabs a').click(function (e) {
e.preventDefault()
$(this).tab('show')
})
2015-05-13 18:30:35 +02:00
});
</script>
</head>
<body>
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#dropper">Show Dialog</button>
<div id="dropper" class="modal fade" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
2016-03-23 18:39:41 +01:00
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#tab1" aria-controls="tab1" role="tab" data-toggle="tab">Tab 1</a></li>
<li role="presentation"><a href="#tab2" aria-controls="tab2" role="tab" data-toggle="tab">Tab 2</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="tab1">
<div class="dropping">text...</div>
</div>
<div role="tabpanel" class="tab-pane" id="tab2">
<div class="dropping">text...</div>
</div>
</div>
</div>
2015-05-13 18:30:35 +02:00
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left">
2016-03-23 18:39:41 +01:00
<span class="fa fa-paperclip"></span>
2015-05-13 18:30:35 +02:00
Attach Digital Assets
</button>
<div class="btn-group">
<button type="button" class="btn btn-default opacity75" class="close" data-dismiss="modal">
&times; Cancel
</button>
<button type="button" class="btn btn-warning" href="javascript:postDrop()">
Post Status Update
2016-03-23 18:39:41 +01:00
<span class="fa fa-bullhorn"></span>
2015-05-13 18:30:35 +02:00
</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>