harvard-lil / h2o

H2O is a web app for creating and reading open educational resources, primarily in the legal field
https://opencasebook.org
GNU Affero General Public License v3.0
36 stars 30 forks source link

Redirect more views that have POST forms #1823

Closed lizadaly closed 1 year ago

lizadaly commented 1 year ago

Following the pattern in #1820, modify a few more edit forms to do redirect-after-post.

Moves the tests in the user profile page to pytest to allow for cleaner differentiation between professors and non-professors requesting verification.

Updates the casebook settings page to use the same pattern and adds some post-submit messages to give the user some hint that there was a state change, e.g.:

image

Note that the "leave casebook" option doesn't currently work, see #1822.