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.9 KiB
HTML
71 lines
1.9 KiB
HTML
<div
|
|
class="modal fade"
|
|
tabindex="-1"
|
|
id="new_group_modal"
|
|
role="dialog"
|
|
aria-labelledby="new_group_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 Group</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<p>
|
|
Create new Group. You can assign users to the group once it is
|
|
created. Description can be changed after creation.
|
|
</p>
|
|
<form
|
|
id="new_group_modal_form"
|
|
accept-charset="UTF-8"
|
|
action="{{ SERVER_BASE }}/group"
|
|
data-remote="true"
|
|
method="post"
|
|
>
|
|
{% csrf_token %}
|
|
<p>
|
|
<label for="name">Name</label>
|
|
<input
|
|
id="name"
|
|
type="text"
|
|
name="group-name"
|
|
class="form-control"
|
|
placeholder="Name"
|
|
/>
|
|
</p>
|
|
<p>
|
|
<label for="description">Description</label>
|
|
<input
|
|
id="description"
|
|
type="text"
|
|
class="form-control"
|
|
placeholder="Description..."
|
|
name="group-description"
|
|
/>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<a id="new_group_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_group_modal_form_submit").on("click", function () {
|
|
$("#new_group_modal_form").submit();
|
|
});
|
|
});
|
|
</script>
|