Closed enewe101 closed 10 years ago
And done! Sorry -- this took awhile cause I had to grok how forms worked, and that gave me some trouble...
BTW, look in /src/digidemo/views.py
-- inside the proposal()
view I'm hard-coding the logged-in user (line ~14), which gets passed to the proposal.html
template. That's used inside the part of the template which lays out the comment form, inside a hidden form input (around line 330). Once we have a proper way to log in users we can change the view to access that instead of the hardcoded user.
Enable a simple form for adding comments to open letters. Use the model-driven forms for creating the html widgets, accepting and validating posts, and insertion into the database. No ajax -- just post to proposal page itself.