aboutsummaryrefslogtreecommitdiff
path: root/ui/pages/post/create.tmpl.html
diff options
context:
space:
mode:
authorAlexander Kavon <me+git@alexkavon.com>2024-01-22 21:30:19 -0500
committerAlexander Kavon <me+git@alexkavon.com>2024-01-22 21:30:19 -0500
commit0cdc7a2e84ac5c460569a26a1dd8e3070cea487e (patch)
treedd1f1f67e9dad99b21fd4d2f817beb846e1fe611 /ui/pages/post/create.tmpl.html
parent481b799f9eced5432fdc0c66d2bf04226cdc723b (diff)
add posts table migration, add sqlboiler post model, post routes: create, store, get, post create ui template, remove email from user create route
Diffstat (limited to 'ui/pages/post/create.tmpl.html')
-rw-r--r--ui/pages/post/create.tmpl.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/ui/pages/post/create.tmpl.html b/ui/pages/post/create.tmpl.html
new file mode 100644
index 0000000..385ed22
--- /dev/null
+++ b/ui/pages/post/create.tmpl.html
@@ -0,0 +1,20 @@
+{{define "title"}}Create Post{{end}}
+
+{{define "main"}}
+ <h1>Whatcha Got?</h1>
+ <form action="/p" method="POST">
+ <label>
+ Title
+ <input type="text" placeholder="NYC Voted Best Place to Live By NYers" name="title" />
+ <span>Title will be automatically pulled from URL if not provided.</span>
+ </label>
+ <label>
+ Description
+ <textarea placeholder="Spit it out already." name="description"></textarea>
+ </label>
+ <label>
+ URL
+ <input type="url" placeholder="https://cheesy.pizza/01/01/1970/first-post" name="url" />
+ <button type="submit">Yup</button>
+ </form>
+{{end}}