Initiale Version

This commit is contained in:
Jan Unger
2016-08-16 21:20:53 +02:00
commit 88cf71d772
10930 changed files with 1708903 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title>
{% block stylesheets %}{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
</body>
</html>

View File

@@ -0,0 +1,31 @@
{% extends 'base.html.twig' %}
{% block body %}
<h1>{{ cd.name }} ({{ cd.kuenstler.name }}, {{ cd.erscheinungsjahr }})</h1>
<form action="{{ path('lied-hinzufuegen', {"cdId": cd.id}) }}" method="post">
<table>
<tr>
<th>Track</th>
<th>Titel</th>
<th></th>
<th></th>
</tr>
{% for lied in cd.lieder %}
<tr>
<td>{{ lied.track }}</td>
<td>{{ lied.titel }}</td>
<td><a href="{{ path('lied-bearbeiten', {'liedId': lied.id}) }}">Bearbeiten ...</a></td>
<td><a href="{{ path('lied-loeschen', {'liedId': lied.id}) }}">Löschen ...</a></td>
</tr>
{% endfor %}
<tr>
<td><input type="text" name="track" placeholder="Track"/></td>
<td><input type="text" name="titel" placeholder="Titel"/></td>
</tr>
</table>
<input type="submit" value="Hinzufügen"/>
</form>
<p><a href="{{ path('homepage') }}">zur Übersicht</a></p>
{% endblock %}

View File

@@ -0,0 +1,20 @@
{% extends 'base.html.twig' %}
{% block body %}
<table>
<tr>
<th>Künstler</th>
<th>Album</th>
<th>Erscheinungsjahr</th>
</tr>
{% for cd in cds %}
<tr>
<td>{{ cd.kuenstler.name }}</td>
<td>
<a href="{{ path('cd', {'cdId': cd.id}) }}">{{ cd.name }}</a>
</td>
<td>{{ cd.erscheinungsjahr }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}

View File

@@ -0,0 +1,17 @@
{% extends 'base.html.twig' %}
{% block body %}
<form action="{{ path('lied-bearbeiten', {'liedId': lied.id}) }}" method="post">
<h1>Lied bearbeiten</h1>
<h2>'{{ lied.cd.name }}' ({{ lied.cd.kuenstler.name }})</h2>
<label>Track
<input type="text" name="track" value="{{ lied.track }}"/>
</label>
<label>Titel
<input type="text" name="titel" value="{{ lied.titel }}"/>
</label>
<button type="submit" name="aktion" value="speichern">Speichern</button>
<button type="submit" name="aktion" value="abbrechen">Abbrechen</button>
</form>
{% endblock %}

View File

@@ -0,0 +1,15 @@
{% extends 'base.html.twig' %}
{% block body %}
<form action="{{ path('lied-loeschen', {'liedId': lied.id}) }}" method="post">
<h1>Lied löschen</h1>
<h2>{{ lied.cd.name }} ({{ lied.cd.kuenstler.name }})</h2>
<p>
Möchten Sie Track {{ lied.track }} '{{ lied.titel }}' löschen?<br>
Diese Aktion kann nicht rückgängig gemacht werden.
</p>
<button type="submit" name="aktion" value="loeschen">Löschen!</button>
<button type="submit" name="aktion" value="abbrechen">Abbrechen</button>
</form>
{% endblock %}