aboutsummaryrefslogtreecommitdiff
path: root/ustayml/templates/dashboard/index.html
blob: 3117ec2794962a7345c8346da4a6f53f919b3eff (plain)
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
{% 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 %}