mirror of
https://github.com/janunger/rheinwerk-video-training.git
synced 2026-02-06 15:15:15 +01:00
Initiale Version
This commit is contained in:
17
Kapitel_10/Lektion_4/symfony/app/Resources/views/lied/bearbeiten.html.twig
Executable file
17
Kapitel_10/Lektion_4/symfony/app/Resources/views/lied/bearbeiten.html.twig
Executable 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 %}
|
||||
15
Kapitel_10/Lektion_4/symfony/app/Resources/views/lied/loeschen.html.twig
Executable file
15
Kapitel_10/Lektion_4/symfony/app/Resources/views/lied/loeschen.html.twig
Executable 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 %}
|
||||
Reference in New Issue
Block a user