added a small includable starter form with just one input field, started layouting it, added a frontpage.html (currently just polls.html + form), modified links
This commit is contained in:
parent
0b07302b48
commit
b002283947
5 changed files with 106 additions and 27 deletions
32
wortschlucker/templates/frontpage.html
Normal file
32
wortschlucker/templates/frontpage.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!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>Instant Notes</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Neuer Wortschlucker</h1>
|
||||
${poll_new_small()}
|
||||
|
||||
|
||||
<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_admin_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