<commit_before>{% load staticfiles %}
{% load bootstrap3 %}
<div class="row background_hexagon_header">
    <div class="container ">
        <div class="row ">
            <div class="col-md-12">
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="container">
        <div class="row">
            <div class="col-md-7">
                <img src="{% static 'ghosttown/img/Home-Logo.svg' %}" style="margin-top: -73px;margin-bottom: 40px;">
            </div>
            <div class="col-md-5">
            </div>
        </div>
        <div class="row">
            <div class="col-md-6">
                <div class="row">
                    <div class="col-md-7 col-md-offset-3 home-help-title">
                        obtén tu ciudadanía
                    </div>
                </div>
                <img src="{% static 'ghosttown/img/Home-Form-IDband.svg' %}">
                <div class="row">
                    <div class="col-md-7 col-md-offset-3 home-help-text">
                        Nosotros, los ciudadanos de
                        la República de los
                        fantasmas,
                        en búsqueda de la libertad,
                        constituimos una República
                        donde las fronteras no
                        existen,
                        donde las nacionalidades no
                        se imponen, se construyan,
                        Un lugar donde todos los
                        ciudadanos pudeiéramos
                        participar y crear,
                        Un lugar donde desaparecer
                        es existir.
                    </div>
                </div>

            </div>
<!--HOME REGISTER CARD-->
            <form id="registerForm" method="post" enctype='multipart/form-data' action="{% url 'index' %}" class="form">
                {% csrf_token %}
                {{ user_profile_form.form_name }}
                <div class="col-md-6">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="row home-form-card">
                                <div class="col-md-12 home-form-card-title ">
                                    republica de los fantasmas
                                </div>
                                <img src="{% static 'ghosttown/img/Home-Form-DecorativeTab.svg' %}" style="width: 580px;padding-right: 20px;padding-left: 20px;">
                                <div class="col-md-12 home-form-card-sub-title">
                                    identificación personal
                                </div>
                                <div class="col-md-12 home-form-card-band">
                                    ciudadania virtual numero: <span id="id_citizen">{{ user_name }}</span>
                                </div>
                                <div class="col-md-9 home-form-card-form">
                                    {% comment %}{{ user_profile_form }}{% endcomment %}
                                    <div class="row push-down-10">
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.first_names.errors.as_text }}" for="id_first_names">Nombres:</label>
                                            {% if user.is_authenticated %}
                                                {{ user_profile_form.instance.first_name }}
                                            {% else %}
                                                {{ user_profile_form.first_names }}
                                            {% endif %}
                                            <hr>
                                        </div>
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.last_names.errors.as_text }}" for="id_last_names">Apellidos:</label>
                                            {% if user.is_authenticated %}
                                                {{ user_profile_form.instance.last_name }}
                                            {% else %}
                                                {{ user_profile_form.last_names }}
                                            {% endif %}
                                            <hr>
                                        </div>
                                    </div>
                                    {% if not user.is_authenticated %}
                                    <div class="row push-down-10">
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.password1.errors.as_text }}" for="id_password1">Contraseña:</label>
                                            {{ user_profile_form.password1 }}
                                            <hr>
                                        </div>
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.password2.errors.as_text }}" for="id_password2">Confirmar:</label>
                                            {{ user_profile_form.password2 }}
                                            <hr>
                                        </div>
                                    </div>
                                    {% endif %}
                                    <div class="row push-down-10">
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.birth_date.errors.as_text }}" for="id_birth_date">Cumpleaños:</label>
                                            {% if user.is_authenticated %}
                                                {{ user_profile_form.instance.birth_date }}
                                            {% else %}
                                                {{ user_profile_form.birth_date }}
                                            {% endif %}
                                            <hr>
                                        </div>
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.gender.errors.as_text }}" for="id_gender">Genero:</label>
                                            {% if user.is_authenticated %}
                                                {{ user_profile_form.instance.gender_unicode }}
                                            {% else %}
                                                {{ user_profile_form.gender }}
                                            {% endif %}
                                            <hr>
                                        </div>
                                    </div>
                                    <div class="row push-down-10">
                                        <div class="col-md-12">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.email.errors.as_text }}" for="id_email">E-Mail:</label>
                                            {% if user.is_authenticated %}
                                                {{ user_profile_form.instance.email }}
                                            {% else %}
                                                {{ user_profile_form.email }}
                                            {% endif %}
                                            <hr>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-3 home-form-card-form">
                                    <label id="label_avatar" data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.avatar.errors.as_text }}" for="id_avatar">avatar:</label>
                                    {% if user.is_authenticated %}
                                        <img id="imagePreview" src="{{ user_profile_form.instance.avatar.url }}">
                                    {% else %}
                                        <div id="imagePreview"></div>
                                        {{ user_profile_form.avatar }}
                                    {% endif %}
                                </div>

                            </div>
                        </div>
                    </div>
                    <div class="row push-down-30">
                        {% if not user.is_authenticated %}
                            <button id="btn-im-citizen" type="button" data-toggle="modal" data-target="#reg-modal" class="">YA SOY CIUDADANO</button>
                            <!-- Modal -->
                            <button id="btn-send-my-request" type="submit" class="">ENVIAR MI SOLICITUD</button>
                        {% else %}
                            <a href="{% url 'logout' %}"><button id="btn-send-my-request" type="button" class="">SALIR</button></a>
                        {% endif %}
                    </div>
                </div>
            </form>
            <div class="modal fade" id="reg-modal" tabindex="-1" role="dialog" aria-labelledby="regModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title" id="regModalLabel">Modal title</h4>
                        </div>
                        <div class="modal-body">
                            <form id="login-form"  method="post" action="{% url 'index' %}"  class="form">
                                {% csrf_token %}
                                {{ login_form }}
                                <button id="btn-send-my-request" type="submit" class="">INGRESAR</button>
                            </form>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                            <button type="button" class="btn btn-primary">Save changes</button>
                        </div>
                    </div>
                </div>
            </div>
<!--end home register card-->
        </div>
    </div>
</div>
<div class="row push-down-90">
    <div class="col-md-12">
        <div id="map"></div>
    </div>
</div>
<div class="row home-constructions-title">
    <div class="container">
        <div class="row ">
            <div class="col-md-6">
                <img src="{% static 'ghosttown/img/Seccion2-Title-construcciones.svg' %}" style="margin-top: 45px;margin-bottom: 45px;">
            </div><commit_msg>login bonito y con manejo de errores<commit_after>{% load staticfiles %}
{% load bootstrap3 %}
<div class="row background_hexagon_header">
    <div class="container ">
        <div class="row ">
            <div class="col-md-12">
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="container">
        <div class="row">
            <div class="col-md-7">
                <img src="{% static 'ghosttown/img/Home-Logo.svg' %}" style="margin-top: -73px;margin-bottom: 40px;">
            </div>
            <div class="col-md-5">
            </div>
        </div>
        <div class="row">
            <div class="col-md-6">
                <div class="row">
                    <div class="col-md-7 col-md-offset-3 home-help-title">
                        obtén tu ciudadanía
                    </div>
                </div>
                <img src="{% static 'ghosttown/img/Home-Form-IDband.svg' %}">
                <div class="row">
                    <div class="col-md-7 col-md-offset-3 home-help-text">
                        Nosotros, los ciudadanos de
                        la República de los
                        fantasmas,
                        en búsqueda de la libertad,
                        constituimos una República
                        donde las fronteras no
                        existen,
                        donde las nacionalidades no
                        se imponen, se construyan,
                        Un lugar donde todos los
                        ciudadanos pudeiéramos
                        participar y crear,
                        Un lugar donde desaparecer
                        es existir.
                    </div>
                </div>

            </div>
