-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add button to export department officer data as CSV
- Loading branch information
Showing
16 changed files
with
897 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<div class="container theme-showcase" role="main"> | ||
|
||
<div class="page-header"> | ||
<h1> | ||
Delete Description of officer {{ obj.officer_id }} | ||
</h1> | ||
<p> | ||
{{ obj.description }} | ||
</p> | ||
</div> | ||
<p class="lead"> | ||
Are you sure you want to delete this description? | ||
This cannot be undone. | ||
<form action="{{ '{}/delete'.format(url_for('main.description_api', obj_id=obj.id, officer_id=obj.officer_id)) }}" method="post"> | ||
<button class='btn btn-danger' type="submit">Delete</button> | ||
</form> | ||
</p> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% extends "form.html" %} | ||
{% import "bootstrap/wtf.html" as wtf %} | ||
|
||
|
||
{% block page_title %} | ||
Update Description | ||
{% endblock page_title %} | ||
|
||
|
||
{% block form %} | ||
{% if form.errors %} | ||
{% set post_url=url_for('main.description_api', officer_id=obj.officer_id, obj_id=obj.id) %} | ||
{% else %} | ||
{% set post_url="{}/edit".format(url_for('main.description_api', officer_id=obj.officer_id, obj_id=obj.id)) %} | ||
{% endif %} | ||
{{ wtf.quick_form(form, action=post_url, method='post', button_map={'submit':'primary'}) }} | ||
<br> | ||
{% endblock form %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends 'form.html' %} | ||
|
||
{% block page_title %} | ||
New Description | ||
{% endblock page_title %} | ||
|
||
{% block form %} | ||
<p>For officer with OOID {{ form.officer_id.data }}.<br>{{form.description}}</p> | ||
{{ super() }} | ||
{% endblock form %} | ||
|
||
{% block js_footer %} | ||
<script src="{{ url_for('static', filename='js/incidentAddButtons.js') }}"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.