2010-04-14 20:03:44 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
xmlns:py="http://genshi.edgewall.org/">
|
|
|
|
<xi:include href="layout.html" />
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<title>Create a poll</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>New poll</h1>
|
2010-04-15 17:44:53 +02:00
|
|
|
|
2010-04-14 20:03:44 +02:00
|
|
|
<form action="" method="post">
|
|
|
|
<p>
|
|
|
|
<label for="author">Your name:</label>
|
2010-04-15 17:44:53 +02:00
|
|
|
<input type="text" id="author" class="form-entry" name="author" />
|
2010-04-14 20:03:44 +02:00
|
|
|
<span py:if="'author' in errors" class="error">${errors.author}</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label for="title">Poll name:</label>
|
2010-04-15 17:44:53 +02:00
|
|
|
<input type="text" id="title" class="form-entry" name="title" />
|
2010-04-14 20:03:44 +02:00
|
|
|
<span py:if="'title' in errors" class="error">${errors.title}</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label for="description">Description:</label>
|
2010-04-15 17:44:53 +02:00
|
|
|
<input type="text" id="description" class="form-entry" name="description" />
|
2010-04-14 20:03:44 +02:00
|
|
|
<span py:if="'description' in errors" class="error">${errors.description}</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
2010-04-15 12:32:45 +02:00
|
|
|
<input type="submit" name="submit" value="Create poll" />
|
2010-04-14 20:03:44 +02:00
|
|
|
<input type="submit" name="cancel" value="Cancel" />
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|