So I have a comment system and I want to have a delete button to delete the linked review. If a user (admin) clicks on this button the review is deleted. I have read about using CRUD and SQLFORMS deletable, but I want this not as a form but as a button.
How would I do so? Controller: def view(): {some code for displaying some parts of page here} rows = db(db.comment.id == request.vars.commentNumber).select() return locals() View: { some code for displaying page here} {{for row in rows:}} <h4>"{{=row.reviewsTitle}}" <p><i>{{=row.date}}</i><a>Delete</a></p></h4> <p> {{=row.reviewsText}}</p></p> {{pass}} Example of comment: "Good work" 2017-02-25 Delete descriptionhere "I like itk" 2016-03-25 Delete descriptionhere -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.