-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomFeature.html
70 lines (58 loc) · 1.77 KB
/
CustomFeature.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{% extends '_base.html' %}
{% load static %}
{% load crispy_forms_tags %}
{% block title %} Custom Annotations {% endblock %}
<!-- Set corresponding nav pill to active -->
{% block nav_explore %}active{% endblock nav_explore %}
{% block header_includes %}
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css"
rel="stylesheet"
/>
{% endblock header_includes %}
{% block content %}
<div class="container">
<div class="row justify-content-evenly mt-3 pt-3">
<div class="col-12 col-md-10 col-lg-8">
{% if messages %}
{% for message in messages %}
{% if message.tags == "info" %}
<div class="alert alert-info">
{{ message }}
</div>
{% endif %}
{% endfor %}
{% endif %}
{% if form.errors %}
<div
class="alert alert-danger"
role="alert"
>
Server error! Please try again or contact admin.
</div>
{% endif %}
<form method="post">
{% crispy form %}
</form>
</div>
</div>
<div class="justify-content-center mt-3 pt-3">
</div>
</div>
{% comment %} <table>
{% for ui in uncertain_images %}
<tr><td> {{ ui }} </td></tr>
{% endfor %}
</table> {% endcomment %}
{% endblock content %}
{% block footer_includes %}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js"></script>
<script>
$('#id_macrosites').select2({
placeholder: '(mandatory)',
});
$('#id_camera_stations').select2({
placeholder: '(optional)',
});
</script>
{% endblock footer_includes %}