-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
128 lines (113 loc) · 5.76 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./style.css">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0" crossorigin="anonymous">
<title>Hello, world!</title>
</head>
<body>
<h1 class="text-center">Canciones</h1>
<!-- Button trigger modal -->
<div class="d-flex my-4 justify-content-center align-items-center">
<button type="button" class="ms-2 btn btn-primary" data-bs-toggle="modal" data-bs-target="#addSong">
Agregar Canción
</button>
</div>
<table class="table">
<thead>
<tr class="text-center">
<th scope="col">#</th>
<th scope="col">Cancion</th>
<th scope="col">Banda</th>
<th scope="col">Año</th>
<th scope="col">Logo banda</th>
<th>Acciones</th>
</tr>
</thead>
<tbody id="canciones">
</tbody>
</table>
<div class="container">
<div class="row justify-content-between align-items-center">
<input id="searchInput" class="col-5 my-4 form-control w-50" placeholder="Search" aria-label="Search">
<button id="searchBtn" class="col-2 my-4 btn btn-success">Buscar</button>
<button onClick="listarCanciones()" class="col-2 my-4 btn btn-warning">Limpiar</button>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="addSong" tabindex="-1" aria-labelledby="addSongLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="addSongLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="Nombre" class="form-label">Nombre</label>
<input type="text" class="form-control" id="Nombre" aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="Banda" class="form-label">Banda</label>
<input type="text" class="form-control" id="Banda" aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="Año" class="form-label">Año</label>
<input type="text" class="form-control" id="Año" aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="Img" class="form-label">Img</label>
<input type="text" class="form-control" id="Img" aria-describedby="emailHelp">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cerrar</button>
<button type="button" class="btn btn-primary" onclick="agregarCancion()">Guardar cambios</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="editSong" tabindex="-1" aria-labelledby="editSongLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="editSongLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="NombreEdit" class="form-label">Nombre</label>
<input type="text" class="form-control" id="NombreEdit" aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="BandaEdit" class="form-label">Banda</label>
<input type="text" class="form-control" id="BandaEdit" aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="AñoEdit" class="form-label">Año</label>
<input type="text" class="form-control" id="AñoEdit" aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="ImgEdit" class="form-label">Logo</label>
<input type="text" class="form-control" id="ImgEdit" aria-describedby="emailHelp">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cerrar</button>
<button type="button" class="btn btn-primary" onclick="editarCancion()">Guardar cambios</button>
</div>
</div>
</div>
</div>
<script src="./script.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script>
</body>
</html>