Browse Source

Menús en español

politica
Celestino Rey 1 year ago
parent
commit
f800d63ab2
6 changed files with 53 additions and 22 deletions
  1. +1
    -1
      LyricsPy/servicios/lyrics/templates/add_song.html
  2. +4
    -4
      LyricsPy/servicios/lyrics/templates/album.html
  3. +7
    -5
      LyricsPy/servicios/lyrics/templates/base.html
  4. +32
    -3
      LyricsPy/servicios/lyrics/templates/index.html
  5. +6
    -6
      LyricsPy/servicios/lyrics/templates/search.html
  6. +3
    -3
      LyricsPy/servicios/lyrics/templates/song.html

+ 1
- 1
LyricsPy/servicios/lyrics/templates/add_song.html View File

@ -16,7 +16,7 @@
{% endfor %}
</select>
<label for="lyrics">Lyrics:</label>
<label for="lyrics">Letra:</label>
<textarea id="lyrics" name="lyrics" required></textarea>
<button type="submit">Añadir canción</button>


+ 4
- 4
LyricsPy/servicios/lyrics/templates/album.html View File

@ -2,10 +2,10 @@
{% block content %}
<h2>{{ album.name }}</h2>
<p><strong>Artist:</strong> {{ album.artist }}</p>
<p><strong>Year:</strong> {{ album.year }}</p>
<p><strong>Artista:</strong> {{ album.artist }}</p>
<p><strong>Año:</strong> {{ album.year }}</p>
<h3>Songs in this Album</h3>
<h3>Canciones en este álbum</h3>
<ul>
{% for song in songs %}
<li>
@ -14,5 +14,5 @@
{% endfor %}
</ul>
<a href="{{ url_for('paginas.index') }}">Back to Home</a>
<a href="{{ url_for('paginas.index') }}">Volver al inicio</a>
{% endblock %}

+ 7
- 5
LyricsPy/servicios/lyrics/templates/base.html View File

@ -2,22 +2,24 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Song Lyrics</title>
<title>Mis letras de canciones</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<!-- DataTables CSS -->
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.css">
</head>
<body>
<div class="container">
<h1>My Song Lyrics</h1>
<h1>Mis letras de canciones</h1>
<nav>
<a href="{{ url_for('paginas.index') }}">Home</a>
<a href="{{ url_for('paginas.add_song') }}">Add Song</a>
<a href="{{ url_for('paginas.add_album') }}">Add Album</a>
<a href="{{ url_for('paginas.index') }}">Inicio</a>
<a href="{{ url_for('paginas.add_song') }}">Añadir canción</a>
<a href="{{ url_for('paginas.add_album') }}">Añadir álbum</a>
<!--
<form action="{{ url_for('paginas.search') }}" method="get" style="display:inline;">
<input type="text" name="query" placeholder="Search songs...">
<button type="submit">Search</button>
</form>
-->
</nav>
<hr>
{% block content %}{% endblock %}


+ 32
- 3
LyricsPy/servicios/lyrics/templates/index.html View File

@ -12,9 +12,9 @@
<table id="songTable" class="display">
<thead>
<tr>
<th>Title</th>
<th>Author</th>
<th>Album</th>
<th>Título</th>
<th>Autor</th>
<th>Álbum</th>
</tr>
</thead>
<tbody>
@ -32,6 +32,34 @@
{% endif %}
</div>
<div id="Albums" class="tabcontent">
<h2>Album List</h2>
{% if albums %}
<table id="albumTable" class="display">
<thead>
<tr>
<th>Nombre</th>
<th>Artista</th>
<th>Año</th>
</tr>
</thead>
<tbody>
{% for album in albums %}
<tr>
<td><a href="{{ url_for('paginas.album', album_id=album.id) }}">{{ album.name }}</a></td>
<td>{{ album.artist }}</td>
<td>{{ album.year }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No albums found.</p>
{% endif %}
<hr>
<a href="{{ url_for('paginas.add_album') }}" class="button">Añadir nuevo álbum</a>
</div>
<!--
<div id="Albums" class="tabcontent">
<h2>Albums</h2>
<ul>
@ -44,4 +72,5 @@
<hr>
<a href="{{ url_for('paginas.add_album') }}" class="button">Add New Album</a>
</div>
-->
{% endblock %}

+ 6
- 6
LyricsPy/servicios/lyrics/templates/search.html View File

@ -1,15 +1,15 @@
{% extends 'base.html' %}
{% block content %}
<h2>Search Results for "{{ query }}"</h2>
<h2>Resultados de la búsqueda para "{{ query }}"</h2>
{% if songs %}
<table id="songTable" class="display">
<thead>
<tr>
<th>Title</th>
<th>Author</th>
<th>Album</th>
<th>Título</th>
<th>Autor</th>
<th>Álbum</th>
</tr>
</thead>
<tbody>
@ -23,8 +23,8 @@
</tbody>
</table>
{% else %}
<p>No songs found matching your query.</p>
<p>No he econtrado canciones que concuerden con tu petición.</p>
{% endif %}
<a href="{{ url_for('paginas.index') }}">Back to Home</a>
<a href="{{ url_for('paginas.index') }}">Volver al inicio</a>
{% endblock %}

+ 3
- 3
LyricsPy/servicios/lyrics/templates/song.html View File

@ -2,8 +2,8 @@
{% block content %}
<h2>{{ song.title }}</h2>
<p><strong>Author:</strong> {{ song.author }}</p>
<p><strong>Year:</strong> {{ song.album.year }}</p>
<p><strong>Album:</strong> {{ song.album.name }}</p>
<p><strong>Autor:</strong> {{ song.author }}</p>
<p><strong>Año:</strong> {{ song.album.year }}</p>
<p><strong>Álbum:</strong> {{ song.album.name }}</p>
<pre>{{ song.lyrics }}</pre>
{% endblock %}

Loading…
Cancel
Save