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>
69 lines
1.8 KiB
HTML
69 lines
1.8 KiB
HTML
<div
|
|
class="modal fade"
|
|
tabindex="-1"
|
|
id="new_package_modal"
|
|
role="dialog"
|
|
aria-labelledby="new_package_modal"
|
|
aria-hidden="true"
|
|
>
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">
|
|
<span aria-hidden="true">×</span>
|
|
<span class="sr-only">Close</span>
|
|
</button>
|
|
<h4 class="modal-title">New Package</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<p>Create new package. Description can be changed later.</p>
|
|
<form
|
|
id="new_package_modal_form"
|
|
accept-charset="UTF-8"
|
|
action=""
|
|
data-remote="true"
|
|
method="post"
|
|
>
|
|
{% csrf_token %}
|
|
<p>
|
|
<label for="name">Name</label>
|
|
<input
|
|
id="name"
|
|
class="form-control"
|
|
name="package-name"
|
|
placeholder="Name"
|
|
/>
|
|
</p>
|
|
<p>
|
|
<label for="description">Description</label>
|
|
<input
|
|
id="description"
|
|
type="text"
|
|
rows="3"
|
|
class="form-control"
|
|
placeholder="Description..."
|
|
name="package-description"
|
|
/>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<a id="new_package_modal_form_submit" class="btn btn-primary" href="#"
|
|
>Submit</a
|
|
>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">
|
|
Cancel
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(function () {
|
|
$("#new_package_modal_form_submit").on("click", function (e) {
|
|
e.preventDefault();
|
|
$("#new_package_modal_form").submit();
|
|
});
|
|
});
|
|
</script>
|