-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
127 lines (116 loc) · 4.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Actividad de Javascript</title>
<!-- Aqui se agregan los estilos -->
<link rel="stylesheet" href="assest/css/bootstrap.min.css">
<link rel="stylesheet" href="assest/css/styles.css">
</head>
<body>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary mt-50 centerbox" data-bs-toggle="modal" data-bs-target="#agregarTarea">
Agregar tarea
</button>
<div class="mt-50 mb-25 centertxt">
<h1>Listado de Tareas</h1>
</div>
<div class="row container center">
<div class="col-md-12">
<table class="table center mt-50 table-striped table-hover">
<thead class="table-dark">
<td>ID #</td>
<td>Actividad</td>
<td style="width:180px; text-align: center;">Acciones</td>
</thead>
<tbody id="tareas">
</tbody>
</table>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="agregarTarea" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Agregar tarea</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="tareas" class="row g-3">
<div class="col-md-12">
<label for="tarea" class="form-label">Tarea</label>
<input type="text" class="form-control" id="tarea" name="tarea">
</div>
<div class="col-12">
<label for="descripcion" class="form-label">Descripcion</label>
<textarea class="form-control" id="descripcion" name="descripcion"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="btngrabar">Grabar</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="mostrarTarea" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Agregar tarea</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="tareas" class="row g-3">
<div class="col-md-12">
<label for="tarea" class="form-label">Tarea</label>
<input type="text" class="form-control" id="txttarea" name="txttarea" disabled>
</div>
<div class="col-12">
<label for="descripcion" class="form-label">Descripcion</label>
<textarea class="form-control" id="txtdescripcion" name="txtdescripcion" disabled></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="editarTarea" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Agregar tarea</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="tareas" class="row g-3">
<div class="col-md-12">
<label for="tareatxt" class="form-label">Tarea</label>
<input type="text" class="form-control" id="tareatxt" name="tareatxt">
<input type="hidden" class="form-control" id="idtxt" name="idtxt">
</div>
<div class="col-12">
<label for="descripcion" class="form-label">Descripcion</label>
<textarea class="form-control" id="descripciontxt" name="descripciontxt"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="btneditar">Editar</button>
</div>
</div>
</div>
</div>
<script src="assest/js/bootstrap.bundle.min.js"></script>
<script src="assest/js/index.js" defer></script>
</body>
</html>