added changing of polls
This commit is contained in:
parent
f2ef35b429
commit
81df603ba2
6 changed files with 217 additions and 18 deletions
25
wortschlucker/templates/poll_admin_details.html
Normal file
25
wortschlucker/templates/poll_admin_details.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!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 details</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Poll: ${poll.title}</h1>
|
||||
<ul>
|
||||
<li>Author: ${poll.author}</li>
|
||||
<li>Created: ${poll.get_creation_time_string()}</li>
|
||||
<li>Description: ${poll.description}</li>
|
||||
<li>User URL: <a href="${poll.get_url()}" title="link of this poll">${poll.get_url()}</a></li>
|
||||
<li>Administrative URL: <a href="${poll.get_admin_url()}" title="link for managing this poll">${poll.get_admin_url()}</a></li>
|
||||
<li py:if="poll.get_settings()">Settings:<ul>
|
||||
<li py:for="key, value in poll.get_settings().items()">${key}: ${value}</li>
|
||||
</ul></li>
|
||||
<li><a href="${poll.get_edit_url()}" title="edit this poll">Edit this poll</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue