You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
741 B

{% extends 'base.html' %}
{% block content %}
<h2>Añadir nueva canción</h2>
<form method="POST">
<label for="title">Título:</label>
<input type="text" id="title" name="title" required>
<label for="author">Autor:</label>
<input type="text" id="author" name="author" required>
<label for="album_id">Álbum:</label>
<select id="album_id" name="album_id" required>
{% for album in albums %}
<option value="{{ album.id }}">{{ album.name }} by {{ album.artist }}</option>
{% endfor %}
</select>
<label for="lyrics">Lyrics:</label>
<textarea id="lyrics" name="lyrics" required></textarea>
<button type="submit">Añadir canción</button>
</form>
{% endblock %}