2017-09-21 12:09:04 +00:00
{{template "header.html" .S}}
< div class = "row" >
2018-04-07 22:58:59 +00:00
< h4 > Review your submission:< / h4 >
< ul >
< li > Check if the book is already in the library, please remove the books that are already in the library in a better or similar edition/quality. You can click on the title or the authors to search for similar books in the library.< / li >
< li > Edit if needed the title, authors, publisher, ...< / li >
< / ul >
< p > Thank you for your submission.< / p >
2017-09-21 12:09:04 +00:00
< / div >
{{$role := .S.Role}}
2018-04-07 22:58:59 +00:00
{{$submissionID := .SubmissionID}}
2017-09-21 12:09:04 +00:00
{{range .Submissions}}
< div class = "row" >
< div class = "row" >
< div class = "span9" >
< p > < b > {{.Filename}}< / b >
2019-03-05 19:54:21 +00:00
{{if not .Book}}
2017-09-21 12:09:04 +00:00
< span class = "label label-important" >
2019-03-05 19:54:21 +00:00
{{else if .Book.Active}}
< span class = "label label-success" >
2017-09-21 12:09:04 +00:00
{{else}}
< span class = "label label-warning" >
{{end}}
{{.Status}}< / span > < / p >
< / div >
< / div >
2018-04-07 22:58:59 +00:00
{{with .Book}}
2017-09-21 12:09:04 +00:00
2019-03-05 19:54:21 +00:00
{{if .}}
2017-09-21 12:09:04 +00:00
< div class = "span1" >
< p class = "pull-right" > < a href = "/book/{{.ID}}" > {{if .Cover}}< img class = "img-rounded" src = "/cover/{{.ID}}/small/{{.Title}}.jpg" alt = "{{.Title}}" / > {{end}}< / a > < / p >
< / div >
< div class = "span10 well" >
2018-04-07 23:42:41 +00:00
< div class = "row" >
< div class = "span7" >
< p >
< span class = "muted" > [{{if .Lang}}{{.Lang}}{{end}}]< / span >
< a href = "/search/?q=title:{{.Title}}" > < strong > {{.Title}}< / strong > < / a > < br / >
{{if .Authors}}< strong > Authors:< / strong > {{range .Authors}}< a href = "/search/?q=author:{{.}}" > {{.}}< / a > , {{end}}< br / > {{end}}
{{if .Publisher}}< strong > Publisher:< / strong > < a href = "/search/?q=publisher:{{.Publisher}}" > {{.Publisher}}< / a > < br / > {{end}}
{{if .Tags}}< strong > Tags:< / strong > {{range .Tags}}< a href = "/search/?q=tag:{{.}}" > {{.}}< / a > , {{end}}< br / > {{end}}
{{if .Isbn}}< strong > ISBN:< / strong > {{.Isbn}}< br / > {{end}}
{{if .Date}}< strong > Date:< / strong > {{.Date}}< br / > {{end}}
{{.Description}}
< / p >
< / div >
< div class = "span3" >
{{if and .ID (not .Active)}}
< div class = "row btn-group pull-right" >
{{if eq $role "admin" "moderator"}}
< a href = "/store/{{.ID}}/" class = "btn btn-success" > < i class = "icon-ok" > < / i > Save< / a >
{{end}}
< a href = "/submission/{{$submissionID}}/edit/{{.ID}}" class = "btn btn-primary" > < i class = "icon-pencil" > < / i > Edit< / a >
< a href = "/submission/{{$submissionID}}/delete/{{.ID}}/" class = "btn btn-danger" > < i class = "icon-remove" > < / i > Delete< / a >
< / div >
< div class = "row" > < p > < / p > < / div >
{{end}}
< div class = "row btn-group pull-right" >
2020-12-10 12:44:36 +00:00
< a href = "{{download_url .}}" class = "btn btn-inverse" > < i class = "icon-download-alt icon-white" > < / i > download< / a >
2018-04-07 23:42:41 +00:00
< a href = "/read/{{.ID}}" class = "btn btn-warning" > < i class = "icon-eye-open icon-white" > < / i > read it!< / a >
< / div >
< / div >
< / div >
2017-09-21 12:09:04 +00:00
< / div >
{{end}}
{{end}}
< / div >
2018-04-07 23:42:41 +00:00
2019-03-05 19:54:21 +00:00
{{if .Book}}
2018-04-07 23:42:41 +00:00
< form class = "row form-inline" method = "POST" action = "/submission/{{$submissionID}}/comment/{{.Book.ID}}" >
< textarea class = "span11" id = "comment" rows = "2" name = "comment" placeholder = "Comments about this book submission. Is it a better version than an existing one in the library?" > {{.Comment}}< / textarea >
< button type = "submit" class = "btn btn-primary" > Send comment< / button >
< / form >
2019-03-05 19:54:21 +00:00
{{end}}
2017-09-21 12:09:04 +00:00
{{end}}
2020-03-23 19:13:58 +00:00
{{template "footer.html" .S}}