forked from enviPath/enviPy
36 lines
1.3 KiB
HTML
36 lines
1.3 KiB
HTML
{% load static %}
|
|
<!-- Delete Compound -->
|
|
<div id="delete_compound_modal" class="modal" tabindex="-1">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h3 class="modal-title">Delete Compound</h3>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
Deletes the Compound and associated Structures.
|
|
<form id="delete-compound-modal-form" accept-charset="UTF-8" action="" data-remote="true" method="post">
|
|
{% csrf_token %}
|
|
<input type="hidden" id="hidden" name="hidden" value="delete-compound"/>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
<button type="button" class="btn btn-primary" id="delete-compound-modal-submit">Delete</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(function() {
|
|
|
|
$('#delete-compound-modal-submit').click(function(e){
|
|
e.preventDefault();
|
|
$('#delete-compound-modal-form').submit();
|
|
});
|
|
|
|
})
|
|
</script>
|