Port the web to bootstrap5
So it is responsive in phones.
This commit is contained in:
parent
8af2ad3758
commit
6a3da59c75
40 changed files with 1131 additions and 849 deletions
|
@ -27,7 +27,7 @@ func deleteHandler(h handler) {
|
|||
}
|
||||
book, err := h.db.GetBookID(id)
|
||||
if err != nil {
|
||||
h.sess.Notify("Book not found!", "The book with id '"+id+"' is not there", "error")
|
||||
h.sess.Notify("Book not found!", "The book with id '"+id+"' is not there", "danger")
|
||||
continue
|
||||
}
|
||||
err = h.db.UpdateSubmissionByBook(id, "Rejected", nil)
|
||||
|
@ -124,7 +124,7 @@ func saveHandler(h handler) {
|
|||
err := h.db.UpdateBook(id, book)
|
||||
if err != nil {
|
||||
log.Error("Updating book: ", err)
|
||||
h.sess.Notify("Can't modify book!", err.Error(), "error")
|
||||
h.sess.Notify("Can't modify book!", err.Error(), "danger")
|
||||
} else {
|
||||
h.sess.Notify("Book Modified!", "", "success")
|
||||
}
|
||||
|
|
Reference in a new issue