franklindyer / agora-app

Simple and (hopefully) secure social media application. Also a project for spring 2024 CS 444 cybersecurity class at UNM.
4 stars 1 forks source link

Migrate (almost) all forms to their own template #116

Closed altheaden closed 3 months ago

altheaden commented 3 months ago

Almost all of the form definitions have been moved to macros defined in form.html. The exception is forms that are already in manage-files.html, which I decided to keep as is, at least for the time being.

The reason for this change is that it's easier to deal with all things form related if they are all in a single location, and this also makes the page templates a little more succinct and readable.

The server code has been fixed to send the appropriate limits dictionary to all the forms that have limit definitions. This PR also includes a bugfix that broke comment deletion.

fixes #118