Commit Graph

21 Commits

Author SHA1 Message Date
Xevion
2cb42bbc8b Fix profile editing form not coming pre-populated with data
Not sure why Form.populate_obj() wasn't working - looking at the source
and the description as well as relevant StackOverflow answers, that
method would apparently work just fine. Looking again, Form.process()
was recommended instead.

Also, I finally changed PyCharm to show me proper commit message
standards - so, be happy that things will look nice now. :)
2022-03-29 20:57:13 -05:00
Xevion
fd35443a9a Revamp all model relationships to use backref attributes properly
- Fix new post form not including a CSRF token
- Removed some old leftover comment profanity validation, changed to validate_on_submit() for first time
- Include rest of pluralize macro work with this commit + used pluralizing logic where there once was none
2022-03-29 18:12:07 -05:00
Xevion
49547e582c Improve License/TOS/Privacy statements 2022-03-29 17:06:56 -05:00
Xevion
839ef370be Create proper edit profile form w/ CSRF & refactor User.about_me null/empty string handling 2022-03-29 16:37:12 -05:00
Xevion
f41b83a15f Apply new form validation features to New Post form
- Use TextAreaField instead of StringField on forms.NewPostForm
- Fixed incorrect remember_me field and redirect in login
- Added placeholder usage to field rendering macro
2022-03-29 15:13:00 -05:00
Xevion
3b5307ab47 Migrate app to use WTForms for auth form validation
- Not finished yet, major styling breakage in this commit
- Also encapsulated GET & POST requests of /login and /signup routes into one route.
2022-03-29 02:30:19 -05:00
Xevion
2e8688f59b Revamp all form submissions with Flask-WTF forms
- Rename blueprint route 'main.user' to 'main.view_user' for clarity
- Rename 'forms.py' to 'route_forms.py'
2022-03-29 02:00:43 -05:00
Xevion
6c4b952004 Change all relative imports to standard imports 2022-03-28 17:30:31 -05:00
Xevion
28a9dd4a76 Comment out unused pages
+ Slight formatting changes
2022-03-28 13:23:34 -05:00
Xevion
8188ce5484 Fix administrator override 2022-03-27 13:19:10 -05:00
Xevion
8d369932d5 Add statistics to front page 2022-03-27 12:06:50 -05:00
Xevion
39f7425cc9 Add administrative bypass to user properties 2022-03-27 11:51:17 -05:00
Xevion
c8159c95b3 Fix new users list being ordered in ascending instead of descending (newest first) order 2022-03-27 11:20:11 -05:00
Xevion
0ade256bc9 Add new users list to index 2022-03-27 11:18:46 -05:00
Xevion
b70e39acfa Complete feed view, post view, and post form 2022-03-27 11:02:58 -05:00
Xevion
23fd613d8f Add login checks for user_edit form page viewing 2022-03-27 09:39:51 -05:00
Xevion
9b8209841d Move login/signup templates into "auth" folder 2022-03-27 06:08:26 -05:00
Xevion
0609a2a86a Add basic user browsing page
- Needs pagination
- Needs some style fixing
- Somewhat empty, fixes up next
2022-03-27 03:36:43 -05:00
Xevion
677abe3d65 Add humanized "last seen X ago" and "registered X ago" text on profile 2022-03-27 03:13:48 -05:00
Xevion
2fa03a496b Finishing touches on user template page 2022-03-27 02:02:58 -05:00
Xevion
fcac137046 Refactor and merge Zach's work into main 2022-03-26 21:50:07 -05:00