Add API to app.py so I can use n8n to export the entries.

Added opt-out newsletter checkbox and the appropriate places to insert it to the db.
This commit is contained in:
Steve Dogiakos
2025-04-02 15:31:33 -06:00
parent 3411b48dcf
commit 9b244e1661
3 changed files with 60 additions and 26 deletions

View File

@@ -68,6 +68,17 @@
<div class="mb-3">
<label for="email" class="form-label">Email (Optional):</label>
<input type="email" class="form-control" id="email" name="email">
<!-- Email + Newsletter Block (fixed) -->
<div class="mb-3">
<label for="email" class="form-label">Email (Optional):</label>
<input type="email" class="form-control" id="email" name="email">
<div class="form-check mt-2">
<input class="form-check-input" type="checkbox" name="newsletter_opt_in" id="newsletter_opt_in" checked />
<label class="form-check-label" for="newsletter_opt_in">
Subscribe me to the TMDC newsletter
</label>
</div>
</div>
<div class="mb-3">
<label for="location" class="form-label">Location:</label>