learning-unlimited / ESP-Website

A website to help manage the logistics of large, short-term educational programs
84 stars 57 forks source link

Fixes for new program and program settings forms #3779

Closed willgearty closed 1 month ago

willgearty commented 1 month ago
willgearty commented 1 month ago

This revealed another issue where if you submit the new program form and get one of these new errors, then go backwards (with the back button or the "go back" link on the error page, the submit button is then disabled.

willgearty commented 1 month ago

OK, instead of throwing a Whoops error page, we should be validating the fields individually and then re-rendering the form with the validation errors.

willgearty commented 1 month ago

@kkbrum could you please test this out before I merge it into the python3 branch?