<commit_before>{% extends 'LoginCidadaoCoreBundle::base.html.twig' %}

{% block body %}
    {% set form1 = lc_getForm() %}
    {% set form = lc_getFormFactory() %}


    <div class="row lc-main-title">
        <div class="col-12 text-center">
            <h1>{% trans %}Citizen's Login{% endtrans %}</h1>
            <h2 class="hidden-xs">{% trans %}One account. The entire Government.{% endtrans %}</h2>
        </div>
    </div>


    <div class="container lc-box-group">

        <div class="row">
            <div class="col-md-5">
                <div class="box box-register">
                    {{ include('LoginCidadaoCoreBundle::common.register.html.twig') }}
                </div>
            </div>

            <div class="col-md-2"></div>

            <div class="col-md-5">
                <div class="box">
                    {{ include('LoginCidadaoCoreBundle::common.login.html.twig') }}
                </div>
            </div>
        </div>

        {% if third_party_login is not empty %}
            <div class="row">
                <div class="col-md-12 text-center">
                    <div class="box connect-box lc-box clearfix">
                        <h3>{% trans %}Use accounts from other services{% endtrans %}</h3>
                        <p>{% trans %}If you prefer, it's possible to use other services to login or create your account.{% endtrans %}</p>
                        <div class="row">
                            {% if third_party_login.facebook | default(false) %}
                                <div class="col-md-4 text-center"><a class="connect facebook" data-href="{{ path("lc_link_facebook") }}">Facebook</a></div>
                            {% endif %}
                            {% if third_party_login.twitter | default(false) %}
                                <div class="col-md-4 text-center"><a class="connect twitter" href="{{ path('hwi_oauth_service_redirect', {'service': 'twitter'}) }}">Twitter</a></div>
                            {% endif %}
                            {% if third_party_login.google | default(false) %}
                                <div class="col-md-4 text-center"><a class="connect google" href="{{ path('hwi_oauth_service_redirect', {'service': 'google'}) }}">Google</a></div>
                            {% endif %}
                        </div>
                    </div>
                </div>
            </div>
        {% endif %}
    </div>


{% endblock %}

{% block stylesheets_custom %}
    {% stylesheets '@lc_base_css' 'bundles/logincidadaocore/css/home/*.css' filter='cssrewrite' filter='?uglifycss' %}
    <link rel="stylesheet" href="{{ asset_url }}" />
    {% endstylesheets %}
{% endblock %}<commit_msg>refactored index to use twig's embed<commit_after>{% extends 'LoginCidadaoCoreBundle::base.html.twig' %}

{% block body %}
    {% set form1 = lc_getForm() %}
    {% set form = lc_getFormFactory() %}

    <div class="row lc-main-title">
        <div class="col-12 text-center">
            <h1>{% trans %}Citizen's Login{% endtrans %}</h1>
            <h2 class="hidden-xs">{% trans %}One account. The entire Government.{% endtrans %}</h2>
        </div>
    </div>

    <div class="container lc-box-group">

        {% embed "LoginCidadaoCoreBundle:Default:login_register.html.twig" %}
            {% block left %}
                <div class="box box-register">
                    {{ include('LoginCidadaoCoreBundle::common.register.html.twig') }}
                </div>
            {% endblock %}

            {% block right %}
                <div class="box">
                    {{ include('LoginCidadaoCoreBundle::common.login.html.twig') }}
                </div>
            {% endblock %}
        {% endembed %}

        {% if third_party_login is not empty %}
            <div class="row">
                <div class="col-md-12 text-center">
                    <div class="box connect-box lc-box clearfix">
                        <h3>{% trans %}Use accounts from other services{% endtrans %}</h3>
                        <p>{% trans %}If you prefer, it's possible to use other services to login or create your account.{% endtrans %}</p>
                        <div class="row">
                            {% if third_party_login.facebook | default(false) %}
                                <div class="col-md-4 text-center"><a class="connect facebook" data-href="{{ path("lc_link_facebook") }}">Facebook</a></div>
                            {% endif %}
                            {% if third_party_login.twitter | default(false) %}
                                <div class="col-md-4 text-center"><a class="connect twitter" href="{{ path('hwi_oauth_service_redirect', {'service': 'twitter'}) }}">Twitter</a></div>
                            {% endif %}
                            {% if third_party_login.google | default(false) %}
                                <div class="col-md-4 text-center"><a class="connect google" href="{{ path('hwi_oauth_service_redirect', {'service': 'google'}) }}">Google</a></div>
                            {% endif %}
                        </div>
                    </div>
                </div>
            </div>
        {% endif %}
    </div>
{% endblock %}

{% block stylesheets_custom %}
    {% stylesheets '@lc_base_css' 'bundles/logincidadaocore/css/home/*.css' filter='cssrewrite' filter='?uglifycss' %}
    <link rel="stylesheet" href="{{ asset_url }}" />
    {% endstylesheets %}
{% endblock %}
{'fraction_non_alphanumeric': 0.16051862673484296, 'fraction_numerical': 0.005661066471877283, 'mean_word_length': 1.702022693635915, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6816703', 'n_tokens_mistral': 1676, 'n_tokens_neox': 1498, 'n_words': 329}