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 in app.py:76-80
  • Created templates/add-author.html with 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-273 by wrapping search filter toggle code in null checks

Screenshots

image image

Test Plan

Basic Functionality:

  1. Start Flask app with python app.py
  2. Navigate to http://127.0.0.1:5000/add-author/
  3. Verify page displays with Paulina header and footer
  4. Verify no JavaScript console errors appear

Merge request reports

Loading