Added disabled to components, new components, button and modal
This commit is contained in:
35
resources/components/modal/delete.blade.php
Normal file
35
resources/components/modal/delete.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<div class="modal fade" id="confirm_delete" tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header bg-danger">
|
||||
<h5 class="modal-title">WARNING: DELETING record</h5>
|
||||
<button type="button" class="btn-close" data-dismiss="modal" aria-label="Close">X</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>This action is irreversible. Are you sure, your sure, that you want to delete it?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<a type="button" class="btn btn-danger btn-ok">Delete</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section('page-scripts')
|
||||
<script type="text/javascript">
|
||||
var confirm_delete = new bootstrap.Modal(document.getElementById('confirm_delete'), {});
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.{{$trigger}}').click(function(e) {
|
||||
confirm_delete.show();
|
||||
console.log($('#confirm_delete')
|
||||
.find('.btn-ok'));
|
||||
$('#confirm_delete')
|
||||
.find('.btn-ok')
|
||||
.attr('href',e.currentTarget.href);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@append
|
Reference in New Issue
Block a user