lucyparsons / OpenOversight

Police oversight and accountability through public data 👮
https://openoversight.com
GNU General Public License v3.0
240 stars 79 forks source link

Add `state` field to `DepartmentForm` #988

Closed michplunkett closed 1 year ago

michplunkett commented 1 year ago

Fixes issue

https://github.com/lucyparsons/OpenOversight/issues/797

Description of Changes

Added state abbreviation dropdown to the department creation and editing page.

Screenshots (if appropriate)

Create Department:

Screenshot 2023-07-24 at 12 00 46 PM

Edit Department:

Screenshot 2023-07-26 at 4 44 21 PM

Show state if it exists for department on list screen:

Screenshot 2023-07-27 at 10 45 15 AM

Show state if it exists for department on download screen:

Screenshot 2023-07-27 at 10 48 25 AM

Tests and linting

michplunkett commented 1 year ago

I will be adding a line and test to require a state value tomorrow morning for both add and edit, but the rest of code should be 💯 . Let me know what y'all think.