forked from enviPath/enviPy
47 lines
1.9 KiB
HTML
47 lines
1.9 KiB
HTML
{% load envipytags %}
|
|
{% load static %}
|
|
<!-- Edit Compound -->
|
|
<div id="edit_compound_structure_modal" class="modal" tabindex="-1">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">Create a Compound</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<p>Edit a Compound Structure.</p>
|
|
<form id="edit-compound-structure-modal-form" accept-charset="UTF-8" action="" data-remote="true" method="post">
|
|
{% csrf_token %}
|
|
<p>
|
|
<label for="compound-structure-name">Name</label>
|
|
<input id="compound-structure-name" class="form-control" name="compound-structure-name" value="{{ compound_structure.name|nh_safe }}">
|
|
</p>
|
|
<p>
|
|
<label for="compound-structure-description">Description</label>
|
|
<input id="compound-structure-description" type="text" class="form-control"
|
|
value="{{ compound_structure.description|nh_safe }}" name="compound-structure-description">
|
|
</p>
|
|
</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="edit-compound-structure-modal-submit">Create</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(function() {
|
|
|
|
$('#edit-compound-structure-modal-submit').click(function(e){
|
|
e.preventDefault();
|
|
$('#edit-compound-structure-modal-form').submit();
|
|
});
|
|
|
|
});
|
|
|
|
|
|
</script>
|