summaryrefslogtreecommitdiff
path: root/data/templates/recipe_edit.html
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-03-31 20:41:48 +0200
committerxengineering <me@xengineering.eu>2023-03-31 21:46:53 +0200
commit39298f14d366b351708e7f5ef30d1b6575155792 (patch)
tree0973ec7cc3722661e3463280870f31a295b36dc8 /data/templates/recipe_edit.html
parentf1308a436040f3a72e058e10ec2693cfb599da30 (diff)
downloadceres-39298f14d366b351708e7f5ef30d1b6575155792.tar
ceres-39298f14d366b351708e7f5ef30d1b6575155792.tar.zst
ceres-39298f14d366b351708e7f5ef30d1b6575155792.zip
Reduce to ID and Markdown
The upstream URL can be encoded easily by the user in the Markdown-based description. The title can be parsed by the first found top-level heading in the Markdown text. Thus these two columns are no longer used. To avoid an additional migration they will be kept in the database.
Diffstat (limited to 'data/templates/recipe_edit.html')
-rw-r--r--data/templates/recipe_edit.html2
1 files changed, 0 insertions, 2 deletions
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>