fix form add Lofi
This commit is contained in:
@@ -1,44 +1,100 @@
|
|||||||
{{ define "lofi_detail" }}
|
{{ define "lofi_detail" }}
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
{{ template "head" . }}
|
{{ template "head" . }}
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{{ template "navbar" . }}
|
{{ template "navbar" . }}
|
||||||
<div class="row">
|
<main>
|
||||||
<h1>Media Lofi</h1>
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
<h1>Media Lofi</h1>
|
||||||
|
<p>Hier steht der wesentliche Inhalt der Seite.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="col-md-4">
|
||||||
<form class="form-inline" action="/web/media-lofis">
|
<aside class="bg-light p-3">
|
||||||
<input type="text" placeholder="Search" name="query">
|
<h3>Seitenbereich</h3>
|
||||||
<input>
|
<p>Optionale Sidebar oder Zusatzinformationen.</p>
|
||||||
<input type="checkbox" name="review" {{ if .Review }}checked{{ end }}>Review
|
</aside>
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" name="should_download" {{ if .ShouldDownload }}checked{{ end }}>Download
|
|
||||||
</label>
|
|
||||||
<button type="submit">Search</button>
|
|
||||||
<div class="pill-nav"><a href="/web/media-lofis/add">Add Lofi</a></div>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<form class="form-inline" action="/web/media-lofis">
|
||||||
|
<input type="text" placeholder="Search" name="query" />
|
||||||
|
<label>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
name="review"
|
||||||
|
{{if
|
||||||
|
.isReview}}checked{{end}}
|
||||||
|
/>Review
|
||||||
|
</label>
|
||||||
|
<label>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
name="should_download"
|
||||||
|
{{if
|
||||||
|
.isDownload}}checked{{end}}
|
||||||
|
/>Download
|
||||||
|
</label>
|
||||||
|
<button type="submit">Search</button>
|
||||||
|
<div class="pill-nav">
|
||||||
|
<a href="/web/media-lofis/add">Add Lofi</a>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
{{ if .Errors }}
|
{{ if .Errors }}
|
||||||
<div class="notification is-danger">{{ .Errors }}</div>
|
<div class="notification is-danger">{{ .Errors }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="maincolumn">
|
<div class="row">
|
||||||
<form action="/web/media-lofis/{{.lofi.ID}}/edit" method="POST">
|
{{ if .Errors }}
|
||||||
<label>URL</label>
|
<div class="notification is-danger">{{ .Errors }}</div>
|
||||||
<input type="text" name="weblink" value="{{.lofi.WebLink}}">
|
{{ end }}
|
||||||
|
</div>
|
||||||
<label>Titel</label>
|
<div class="row">
|
||||||
<input type="text" name="title" value="{{.lofi.Title}}">
|
<form action="/web/media-lofis/{{.lofi.ID}}/edit" method="POST">
|
||||||
|
<div class="form-group row">
|
||||||
<button type="submit">Update</button>
|
<label for="inputWeblink" class="col-sm-2 -col-form-label"
|
||||||
<button type="button" onclick="/web/media-lofis">Cancel</button>
|
>URL</label
|
||||||
</form>
|
>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
class="form-control"
|
||||||
|
id="inputWeblink"
|
||||||
|
name="weblink"
|
||||||
|
value="{{.lofi.WebLink}}"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ template "footer" . }}
|
<div class="form-group row">
|
||||||
</body>
|
<label for="inputTitle" class="col-sm-2 -col-form-label"
|
||||||
|
>Title</label
|
||||||
|
>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
class="form-control"
|
||||||
|
id="inputTitle"
|
||||||
|
name="title"
|
||||||
|
value="{{.lofi.Title}}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group row">
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<button class="btn btn-primary" type="submit">Update</button>
|
||||||
|
<button class="btn" type="button" onclick="/web/media-lofis">
|
||||||
|
Cancel
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
{{ template "footer" . }}
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user