diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-08-22 20:14:03 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-08-22 20:14:03 +0200 |
commit | 701ff00b72b423b77e3d1e09dc7fc1b817b207cb (patch) | |
tree | b1914d2b292aa3462ffb3dff7856d7436469da28 /templates | |
parent | 86178bb3a5ad131766a57cdcac9f22fed3c55f8a (diff) | |
download | ramaskrik-social-701ff00b72b423b77e3d1e09dc7fc1b817b207cb.tar.gz ramaskrik-social-701ff00b72b423b77e3d1e09dc7fc1b817b207cb.tar.bz2 ramaskrik-social-701ff00b72b423b77e3d1e09dc7fc1b817b207cb.zip |
Implement adding rooms through the web ui.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/room/list.tera | 6 | ||||
-rw-r--r-- | templates/room/new.tera | 14 |
2 files changed, 20 insertions, 0 deletions
diff --git a/templates/room/list.tera b/templates/room/list.tera index fddad57..23b2086 100644 --- a/templates/room/list.tera +++ b/templates/room/list.tera @@ -8,6 +8,12 @@ {% if rooms | length <= 0%} No rooms defined. +{% else %} +<ul> +{% for r in rooms -%} + <li>{{ r.name }} ({{ r.id }}) +{% endfor -%} +</ul> {% endif %} </body> </html> diff --git a/templates/room/new.tera b/templates/room/new.tera new file mode 100644 index 0000000..2bbe27c --- /dev/null +++ b/templates/room/new.tera @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> +<title>New room</title> +</head> +<body> +<h1>New room</h1> + +<form name="new_room_form" action="/rooms" method="POST"> + <label for="name">Name: </label><input name="name" type="text"> + <input type="submit" value="Save"> +</form> +</body> +</html> |