diff options
Diffstat (limited to 'templates/room')
-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> |