-
Notifications
You must be signed in to change notification settings - Fork 0
/
gestion-cursos.html
233 lines (210 loc) · 9.99 KB
/
gestion-cursos.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-sompatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin</title>
<link rel="icon" id="dynamic-favicon" type="image/png" href="img/neoris-logos/Icon_light.png">
<!-- ======= Styles ====== -->
<link rel="stylesheet" href="styles/style.css">
<link rel="stylesheet" type="text/css" href="styles/tabla-cursos.css">
</head>
<body>
<!-- =============== Navigation ================ -->
<div class="container">
<div class="navigation">
<ul>
<li>
<a href="#">
<span class="icon">
<img src="img/neoris-logos/Icon_light.png" alt="" class="logo">
</span>
<img src="img/neoris-logos/logo-light.png" alt="" class="logo_secondary">
</a>
</li>
<li>
<a href="index.html">
<span class="icon">
<ion-icon name="home-outline"></ion-icon>
</span>
<span class="title">Inicio</span>
</a>
</li>
<li>
<a href="cursos.html">
<span class="icon">
<ion-icon name="flash"></ion-icon>
</span>
<span class="title">Cursos</span>
</a>
</li>
<li>
<a href="juego.html">
<span class="icon">
<ion-icon name="happy"></ion-icon>
</span>
<span class="title">Juego</span>
</a>
</li>
<li>
<a href="admin.html">
<span class="icon">
<ion-icon name="person"></ion-icon>
</span>
<span class="title">Admin</span>
</a>
</li>
<li>
<a href="FAQ.html">
<span class="icon">
<ion-icon name="help"></ion-icon>
</span>
<span class="title">FAQ</span>
</a>
</li>
<li>
<a href="login.html">
<span class="icon">
<ion-icon name="log-out-outline"></ion-icon>
</span>
<span class="title">Sign Out</span>
</a>
</li>
</ul>
</div>
<!-- ========================= Main ==================== -->
<div class="main">
<div class="topbar">
<div class="toggle">
<ion-icon name="menu-outline"></ion-icon>
</div>
<h2 class="profile-title">Admin</h2>
<div class="search">
<label>
<input type="text" id="searchBar" placeholder="Buscar..." onkeyup="searchOnEnter(event)">
<ion-icon name="search-outline"></ion-icon>
</label>
</div>
<div class="user">
<a href="miCuenta.html">
<img src="img/customer01.jpg" alt="Profile Picture" id="indexProfileImg">
</a>
</div>
</div>
<div class="main-content">
<div class="candado-container"></div>
</div>
<div class="white-container">
<h1>Gestionar Cursos</h1>
</div>
<!-- ========================= Gestion Usuarios Section ==================== -->
<div class="card-container">
<div class="card-user" id="delivered-orders">
<div class="card-title">Total Cursos</div>
<div class="card-content">
<div class="card-number">150</div>
<div class="card-info">
</div>
</div>
</div>
</div>
<!-- ========================= Tabla Usuarios Section ==================== -->
<div class="table" id="users_table">
<section class="table__header">
<h1>Cursos NEORIS</h1>
<div class="input-group">
<input type="search" placeholder="Buscar cursos...">
<img src="img/table/search.png" alt="">
</div>
<!-- ========================= Agregar Curso ==================== -->
<div class="icon-container">
<ion-icon name="add-outline" class="add-icon" ></ion-icon>
</div>
</section>
<section class="table__body">
<table>
<thead>
<tr>
<th> ID <span class="icon-arrow">↑</span></th>
<th> Nombre <span class="icon-arrow">↑</span></th>
<th> Categoría <span class="icon-arrow">↑</span></th>
<th> Fecha creación <span class="icon-arrow">↑</span></th>
<th> Acción </th>
</tr>
</thead>
<tbody>
<tr>
<td> 1 </td>
<td> Html </td>
<td class="centered"> Programacion </td>
<td class="centered"> 03/10/2024 </td>
<td class="center-icon">
<ion-icon name="settings-outline" class="edit-icon" onclick="openEditModal('ID_DEL_CURSO');"></ion-icon>
</td>
</tr>
</tbody>
</section>
</div>
<div id="modalBackground" class="modal-background">
<div class="modal-content">
<span class="close">×</span>
<!-- Nombre del curso -->
<form id="addCourseForm">
<div class="form-group">
<label for="addCourseName">Nombre del curso:</label>
<input type="text" id="addCourseName" name="courseName" required>
</div>
<!-- Descripción del curso -->
<div class="form-group">
<label for="addCourseDescription">Descripción del curso:</label>
<input type="text" id="addCourseDescription" name="courseName" required>
</div>
<!-- Categoría del curso -->
<div class="form-group">
<label for="addCourseCategory">Categoría:</label>
<select id="addCourseCategory" name="courseCategory" required>
<option value="PromptEngineering">Prompt Engineering</option>
<option value="GenAI">GenAI</option>
<option value="GenAIFundamentals">GenAIFundamentals</option>
<option value="GitHubCopilot">GitHub Copilot</option>
<option value="GitHubAdvancedSecurity">GitHub Advanced Security</option>
<!-- ... más opciones ... -->
</select>
</div>
<!-- Objetivos de aprendizaje -->
<div class="form-group">
<label for="addLearningObjectives">Hipervínculo del curso:</label>
<textarea id="addLearningObjectives" name="learningObjectives" required></textarea>
</div>
<!-- Publicar/Despublicar curso -->
<div class="form-group toggle-switch">
<label for="toggleCoursePublication">Publicar Curso:</label>
<input type="checkbox" id="toggleCoursePublication" name="coursePublication" checked>
</div>
<div class="form-group">
<label for="coursePic">Imagen de Portada:</label>
<img src="/img/cursos-portada/curso1.jpg" alt="Course Picture" id="courseImgPreview">
<input type="file" id="coursePic" accept="image/*" required onchange="handleFileInput();">
</div>
<!-- Botones de acción -->
<div class="form-actions">
<button type="button" onclick="closeAddCourseModal()">Cancelar</button>
<button type="submit" >Create Course</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- =========== Scripts ========= -->
<script src="js/main.js"></script>
<script src="js/busqueda.js"></script>
<script src="js/users-table.js"></script>
<script type="module" src="/js/index.js"></script>
<script type="module" src="/js/gestionarCursos.js"></script>
<!-- ====== ionicons ======= -->
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
</body>
</html>