aboutsummaryrefslogtreecommitdiff
path: root/ustayml/templates
diff options
context:
space:
mode:
authorMitsuo Tokumori <rtokumori@pucp.edu.pe>2023-11-13 12:42:36 -0500
committerMitsuo Tokumori <rtokumori@pucp.edu.pe>2023-11-13 12:42:36 -0500
commit5e4487a99f357c08662ed5dabd0c7f21664c15eb (patch)
tree3ece23ed5e17cd814d4aafad3defc73b4e204240 /ustayml/templates
parent5a16046eddc753b752c5ab1fdb91595adf588a6b (diff)
Add site index and sample dashboard BP
Diffstat (limited to 'ustayml/templates')
-rw-r--r--ustayml/templates/auth/login.html8
-rw-r--r--ustayml/templates/auth/register.html10
-rw-r--r--ustayml/templates/base.html2
-rw-r--r--ustayml/templates/dashboard/index.html51
-rw-r--r--ustayml/templates/index.html15
-rw-r--r--ustayml/templates/load_data/index.html9
-rw-r--r--ustayml/templates/load_data/success.html2
7 files changed, 82 insertions, 15 deletions
diff --git a/ustayml/templates/auth/login.html b/ustayml/templates/auth/login.html
index 45acd7f..9560ba5 100644
--- a/ustayml/templates/auth/login.html
+++ b/ustayml/templates/auth/login.html
@@ -1,15 +1,15 @@
{% extends 'base.html' %}
{% block header %}
- <h1>{% block title %}Log In{% endblock %}</h1>
+ <h1>{% block title %}Ingresar{% endblock %}</h1>
{% endblock %}
{% block content %}
<form class="simple-form" method="post">
- <label for="username">Username</label>
+ <label for="username">Usuario</label>
<input name="username" id="username" required>
- <label for="password">Password</label>
+ <label for="password">Contraseña</label>
<input type="password" name="password" id="password" required>
- <input type="submit" value="Log In">
+ <input type="submit" value="Ingresar">
</form>
{% endblock %} \ No newline at end of file
diff --git a/ustayml/templates/auth/register.html b/ustayml/templates/auth/register.html
index a3c73cc..ef1264d 100644
--- a/ustayml/templates/auth/register.html
+++ b/ustayml/templates/auth/register.html
@@ -1,15 +1,15 @@
{% extends 'base.html' %}
{% block header %}
- <h1>{% block title %}Register{% endblock %}</h1>
+ <h1>{% block title %}Registrarse{% endblock %}</h1>
{% endblock %}
{% block content %}
- <form method="post">
- <label for="username">Username</label>
+ <form class="simple-form" method="post">
+ <label for="username">Usuario</label>
<input name="username" id="username" required>
- <label for="password">Password</label>
+ <label for="password">Contraseña</label>
<input type="password" name="password" id="password" required>
- <input type="submit" value="Register">
+ <input type="submit" value="Registerse">
</form>
{% endblock %} \ No newline at end of file
diff --git a/ustayml/templates/base.html b/ustayml/templates/base.html
index eefbc06..580249a 100644
--- a/ustayml/templates/base.html
+++ b/ustayml/templates/base.html
@@ -5,7 +5,7 @@
<nav>
<h1><a href="{{ url_for('index') }}">u-stayML</a></h1>
<ul>
- <li><a href="#">Dashboard</a></li>
+ <li><a href="{{ url_for('dashboard.index') }}">Dashboard</a></li>
<li><a href="{{ url_for('students.index') }}">Estudiantes</a></li>
<li><a href="#">Historial</a> </li>
<li><a href="{{ url_for('load_data.index') }}">Cargar datos</a> </li>
diff --git a/ustayml/templates/dashboard/index.html b/ustayml/templates/dashboard/index.html
new file mode 100644
index 0000000..3117ec2
--- /dev/null
+++ b/ustayml/templates/dashboard/index.html
@@ -0,0 +1,51 @@
+{% extends 'base.html' %}
+
+
+{% block header %}
+ <h1>{% block title %}Dashboard{% endblock %}</h1>
+{% endblock %}
+
+{% block content %}
+ <div class="filter-criteria">
+ <form class="filters" method="get">
+ <fieldset class="filters-list">
+ <div>
+ <label for="pucp_unit">Unidad:</label>
+ <select name="pucp_unit" id="pucp_unit">
+ <option value="0">Mostrar todas</option>
+ {% for e in pucp_unit %}
+ <option value="{{e['id']}}" {% if e['id'] == fc['pucp_unit'] %} selected {% endif %}>{{ e['name'] }}</option>
+ {% endfor %}
+ </select>
+ </div>
+ <div>
+ <label for="semester">Semestre: </label>
+ <select name="semester" id="semester">
+ <option value="0">Mostrar todos</option>
+ {% for e in semester %}
+ <option value="{{e['id']}}" {% if e['id'] == fc['semester'] %} selected {% endif %}>{{ e['name'] }}</option>
+ {% endfor %}
+ </select>
+ </div>
+ <div>
+ <label for="desertion_risk_class">Riesgo deserción: </label>
+ <select name="desertion_risk_class" id="desertion_risk_class">
+ <option value="0">Mostrar todos</option>
+ {% for e in desertion_risk_class %}
+ <option value="{{e['id']}}" {% if e['id'] == fc['desertion_risk_class'] %} selected {% endif %}>{{ e['name'] }}</option>
+ {% endfor %}
+ </select>
+ </div>
+ <div>
+ <label></label>
+ <input type="submit" value="Aplicar filtros">
+ </div>
+ </fieldset>
+ </form>
+ </div>
+ <div class="dashboard-graphics">
+ <div class="chart">
+ <img src="{{ url_for('static', filename='img/sample-bar_chart.png') }}">
+ </div>
+ </div>
+{% endblock %} \ No newline at end of file
diff --git a/ustayml/templates/index.html b/ustayml/templates/index.html
new file mode 100644
index 0000000..b781a2c
--- /dev/null
+++ b/ustayml/templates/index.html
@@ -0,0 +1,15 @@
+{% extends 'base.html' %}
+
+
+{% block header %}
+ <h1>{% block title %}u-stayML{% endblock %}</h1>
+{% endblock %}
+
+{% block content %}
+ <p>“u-stayML” es un sistema de información de predicción de deserción
+ estudiantil universitaria, permite identificar los principales factores de
+ deserción estudiantil universitaria, y facilitar a los asesores académicos en
+ su tarea de ayudar a los estudiantes en riesgo de una manera más practiva y
+ ágil.</p>
+ <p>Por favor, seleccione un link de la parte superior para comenzar.</p>
+{% endblock %}
diff --git a/ustayml/templates/load_data/index.html b/ustayml/templates/load_data/index.html
index 3400de3..fb5088e 100644
--- a/ustayml/templates/load_data/index.html
+++ b/ustayml/templates/load_data/index.html
@@ -23,7 +23,7 @@
<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>
+ <li>Debe existir la variable <code>Target</code></li>
</ul>
</div>
</div>
@@ -51,10 +51,11 @@
<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>
+ <label for="dataset-label">Etiqueta*: </label>
+ <input name="dataset-label" id="dataset-label" required
+ placeholder="2023-1 EEGGCC FCI">
<p></p>
- <label for="dataset-date">Fecha del conjunto de datos: </label>
+ <label for="dataset-date">Fecha del conjunto de datos*: </label>
<input name="dataset-date" id="dataset-date" required type="date">
<div></div>
diff --git a/ustayml/templates/load_data/success.html b/ustayml/templates/load_data/success.html
index 442ef74..956c186 100644
--- a/ustayml/templates/load_data/success.html
+++ b/ustayml/templates/load_data/success.html
@@ -12,5 +12,5 @@
de riesgo de deserción.</p>
<p>Podrá validar que el procesamiento terminó verificando la fecha del
reporte.</p>
- <a href="{{ url_for('index') }}">Regresar al dashboard</a>
+ <a href="{{ url_for('dashboard.index') }}">Regresar al dashboard</a>
{% endblock %} \ No newline at end of file