diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-27 22:00:58 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-27 22:00:58 +0200 |
| commit | 16ec509d268d55023f735a10d4336b067d992a28 (patch) | |
| tree | faced7190151a891d0853a7befcb3e19f3f2c0f4 /templates/index.html | |
| parent | 4ab8f23864326e2365510b4c7c01899f9a364e19 (diff) | |
| download | jokevote-16ec509d268d55023f735a10d4336b067d992a28.tar.gz jokevote-16ec509d268d55023f735a10d4336b067d992a28.zip | |
use sqlite, skeletonCSS
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/templates/index.html b/templates/index.html index 2122678..fdf53ef 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,18 +3,39 @@ <meta charset="utf-8"> <head> <title>Lehrerspruch-Wahlplattform</title> + <link rel="stylesheet" type="text/css" href="/static/normalize.css"> + <link rel="stylesheet" type="text/css" href="/static/skeleton.css"> </head> <body> <h1>Lehrersprüche</h1> - <ul> {% for joke in jokes %} - <li>{{ joke.text }}</li> + <div class="row"> + <div class="one columns"> + <form action="vote" method="post"> + <input type="hidden" name="id" value="{{ joke.id }}"> + <button type="submit" name="vote" value="upvote">⇧ ({{ joke.upvotes }})</button> + <button type="submit" name="vote" value="downvote">⇩ ({{ joke.downvotes }})</button> + </form> + </div> + <div class="eleven columns"> + <p> + {{ joke.text }} + </p> + </div> + </div> {% endfor %} - </ul> <form action="submit" method="post"> - Neuen Spruch hinzufügen - <input type="text" name="text"> - <input type="submit" value="hinzufügen"> + <div class="container"> + <div class="four columns"> + <p>Neuen Spruch hinzufügen</p> + </div> + <div class="four columns"> + <textarea name="text"></textarea> + </div> + <div class="four columns"> + <input type="submit" value="hinzufügen"> + </div> + </div> </form> </body> </html> |
