diff options
author | xengineering <me@xengineering.eu> | 2024-04-23 17:42:57 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-05-09 12:19:30 +0200 |
commit | 2704cb76554b02f546bf3f9d2d11be98f2854b7b (patch) | |
tree | cd167fcc3a0c27ee2943c2d7abd3acc8741406f6 /view/html/recipes.html | |
parent | c5e7551dc2da9798ff51d91aa238098f5ac4605f (diff) | |
download | ceres-2704cb76554b02f546bf3f9d2d11be98f2854b7b.tar ceres-2704cb76554b02f546bf3f9d2d11be98f2854b7b.tar.zst ceres-2704cb76554b02f546bf3f9d2d11be98f2854b7b.zip |
Remove default recipe name
To avoid not clickable recipes on the /recipes page a default name used
to be inserted on recipe creation.
This was not a proper fix for the problem and also was annoying that the
user first had to remove the default recipe name.
This commit removes this default name.
Diffstat (limited to 'view/html/recipes.html')
-rw-r--r-- | view/html/recipes.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/html/recipes.html b/view/html/recipes.html index 89620ed..d9e720b 100644 --- a/view/html/recipes.html +++ b/view/html/recipes.html @@ -8,7 +8,7 @@ <h1>Recipes</h1> </header> <main> - <p><button onclick="create('/recipe')">create</button></p> + <p><button onclick="window.location.href='/recipe/create';">create</button></p> {{if ne (len .) 0}} <p><input id="search" onkeyup="filter()" type="text" placeholder="Search for a recipe ..."></p> <ul id="recipes">{{range .}} |