Feat: Add author creation form page
Closes T407551
Summary
Created a new /add-author/ page with a comprehensive form for adding author biographical information. The form demonstrates Flask and Jinja templating capabilities and matches Paulina's design system. Also fixed JavaScript null reference errors that occurred on pages without the search form.
Changes:
- Added
/add-author/route inapp.py:76-80 - Created
templates/add-author.htmlwith complete author form including:- Basic information section (name, gender, description, nationality, ethnicity)
- Biography section (dates, location, occupation)
- Additional information section (official website)
- Responsive card-based layout with Bootstrap
- Helper text and validation indicators
- Info alert explaining proof-of-concept nature
- Fixed JavaScript errors in
templates/layout.html:254-273by wrapping search filter toggle code in null checks
Screenshots
Test Plan
Basic Functionality:
- Start Flask app with
python app.py - Navigate to
http://127.0.0.1:5000/add-author/ - Verify page displays with Paulina header and footer
- Verify no JavaScript console errors appear

