diff options
Diffstat (limited to 'data/templates')
| -rw-r--r-- | data/templates/add.html | 29 | ||||
| -rw-r--r-- | data/templates/recipe.html | 4 | ||||
| -rw-r--r-- | data/templates/recipe_edit.html | 2 | 
3 files changed, 1 insertions, 34 deletions
| diff --git a/data/templates/add.html b/data/templates/add.html deleted file mode 100644 index 0282ef0..0000000 --- a/data/templates/add.html +++ /dev/null @@ -1,29 +0,0 @@ -<!DOCTYPE html> - -<html> - -	{{ template "head.html" }} - -	<body> - -		<header> -			<nav> -				<a href="/index.html">HOME</a> -			</nav> -			<h1>Add a recipe</h1> -		</header> - -		<main> -			<form action="/add_recipes" method="post"> -				<input placeholder="Title" type="text" id="custom_title" name="title"><br> -				<input placeholder="Link (optional)" type="text" id="custom_link" name="url"><br> -				<button type="submit">add</button> -			</form> - -			{{ template "footer.html" }} - -		</main> - -	</body> - -</html> diff --git a/data/templates/recipe.html b/data/templates/recipe.html index 00b6906..9f49fbb 100644 --- a/data/templates/recipe.html +++ b/data/templates/recipe.html @@ -6,13 +6,11 @@  	<body> -		<header>{{if ne .UpstreamUrl ""}} +		<header>  			<nav>  				<a href="/index.html">HOME</a>  				<a href="/add_recipes">add recipe</a> -				<a href="{{.UpstreamUrl}}">original recipe</a>  			</nav> -			{{end}}  			<h1>{{.Title}}</h1>  		</header> diff --git a/data/templates/recipe_edit.html b/data/templates/recipe_edit.html index 05a932c..04804b4 100644 --- a/data/templates/recipe_edit.html +++ b/data/templates/recipe_edit.html @@ -15,8 +15,6 @@  		<main>  			<p>Recipe ID: {{.Id}}</p> -			<input placeholder="Title" type="text" name="title" value="{{.Title}}"><br> -			<input placeholder="Link (optional)" type="text" name="url" value="{{.UpstreamUrl}}"><br>  			<pre contenteditable="true"><code>{{.DescriptionMarkdown}}</code></pre>  			<button>save</button> <!-- TODO add functionality -->  			<a href="/recipe?id={{.Id}}"><button>cancel</button></a> | 
