fpdcc / ccfp-asset-dashboard

CCFP Asset Dashboard
0 stars 1 forks source link

funding and phase improvements #144

Closed smcalilly closed 2 years ago

smcalilly commented 2 years ago

Overview

Fixes funding and phase-related issues from user feedback tasks:

Demo

Screen Shot 2022-03-28 at 4 05 14 PM

Notes

For the year validation, I followed this stackoverflow example. I started to follow another answer in that thread, using the MaxValueValidator/MaxValueValidator on the model fields, but that hardcodes the year range into the migrations. By doing calculating it on the form like this PR's approach, the range is more dynamic as the years go by.

Testing Instructions