Initial commit
This commit is contained in:
15
views/base.tpl
Normal file
15
views/base.tpl
Normal file
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{{title or 'No title'}}</title>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/" method="post">
|
||||
<label for="date">Date:</label>
|
||||
<input name="date" type="date" value="{{date or ''}}"/>
|
||||
<label for="time">Heure:</label>
|
||||
<input name="time" type="time" value="{{time or ''}}"/>
|
||||
<input value="Chercher" type="submit" />
|
||||
</form>
|
||||
{{!base}}
|
||||
</body>
|
||||
</html>
|
||||
1
views/search_form.tpl
Normal file
1
views/search_form.tpl
Normal file
@@ -0,0 +1 @@
|
||||
% rebase('base.tpl', title='Radio Balises')
|
||||
7
views/search_results.tpl
Normal file
7
views/search_results.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
% rebase('base.tpl', title='Radio Balises - Résultats')
|
||||
<h1>Liste des chansons</h1>
|
||||
<ul>
|
||||
% for x in results:
|
||||
<li>[{{str(x.date)}}] {{x.song.artist}} - {{x.song.title}}
|
||||
% end
|
||||
</ul>
|
||||
Reference in New Issue
Block a user