summaryrefslogtreecommitdiff
path: root/data/templates/recipe_edit.html
blob: 04804b40fdbd983935a3da0e76ac38b90ba41e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>

<html>

	{{ template "head.html" }}

	<body>
		<header>
			<nav>
				<a href="/index.html">HOME</a>
				<a href="/add_recipes">add recipe</a>
			</nav>
			<h1>Edit a recipe</h1>
		</header>

		<main>
			<p>Recipe ID: {{.Id}}</p>
			<pre contenteditable="true"><code>{{.DescriptionMarkdown}}</code></pre>
			<button>save</button> <!-- TODO add functionality -->
			<a href="/recipe?id={{.Id}}"><button>cancel</button></a>
			<button style="background-color: red">delete</button> <!-- TODO add functionality -->
			{{ template "footer.html" }}
		</main>
	</body>
</html>