Add tokenfield tag editor
This commit is contained in:
parent
6a3da59c75
commit
02f711aa97
10 changed files with 148 additions and 3 deletions
|
@ -59,6 +59,7 @@ type editData struct {
|
|||
S Status
|
||||
Book database.Book
|
||||
SubmissionID string
|
||||
Tags []string
|
||||
}
|
||||
|
||||
func editHandler(h handler) {
|
||||
|
@ -78,6 +79,10 @@ func editHandler(h handler) {
|
|||
data.Book = book
|
||||
data.S = GetStatus(h)
|
||||
data.SubmissionID = submissionID
|
||||
data.Tags, err = h.db.GetTags()
|
||||
if err != nil {
|
||||
log.Error("Error getting tags: ", err)
|
||||
}
|
||||
author := ""
|
||||
if len(book.Authors) > 0 {
|
||||
author = " by " + book.Authors[0]
|
||||
|
|
Reference in a new issue