<!--HOME REGISTER CARD-->
            <form id="registerForm" method="post" enctype='multipart/form-data' action="{% url 'index' %}" class="form">
                {% csrf_token %}
                {{ user_profile_form.form_name }}
                <div class="col-md-6">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="row home-form-card">
                                <div class="col-md-12 home-form-card-title ">
                                    republica de los fantasmas
                                </div>
                                <img src="{% static 'ghosttown/img/Home-Form-DecorativeTab.svg' %}" style="width: 580px;padding-right: 20px;padding-left: 20px;">
                                <div class="col-md-12 home-form-card-sub-title">
                                    identificación personal
                                </div>
                                <div class="col-md-12 home-form-card-band">
                                    ciudadania virtual numero: <span id="id_citizen">{{ user_name }}</span>
                                </div>
                                <div class="col-md-9 home-form-card-form">
                                    {% comment %}{{ user_profile_form }}{% endcomment %}
                                    <div class="row push-down-10">
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.first_names.errors.as_text }}" for="id_first_names">Nombres:</label>
                                            {% if user.is_authenticated %}
                                                {{ user_profile_form.instance.first_name }}
                                            {% else %}
                                                {{ user_profile_form.first_names }}
                                            {% endif %}
                                            <hr>
                                        </div>
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.last_names.errors.as_text }}" for="id_last_names">Apellidos:</label>
                                            {% if user.is_authenticated %}
                                                {{ user_profile_form.instance.last_name }}
                                            {% else %}
                                                {{ user_profile_form.last_names }}
                                            {% endif %}
                                            <hr>
                                        </div>
                                    </div>
                                    {% if not user.is_authenticated %}
                                    <div class="row push-down-10">
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.password1.errors.as_text }}" for="id_password1">Contraseña:</label>
                                            {{ user_profile_form.password1 }}
                                            <hr>
                                        </div>
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.password2.errors.as_text }}" for="id_password2">Confirmar:</label>
                                            {{ user_profile_form.password2 }}
                                            <hr>
                                        </div>
                                    </div>
                                    {% endif %}
                                    <div class="row push-down-10">
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.birth_date.errors.as_text }}" for="id_birth_date">Cumpleaños:</label>
                                            {% if user.is_authenticated %}
                                                {{ user_profile_form.instance.birth_date }}
                                            {% else %}
                                                {{ user_profile_form.birth_date }}
                                            {% endif %}
                                            <hr>
                                        </div>
                                        <div class="col-md-6">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.gender.errors.as_text }}" for="id_gender">Genero:</label>
                                            {% if user.is_authenticated %}
                                                {{ user_profile_form.instance.gender_unicode }}
                                            {% else %}
                                                {{ user_profile_form.gender }}
                                            {% endif %}
                                            <hr>
                                        </div>
                                    </div>
                                    <div class="row push-down-10">
                                        <div class="col-md-12">
                                            <label data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.email.errors.as_text }}" for="id_email">E-Mail:</label>
                                            {% if user.is_authenticated %}
                                                {{ user_profile_form.instance.email }}
                                            {% else %}
                                                {{ user_profile_form.email }}
                                            {% endif %}
                                            <hr>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-3 home-form-card-form">
                                    <label id="label_avatar" data-toggle="tooltip" data-placement="top" title="{{ user_profile_form.avatar.errors.as_text }}" for="id_avatar">avatar:</label>
                                    {% if user.is_authenticated %}
                                        <img id="imagePreview" src="{{ user_profile_form.instance.avatar.url }}">
                                    {% else %}
                                        <div id="imagePreview"></div>
                                        {{ user_profile_form.avatar }}
                                    {% endif %}
                                </div>

                            </div>
                        </div>
                    </div>
                    <div class="row push-down-30">
                        {% if not user.is_authenticated %}
                            <button id="btn-im-citizen" type="button" data-toggle="modal" data-target="#reg-modal" class="">YA SOY CIUDADANO</button>
                            <!-- Modal -->
                            <button id="btn-send-my-request" type="submit" class="">ENVIAR MI SOLICITUD</button>
                        {% else %}
                            <a href="{% url 'logout' %}"><button id="btn-send-my-request" type="button" class="">SALIR</button></a>
                        {% endif %}
                    </div>
                </div>
            </form>
            <div class="modal fade" id="reg-modal" tabindex="-1" role="dialog" aria-labelledby="regModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-body home-form-card-form home-form-card">
                            <form id="login-form"  method="post" action="{% url 'index' %}"  class="form">
                                <div class="row">
                                    {% csrf_token %}
                                    {{ login_form.form_name }}
                                    <div class="col-md-12 home-form-card-title ">
                                        republica de los fantasmas
                                    </div>
                                    <img src="{% static 'ghosttown/img/Home-Form-DecorativeTab.svg' %}" style="width: 580px;padding-right: 20px;padding-left: 20px; margin-bottom: 35px;">
                                    <div class="col-md-12">
                                        {% if login_form.errors %}
                                            {{ login_form.errors.as_text }}
                                        {% endif %}
                                    </div>
                                    <div class="col-md-6">
                                        <label data-toggle="tooltip" data-placement="top" title="{{ login_form.username.errors.as_text }}" for="id_username">Id de Ciudadano:</label>
                                        {{ login_form.username }}
                                    </div>
                                    <div class="col-md-6">
                                        <label data-toggle="tooltip" data-placement="top" title="{{ login_form.password.errors.as_text }}" for="id_password">Contraseña:</label>
                                        {{ login_form.password }}
                                    </div>
                                    <div class="col-md-12" style="text-align: center;margin-top: 10px;">
                                        <label data-toggle="tooltip" data-placement="top" title="{{ login_form.remember_me.errors.as_text }}" for="id_password">Recuerdame:</label>
                                        {{ login_form.remember_me }}
                                    </div>
                                </div>
                                <div class="row" style="margin-top: 10px;">
                                    <div class="col-md-12">
                                        <button id="btn-send-my-request" type="submit" class="">INGRESAR</button>
                                    </div>
                                </div>
                                {% if login_form.errors %}
                                    <script type="text/javascript">
                                        $(window).load(function(){
                                            $('#reg-modal').modal('show');
                                            $('label').tooltip('show')
                                        });
                                    </script>
                                {% endif %}
                            </form>
                        </div>
                    </div>
                </div>
            </div>
<!--end home register card-->
        </div>
    </div>
</div>
<div class="row push-down-90">
    <div class="col-md-12">
        <div id="map"></div>
    </div>
</div>
<div class="row home-constructions-title">
    <div class="container">
        <div class="row ">
            <div class="col-md-6">
                <img src="{% static 'ghosttown/img/Seccion2-Title-construcciones.svg' %}" style="margin-top: 45px;margin-bottom: 45px;">
            </div>
{'fraction_non_alphanumeric': 0.11426371042924892, 'fraction_numerical': 0.006444813748935998, 'mean_word_length': 0.8335315101070154, 'pattern_counts': {'":': 0, '<': 322, '<?xml version=': 0, '>': 322, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 313, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3020884', 'n_tokens_mistral': 5566, 'n_tokens_neox': 5115, 'n_words': 953}