Add the avility to edit metadata and delete books after submission
This commit is contained in:
parent
de58f0251e
commit
8d126fbe7a
7 changed files with 93 additions and 48 deletions
|
@ -1,5 +1,6 @@
|
|||
{{template "header.html" .S}}
|
||||
|
||||
{{$submissionID := .SubmissionID}}
|
||||
{{with .Book}}
|
||||
<div class="row">
|
||||
{{if .Cover}}
|
||||
|
@ -9,7 +10,12 @@
|
|||
{{end}}
|
||||
|
||||
<div class="span8">
|
||||
<form class="form-horizontal" method="POST" action="/save/{{.ID}}">
|
||||
<form class="form-horizontal" method="POST"
|
||||
{{if $submissionID}}
|
||||
action="/submission/{{$submissionID}}/save/{{.ID}}">
|
||||
{{else}}
|
||||
action="/save/{{.ID}}">
|
||||
{{end}}
|
||||
<fieldset>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title">Title</label>
|
||||
|
|
Reference in a new issue