{% 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 %}
|