<commit_before>{% extends 'cvn/base.html' %}

{% load i18n %}
{% load l10n %}
{% load staticfiles %}

{% block breadcrumb %}
    <li><a href='{% url 'export_data_ull' %}'>{% trans "Exportar datos ULL" %}</a></li>
{% endblock breadcrumb %}

{% block main %}
	<h1 class="page-header">{% trans "Exportar mis datos de la Universidad de La Laguna" %}</h1>

    <div class="section">
        <ul class="nav nav-tabs header">
            <li class="active">{% trans 'Exportar' %}</li>
        </ul>
        <div class="content">
            <div class="alert alert-info">
                {% trans "Seleccione la opción que desee para obtener los datos sobre las titulaciones y cargos almacenados en la Universidad de la Laguna." %}
                {% trans "El PDF que obtendrá debe almacenarlo e importarlo en el editor de la FECYT." %}
            </div>
            <br>
            <div class="row">
                <div class="col-md-4">
                    <button type="button" onclick="$('#all_years').click()" class="btn btn-primary btn-block btn-ms">
                        {% trans "Todos los años" %}
                    </button>
                </div>
                <div class="col-md-4">
                    <button type="button" class="btn btn-primary btn-block btn-ms" data-toggle="modal" data-target="#selectYears">
                        {% trans "Seleccionar un año" %}
                    </button>
                </div>
                <div class="col-md-4">
                    <button type="button" class="btn btn-primary btn-block btn-ms" data-toggle="modal" data-target="#rangeYears">
                        {% trans "Seleccionar un periodo" %}
                    </button>
                </div>
            </div>
        </div>
    </div>

    {% if form.errors %}
        <div class="alert alert-danger">
            {% for field in form %}
                {{ field.error }}
            {%  endfor %}
            {% if form.non_field_errors %}
                {{ form.non_field_errors }}
            {% endif %}
        </div>
        <br>
    {%  endif %}

    <form action="" method='post'
        {% if form.is_multipart %}
            enctype="multipart/form-data"
        {% endif %}>{% csrf_token %}
        <input id="all_years" style="display:none;" type="Submit" name="all_years" />
    </form>

    <form action="" method='post' target="_blank">{% csrf_token %}
        <!-- Modal: select a single year -->
        <div class="modal fade" id="selectYears" tabindex="-1" role="dialog" aria-labelledby="selectYearsLabel" aria-hidden="true"><commit_msg>Display errors of get user PDF with data ULL<commit_after>{% extends 'cvn/base.html' %}

{% load i18n %}
{% load l10n %}
{% load staticfiles %}

{% block breadcrumb %}
    <li><a href='{% url 'export_data_ull' %}'>{% trans "Exportar datos ULL" %}</a></li>
{% endblock breadcrumb %}

{% block main %}
	<h1 class="page-header">{% trans "Exportar mis datos de la Universidad de La Laguna" %}</h1>

    <div class="section">
        <ul class="nav nav-tabs header">
            <li class="active">{% trans 'Exportar' %}</li>
        </ul>
        <div class="content">
            <div class="alert alert-info">
                {% trans "Seleccione la opción que desee para obtener los datos sobre las titulaciones y cargos almacenados en la Universidad de la Laguna." %}
                {% trans "El PDF que obtendrá debe almacenarlo e importarlo en el editor de la FECYT." %}
            </div>
            <br>
            <div class="well">
                {% if form.errors %}
                    <div class="alert alert-danger">
                        {% for field in form %}
                            {{ field.error }}
                        {%  endfor %}
                        {% if form.non_field_errors %}
                            {{ form.non_field_errors }}
                        {% endif %}
                    </div>
                    <br>
                {% endif %}
                <div class="row">
                    <div class="col-md-4">
                        <button type="button" onclick="$('#all_years').click()" class="btn btn-primary btn-block btn-ms">
                            {% trans "Todos los años" %}
                        </button>
                    </div>
                    <div class="col-md-4">
                        <button type="button" class="btn btn-primary btn-block btn-ms" data-toggle="modal" data-target="#selectYears">
                            {% trans "Seleccionar un año" %}
                        </button>
                    </div>
                    <div class="col-md-4">
                        <button type="button" class="btn btn-primary btn-block btn-ms" data-toggle="modal" data-target="#rangeYears">
                            {% trans "Seleccionar un periodo" %}
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <form action="" method='post'
        {% if form.is_multipart %}
            enctype="multipart/form-data"
        {% endif %}>{% csrf_token %}
        <input id="all_years" style="display:none;" type="Submit" name="all_years" />
    </form>

    <form action="" method='post' target="_blank">{% csrf_token %}
        <!-- Modal: select a single year -->
        <div class="modal fade" id="selectYears" tabindex="-1" role="dialog" aria-labelledby="selectYearsLabel" aria-hidden="true">
{'fraction_non_alphanumeric': 0.15021066129327715, 'fraction_numerical': 0.0036636746656896865, 'mean_word_length': 1.618705035971223, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1538776', 'n_tokens_mistral': 1671, 'n_tokens_neox': 1513, 'n_words': 400}