erster Entwurf fuer simples Umfrage-Web-Interface
This commit is contained in:
parent
b4c3a84104
commit
59ccb5a87c
11 changed files with 465 additions and 0 deletions
39
umfrage_kirchenplatz2012/templates/layout.html
Normal file
39
umfrage_kirchenplatz2012/templates/layout.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:py="http://genshi.edgewall.org/" py:strip="">
|
||||
|
||||
<py:match path="head" once="true">
|
||||
<head py:attrs="select('@*')">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title py:with="title = list(select('title/text()'))">
|
||||
Umfrage<py:if test="title">: ${title}</py:if>
|
||||
</title>
|
||||
<link rel="stylesheet" href="${base_url}media/style.css" type="text/css" />
|
||||
${select('*[local-name()!="title"]')}
|
||||
</head>
|
||||
</py:match>
|
||||
|
||||
<tr py:match="trRenderOptionTitle" class="option_title">
|
||||
<th py:for="column, option in enumerate(options)" class="column${column % 2}">${option.title}</th>
|
||||
</tr>
|
||||
|
||||
<tr py:match="trRenderOptionImage" class="option_image">
|
||||
<td py:for="column, option in enumerate(options)" class="column${column % 2}"><img src="${option.image}" width="${1024/len(options)}" /></td>
|
||||
</tr>
|
||||
|
||||
<tr py:match="trRenderOptionText" class="option_text">
|
||||
<td py:for="column, option in enumerate(options)" class="column${column % 2}"><ul><li py:for="line in option.text.splitlines()">${line}</li></ul></td>
|
||||
</tr>
|
||||
|
||||
<py:match path="body" once="true">
|
||||
<body py:attrs="select('@*')">
|
||||
|
||||
<div id="content">
|
||||
${select('*|text()')}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</py:match>
|
||||
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue