<commit_before><commit_msg>Avances<commit_after>{% extends '::cdominguezbase.html.twig' %}
{% set active = 'Gastos' %}
{% spaceless %}
    {% block stylesheets %}
        {{ parent() }}
        <link rel="stylesheet" href="{{ asset('bundles/mysitecdominguez/css/gastos.css') }}" media="screen" />
    {% endblock %}

    {% block javascripts %}
        {{ parent() }}
        <script type="text/javascript" src="{{ asset('bundles/baseejstreegrid/Grid/GridE.js') }}" ></script>
        <script type="text/javascript" src="{{ asset('bundles/baseejstreegrid/js/gridExtension.js') }}" ></script>
        <script type="text/javascript" src="{{ asset('bundles/mysitecdominguez/js/gastos.js') }}" ></script>
        <script type="text/javascript">
            $('#da-wrapper').css('min-width', 200);
            var _cdominguez = {
                'urls'  : {
                    'dataURL'   : '{{ path('cd_grid_data_gastos') }}',
                    'layoutURL' : '{{ path('cd_grid_layout_gastos') }}'
                }
            };
        </script> 
        {% include 'BaseEJSTreeGridBundle::createGrid.js.twig' with {
            'gridContainerId' : gridOptionsGenerator.containerId, 
            'gridOptions'     : gridOptionsGenerator.options,
            'gridId'          : gridOptionsGenerator.gridId         }
        %}
    {% endblock %}

    {% block cdBreadCrumb %}
        <li class="active">
            <span>
                <img src="{{ asset('images/icons/color/24/chart.png') }}" alt="Mis gastos" />
                Mis gastos
            </span>
        </li>
    {% endblock %}

    {% block cdContentArea %}
        <div class="grid_3">
            <div class="da-panel">
                <div class="da-panel-header">
                    <span class="da-panel-title">
                        <img src="{{ asset('images/icons/color/16/note.png') }}" >
                        Historial de mis gastos
                    </span>
                </div>
                <div class="da-panel-content with-padding">
                    <div style="text-align:center;">
                        <input type="button" onclick="filterGrid('Dia')" id="group-by-dia" class="da-tooltip-s da-button green" value="Día" original-title="Agrupar datos por día.">
                        <input type="button" onclick="filterGrid('Categoria')" id="group-by-categoria" class="da-tooltip-w da-button pink" value="Categoria" original-title="Agrupar datos por categoria.">
                    </div>
                </div>
                <div class="da-panel-content " >
                    <div id="msg"></div>
                    <div id="{{ gridOptionsGenerator.containerId }}"></div>
                </div>
                {% if dineroApartado > 0%}
                    <div class="da-panel-content with-padding">
                        <div style="text-align:center;">
                            <h6><b>¢ {{ dineroApartado }}</b> colones apartados para gastos futuros, click <a href="{{ path('cd_apartar_dinero') }}">aqui</a> para verlos.</h6>
                            <h6>Total + dinero apartado: <b>¢ {{ dineroGastado }}</b>.</h6>
                        </div>
                    </div>
                {% endif %}    
            </div>
        </div>
        <div class="grid_1">
            <div class="da-panel">
                <div class="da-panel-header">
                    <span class="da-panel-title">
                        <img src="{{ asset('images/icons/color/16/note.png') }}" >
                        Cerrar cuenta
                    </span>
                </div>
                <div class="da-panel-content " >
                    <div id="msg"></div>
                    <form class="da-form" action="{{path('cd_cerrar_cuenta')}}" id="form-cerrar-gasto" method="POST" >
                        <div class="da-form-row">
                            <label><span class="required">* </span>¿Qu&eacute; tipo de cuenta es?</label>
                            <div class="da-form-inline">
                                {#<select name="_categoria" id="_categoria" style="display: none; ">#}
                                <select name="_tipo_cuenta" id="_tipo_cuenta" >
                                    <option value="-1" >Seleccionar una opci&oacute;n</option>
                                    <option value="1" >Mes</option>
                                    <option value="2" >Quinsena</option>
                                    <option value="3" >Semana</option>
                                    <option value="4" >Dia</option>
                                    {#
                                    {% for categoria in categorias %}
                                        <option value="{{categoria.id}}" >{{categoria.descripcion}}</option>
                                    {% endfor %}
                                    #}
                                </select>
                                {#<div id="add-tipo-cuenta">
                                    <input type="text" name="add_tipo_cuenta" id="add_categoria" placeholder="Agregar nuevo tipo de lista." >
                                </div>#}
                                <label id="label_categoria" for="add_tipo_cuenta" class="error" style="display: none">Seleccione o ingrese una nueva categoria.</label>
                            </div>
                        </div>
                        <div class="da-form-row" id="browserData">
                            <input type="submit" value="Ok" class="da-button blue" style="float: right;" >
                        </div>
                    </form>
                </div>
            </div>
        </div>
    {% endblock %}
{% endspaceless %}
    
{'fraction_non_alphanumeric': 0.15033135681897453, 'fraction_numerical': 0.0036623648412975234, 'mean_word_length': 1.3436861463015939, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 99, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 11, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4044609', 'n_tokens_mistral': 1651, 'n_tokens_neox': 1534, 'n_words': 275}