import other kontor repos into directories
This commit is contained in:
committed by
Thomas Peetz
parent
28746adfbb
commit
b424e95e05
@@ -0,0 +1,32 @@
|
||||
{{ define "comics/publisher.html" }}
|
||||
{{ template "header.html" .}}
|
||||
{{ template "comics/menu.html" .}}
|
||||
<ul class="nav nav-tabs">
|
||||
<li role="presentation"><a href="/comics/comic">Comics</a></li>
|
||||
<li role="presentation" class="active"><a href="/comics/publisher">Publishers</a></li>
|
||||
<li role="presentation"><a href="/comics/artist">Artists</a></li>
|
||||
</ul>
|
||||
<div class="panel-body">
|
||||
{{ if .ErrorTitle}}
|
||||
<p class="bg-danger">
|
||||
{{.ErrorTitle}}: {{.ErrorMessage}}
|
||||
</p>
|
||||
{{end}}
|
||||
<form action="/comics/publisher/validate" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="name">Name</label>
|
||||
{{ if .payload.Name }}
|
||||
<input type="text" class="form-control" id="name" name="name" value={{.payload.Name}}>
|
||||
{{ else }}
|
||||
<input type="text" class="form-control" id="name" name="name" placeholder="Name">
|
||||
{{ end }}
|
||||
</div>
|
||||
<input type="hidden" name="publisherid" id="publisherid" value={{.payload.ID.Hex}}>
|
||||
<button type="submit" class="btn btn-primary" name="action" value={{.action}}>{{.action}}</button>
|
||||
{{ if eq .action "Save" }}
|
||||
<button type="submit" class="btn btn-primary" name="action" value="Delete">Delete</button>
|
||||
{{ end }}
|
||||
</form>
|
||||
</div>
|
||||
{{ template "footer.html" .}}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user