From f7b3769a1751992e1569e328f6a5ba8b69ded5d0 Mon Sep 17 00:00:00 2001
From: Gregor Best <gbe@unobtanium.de>
Date: Tue, 13 Apr 2021 23:15:25 +0200
Subject: [PATCH] Start pure-ifying the details view

---
 templates/details.tpl | 8 ++++----
 templates/index.tpl   | 1 -
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/templates/details.tpl b/templates/details.tpl
index 46f3a78..245df24 100644
--- a/templates/details.tpl
+++ b/templates/details.tpl
@@ -3,7 +3,7 @@
 {{ define "title" }}Details for {{ .Wine.Name }}{{ end }}
 
 {{ define "content" }}
-<div class="box pure-u-1">
+<div class="content pure-u-1">
 	{{ with .Wine }}
 	<form class="pure-form" method="POST">
 		<input type="hidden" name="id" value="{{ .ID }}">
@@ -22,13 +22,13 @@
 	<p>And here's a picture:<br/>
 
 	<img class="pure-img" src="/details/img?id={{ .ID }}"/>
+</div>
 
-	<hr/>
-
+<footer class="box pure-u-1">
 	<form class="pure-form" method="POST" action="/delete">
 		<input type="hidden" name="id" value="{{ .ID }}">
 		<button type="submit" class="right pure-button button-warning">Delete</button>
 	</form>
+</footer>
 	{{ end }}
-</div>
 {{ end }}
\ No newline at end of file
diff --git a/templates/index.tpl b/templates/index.tpl
index 0a9a386..87a49c0 100644
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -18,7 +18,6 @@
 	</table>
 </div>
 
-
 <footer class="box pure-u-1">
 	<form class="pure-form" method="POST" enctype="multipart/form-data" action="/add">
 		<fieldset>
-- 
GitLab