generated from BuildForSDG/python-starter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathincident_create.html
27 lines (23 loc) · 1.09 KB
/
incident_create.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
{% load bootstrap4 %} {# import bootstrap4 #}
{% bootstrap_css %} {# Embed Bootstrap CSS #}
{% bootstrap_javascript jquery='full' %} {# Embed Bootstrap JS+jQuery #}
<div class="container-fluid">
<div class="container">
<h1>Accident Form</h1>
<p>It is our collective responsibility to report an accident. By reporting accidents, relevant agencies monitor problems and identify their root causes. Reporting road accidents enable actions to be taken to reduce future ocurrences, and at LifeShield it takes less than 5 minutes to report an accident.</p>
<form action="{% url 'incident_create' %}"
method="post">
{% csrf_token %}
{% bootstrap_form form %}
{{ form.media }} {# Adds date-picker required JS and CSS #}
{% buttons %}
<button type="submit" class="btn btn-primary">Submit</button>
{% endbuttons %}
</form>
<div>
{% for message in messages %}
<h3> {{message}}</h3>
{% endfor %}
</div>
</div>
<div>