aboutsummaryrefslogtreecommitdiff
path: root/ustayml/templates/load_data/index.html
diff options
context:
space:
mode:
authorMitsuo Tokumori <rtokumori@pucp.edu.pe>2023-11-13 10:55:39 -0500
committerMitsuo Tokumori <rtokumori@pucp.edu.pe>2023-11-13 10:55:39 -0500
commit5a16046eddc753b752c5ab1fdb91595adf588a6b (patch)
tree870192e1f576754c6fd669cd4e3dad6f70a7caf7 /ustayml/templates/load_data/index.html
parentf6fcf9cc3ae3d93d59391b3f12843fba3297f0b2 (diff)
Add sample file upload for "load_data" blueprint
Also add a success page that redirects to the Dashboard
Diffstat (limited to 'ustayml/templates/load_data/index.html')
-rw-r--r--ustayml/templates/load_data/index.html71
1 files changed, 71 insertions, 0 deletions
diff --git a/ustayml/templates/load_data/index.html b/ustayml/templates/load_data/index.html
new file mode 100644
index 0000000..3400de3
--- /dev/null
+++ b/ustayml/templates/load_data/index.html
@@ -0,0 +1,71 @@
+{% extends 'base.html' %}
+
+
+{% block header %}
+ <h1>{% block title %}Cargar datos{% endblock %}</h1>
+{% endblock %}
+
+{% block content %}
+ <span>Siga los siguientes pasos para actualizar los datos (dataset) sobre el
+ cual se desarrollarán las posteriores predicciones de riesgo de deserción
+ estudiantil.</span>
+ <form method=post enctype=multipart/form-data>
+ <div class="load-data-step">
+ <h2>1. Diccionario de Variables</h2>
+ <div class="flex-container-horizontal">
+ <div class="left">
+ <p>El diccionario de variables lista información sobre las variables del dataset.</p>
+ <input type=file name=diccionario>
+ {# <input type=submit value="Subir"> #}
+ <p></p>
+ </div>
+ <div class="right">
+ <ul class="data-validation-list">
+ <li>Tipo de archivo debe ser CSV</li>
+ <li>Tamaño debe ser &lt;1 MiB</li>
+ <li>Debe existir la variable "target"</li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ <div class="load-data-step">
+ <h2>2. Dataset</h2>
+ <div class="flex-container-horizontal">
+ <div class="left">
+ <p>El diccionario de variables lista información sobre las variables del dataset.</p>
+ <input type=file name=dataset>
+ {# <input type=submit value="Subir"> #}
+ <p></p>
+ </div>
+ <div class="right">
+ <ul class="data-validation-list">
+ <li>Tipo de archivo debe ser CSV</li>
+ <li>Tamaño debe ser &lt;2 GiB</li>
+ <li>Las variables deben coincidir con el diccionario de variables</li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ <div class="load-data-step">
+ <h2>3. Añadir identificadores y guardar</h2>
+ <div class="flex-container-horizontal">
+ <div class="left">
+ <p>El diccionario de variables lista información sobre las variables del dataset.</p>
+ <label for="dataset-label">Etiqueta: </label>
+ <input name="dataset-label" id="dataset-label" required>
+ <p></p>
+ <label for="dataset-date">Fecha del conjunto de datos: </label>
+ <input name="dataset-date" id="dataset-date" required type="date">
+
+ <div></div>
+ <p></p>
+ <input type="submit" value="💾 Guardar">
+ <p></p>
+ </div>
+ <div class="right">
+ <p>(*) Campos Obligatorios</p>
+ </div>
+ </div>
+ </div>
+ </form>
+{% endblock %} \ No newline at end of file