first draft of the poll website
This commit is contained in:
parent
87f7977806
commit
f2ef35b429
8 changed files with 259 additions and 0 deletions
27
wortschlucker/templates/polls.html
Normal file
27
wortschlucker/templates/polls.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!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>Poll list</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>All polls</h1>
|
||||
<p py:if="errors" class="error">Error:
|
||||
<ul>
|
||||
<li py:for="message in errors.values()">${message}</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p><a href="${base_url}polls/new" title="Create a new poll">Create a new poll</a></p>
|
||||
<ul py:if="polls">
|
||||
<li py:for="poll in polls">
|
||||
<a href="${poll.get_url()}" title="Details of poll ${poll.title}">
|
||||
Poll: ${poll.title} (${poll.get_num_of_submissions()}/${poll.get_num_of_submitters()})
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue