35 lines
970 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Museum Visitor Guestbook</title>
</head>
<body>
<h1>Museum Visitor Guestbook</h1>
<form method="post" action="/">
<label for="first_name">First Name(s):</label><br>
<input type="text" id="first_name" name="first_name" required><br><br>
<label for="last_name">Last Name:</label><br>
<input type="text" id="last_name" name="last_name" required><br><br>
<label for="email">Email:</label><br>
<input type="email" id="email" name="email" required><br><br>
<label for="location">Location:</label><br>
<input type="text" id="location" name="location" required><br><br>
<input type="submit" value="Submit">
</form>
<hr>
<h2>Guest Entries</h2>
<ul>
{% for guest in guests %}
<li><strong>{{ guest[0] }}</strong> from {{ guest[1] }}</li>
{% endfor %}
</ul>
</body>
</html>