Due: Friday October 26, 11pm.
You have to implement a blog system, in which each blog can have replies.
Use the starting code in the 2018-fall-hw2 branch of the repository. You have to implement three functions in the controller:
The forms used to add a reply, or edit it, should only ask the user for the content of the reply; no other information (post id, author, reply author, time, ...) should be part of the form.
The button to delete a reply should delete it immediately.
I think the index.html provided works, but I have not tested it fully as I have not completed the homework myself.
You have to provide files add_reply.html, edit_reply.html, and delete_reply.html.
Also, please modify the css a bit so that the replies look decent and separated one from the other, and indented to the right with respect to the posts.
If there are errors in the starter code (I haven't tested the part that produces the reply list) please point them out on Piazza.
To clone the repository:
The following assumes that you want to work in the hw2 directory for this work, so that you would go to
http://localhost:8000/hw2/default/index to go to its starting page (or from whatever port you are serving).
cd applications
git clone https://luca_de_alfaro@bitbucket.org/luca_de_alfaro/web2py_start.git hw2
cd hw2
git checkout 2018-fall-hw2
Please submit to this CrowdGrader assignment: https://www.crowdgrader.org/crowdgrader/venues/view_venue/4057