Zweite version
Playist management
This commit is contained in:
parent
39f95c2857
commit
46e9d5c40d
7 changed files with 70 additions and 14 deletions
4
templates/index.html
Executable file → Normal file
4
templates/index.html
Executable file → Normal file
|
|
@ -47,8 +47,8 @@
|
|||
</style>
|
||||
<h1>ESC Playlist</h1>
|
||||
<h2>2026</h2>
|
||||
<a href="/suche">Du willst ein weiteres Lied in der Playlist?</a>
|
||||
<p>Die Playlist ist insgesamt lang {{ gesamtLaenge | zeit }} und enthält {{ karten|length }} Lieder</p>
|
||||
<a href="/suche?liste={{liste}}">Du willst ein weiteres Lied in der Playlist?</a>
|
||||
<p>Die Playlist {{liste}} ist insgesamt lang {{ gesamtLaenge | zeit }} und enthält {{ karten|length }} Lieder</p>
|
||||
<div id = "flex-container">
|
||||
{% for karte in karten %}
|
||||
{% set karte_loop = loop %}
|
||||
|
|
|
|||
6
templates/karte.html
Executable file → Normal file
6
templates/karte.html
Executable file → Normal file
|
|
@ -1,11 +1,17 @@
|
|||
<article>
|
||||
<img src="{{ karte.img }}"/>
|
||||
{% if karte.ytid %}
|
||||
<audio controls autoplay src="/static/{{karte.datei}}"></audio>
|
||||
{% endif %}
|
||||
<h2>{{ karte.titel}}</h2>
|
||||
<p><b>Übersetzter Titel:</b>{{ karte.uetitel}}</p>
|
||||
<p><b>Interpreten:</b>{{ karte.interprete}}</p>
|
||||
{% if karte.jahrgang %}
|
||||
<p><b>Jahrgang:</b> {{ karte.jahrgang }}</p>
|
||||
{% endif %}
|
||||
{% if karte.plazirung%}
|
||||
<p><b>Plazirung:</b> {{ karte.plazirung }}</p>
|
||||
{% endif %}
|
||||
<p><b>Länge:</b> {{karte.laenge|zeit}}</p>
|
||||
<p><b id = "kursive">Interesanter</b><b> Fakt:</b> {{ karte.interesanterfakt }}</p>
|
||||
{% if karte.text %}
|
||||
|
|
|
|||
1
templates/neueliste.html
Normal file
1
templates/neueliste.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<form><input name="name" value={{name}} placeholder="Name der Playlist"></form>
|
||||
6
templates/playlists.html
Normal file
6
templates/playlists.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<ul>
|
||||
{% for list in lists %}
|
||||
<li><a href="/?liste={{list}}">{{list}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<a href="/neueliste">Lust auf was neues?</a>
|
||||
7
templates/suche.html
Executable file → Normal file
7
templates/suche.html
Executable file → Normal file
|
|
@ -1,4 +1,7 @@
|
|||
<form><input name="suche" placeholder="Suche" value="{{anfrage or ""}}"></form>
|
||||
{% if liste == empty %}
|
||||
<p>Du musst etwas in die Playlist Screiben</p>
|
||||
{% endif %}
|
||||
<form><input type="hidden" name="liste" value="{{liste}}"><input name="suche" placeholder="Suche" value="{{anfrage or ""}}"></form>
|
||||
{% if ergebnisse %}
|
||||
<form method="post"><ol>
|
||||
{% for ergebnis in ergebnisse %}
|
||||
|
|
@ -6,7 +9,7 @@
|
|||
{% endfor %}</ol></form>
|
||||
|
||||
{%elif anfrage%}
|
||||
<p>Leider gibt es diesen Eintrag nicht!</p>
|
||||
<p>Leider gibt es den Eintrag {{anfrage}} nicht!</p>
|
||||
{%endif%}
|
||||
|
||||
<a href="/">Doch nicht?</a>
|
||||
Loading…
Add table
Add a link
Reference in a new issue