forked from enviPath/enviPy
All html files now prettier formatted and fixes for incompatible blocks applied Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#193 Co-authored-by: Tobias O <tobias.olenyi@envipath.com> Co-committed-by: Tobias O <tobias.olenyi@envipath.com>
71 lines
1.8 KiB
HTML
71 lines
1.8 KiB
HTML
{% load static %}
|
|
<!-- Edit Node -->
|
|
<div id="edit_node_modal" class="modal" tabindex="-1">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">Edit Node</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 Node.</p>
|
|
<form
|
|
id="edit-node-modal-form"
|
|
accept-charset="UTF-8"
|
|
action=""
|
|
data-remote="true"
|
|
method="post"
|
|
>
|
|
{% csrf_token %}
|
|
<p>
|
|
<label for="node-name">Name</label>
|
|
<input
|
|
id="node-name"
|
|
class="form-control"
|
|
name="node-name"
|
|
value="{{ node.name|safe }}"
|
|
/>
|
|
</p>
|
|
<p>
|
|
<label for="node-description">Description</label>
|
|
<input
|
|
id="node-description"
|
|
type="text"
|
|
class="form-control"
|
|
value="{{ node.description|safe }}"
|
|
name="node-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-node-modal-submit"
|
|
>
|
|
Create
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(function () {
|
|
$("#edit-node-modal-submit").click(function (e) {
|
|
e.preventDefault();
|
|
$("#edit-node-modal-form").submit();
|
|
});
|
|
});
|
|
</script>
|