aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-08-25 16:12:16 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-08-25 16:12:16 +0200
commit639eb16af544ea051d2e091111bcd6427a1644d0 (patch)
treede4546f8f075cc122d503a7750d989dbc87c6d3d /templates
parentccf0703f753c66405683b17b4d1f5135c10c0ece (diff)
downloadramaskrik-social-639eb16af544ea051d2e091111bcd6427a1644d0.tar.gz
ramaskrik-social-639eb16af544ea051d2e091111bcd6427a1644d0.tar.bz2
ramaskrik-social-639eb16af544ea051d2e091111bcd6427a1644d0.zip
Add info about the event to the db and render landing page.
Diffstat (limited to 'templates')
-rw-r--r--templates/event/index.tera14
-rw-r--r--templates/event/new.tera16
2 files changed, 30 insertions, 0 deletions
diff --git a/templates/event/index.tera b/templates/event/index.tera
new file mode 100644
index 0000000..411a5f5
--- /dev/null
+++ b/templates/event/index.tera
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>{{ event.name }}</title>
+ </head>
+ <body>
+ <h1>{{ event.name }}</h1>
+
+ {% if event.description -%}
+ <p>{{ event.description }}</p>
+ {% endif -%}
+
+ </body>
+</html>
diff --git a/templates/event/new.tera b/templates/event/new.tera
new file mode 100644
index 0000000..41a9aca
--- /dev/null
+++ b/templates/event/new.tera
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Create the event</title>
+ </head>
+ <body>
+ <h1>Create event</h1>
+
+ <form name="new_event_form" action="/" method="POST">
+ <label for="name">Name: </label><input name="name" type="text">
+ <label for="description">Description: </label>
+ <textarea name="description"></textarea>
+ <input type="submit" value="Save">
+ </form>
+ </body>
+</html>