Initial commit

This commit is contained in:
2021-05-29 00:52:25 +02:00
commit df964b8722
8 changed files with 296 additions and 0 deletions

15
views/base.tpl Normal file
View 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
View File

@@ -0,0 +1 @@
% rebase('base.tpl', title='Radio Balises')

7
views/search_results.tpl Normal file
View 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>