diff --git a/LyricsPy/servicios/lyrics/paginas.py b/LyricsPy/servicios/lyrics/paginas.py index af1308f..8719a17 100644 --- a/LyricsPy/servicios/lyrics/paginas.py +++ b/LyricsPy/servicios/lyrics/paginas.py @@ -58,7 +58,7 @@ def add_song(): db.session.add(new_song) db.session.commit() - return redirect(url_for('paginas.index')) + return redirect(url_for('paginas.album', album_id=album_id)) albums = Album.query.all() return render_template('add_song.html', albums=albums) diff --git a/LyricsPy/servicios/lyrics/templates/album.html b/LyricsPy/servicios/lyrics/templates/album.html index ba74908..ce89b65 100644 --- a/LyricsPy/servicios/lyrics/templates/album.html +++ b/LyricsPy/servicios/lyrics/templates/album.html @@ -49,6 +49,14 @@ {% endif %} - Volver al inicio + +
+
+ Volver al inicio +
+
+ Añadir canción +
+
{% endblock %} diff --git a/LyricsPy/servicios/lyrics/templates/albumes.html b/LyricsPy/servicios/lyrics/templates/albumes.html index 3d13e2c..2bb9bc4 100644 --- a/LyricsPy/servicios/lyrics/templates/albumes.html +++ b/LyricsPy/servicios/lyrics/templates/albumes.html @@ -7,6 +7,7 @@

Álbumes

+
@@ -71,6 +72,7 @@
+ + -->