diff options
| author | Mitsuo Tokumori <rtokumori@pucp.edu.pe> | 2023-11-13 12:42:36 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <rtokumori@pucp.edu.pe> | 2023-11-13 12:42:36 -0500 |
| commit | 5e4487a99f357c08662ed5dabd0c7f21664c15eb (patch) | |
| tree | 3ece23ed5e17cd814d4aafad3defc73b4e204240 /ustayml/templates/dashboard | |
| parent | 5a16046eddc753b752c5ab1fdb91595adf588a6b (diff) | |
Add site index and sample dashboard BP
Diffstat (limited to 'ustayml/templates/dashboard')
| -rw-r--r-- | ustayml/templates/dashboard/index.html | 51 |
1 files changed, 51 insertions, 0 deletions
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 |
