altered book delete status to success, completed TODO-05 (books must be sold to be deleted - with tooltip to explain), and added new BUG-17 - changing some fields of parent book need to be reflected into sub book

This commit is contained in:
2021-01-09 22:00:08 +11:00
parent e923709663
commit 0432f46b20
4 changed files with 12 additions and 5 deletions

View File

@@ -490,9 +490,8 @@ def book(id):
st.SetMessage( "This is a parent book, cannot delete it without deleting sub books first" )
return redirect( '/book/{}'.format(book.id) )
else:
st.SetAlert("warning")
st.SetMessage("WARNING: Deleting being tested at present.<br>")
st.AppendMessage("Deleted {}".format(book.title) )
st.SetAlert("success")
st.SetMessage("Deleted {}".format(book.title) )
pid = 0
if len(book.parent) > 0:
pid = book.parent[0].id