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

{% block title %}Fornecedores{% endblock %}
{% block description %}{% endblock %}
{% block menu_suppliers %} active {% endblock %}

{% block page_plugins %}
    <link href="{{ asset('assets/global/plugins/datatables/datatables.min.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css') }}" rel="stylesheet" type="text/css" />
{% endblock %}

{% block page %}
    <div class="page-wrapper-row full-height">
        <div class="page-wrapper-middle">
            <!-- BEGIN CONTAINER -->
            <div class="page-container">
                <!-- BEGIN CONTENT -->
                <div class="page-content-wrapper">
                    <!-- BEGIN CONTENT BODY -->
                    <!-- BEGIN PAGE HEAD-->
                    <div class="page-head">
                        <div class="container">
                            <!-- BEGIN PAGE TITLE -->
                            <div class="page-title">
                                <h1>Fornecedores
                                    <small>Tabela de fornecedores cadastrados</small>
                                </h1>
                            </div>
                            <!-- END PAGE TITLE -->
                        </div>
                    </div>
                    <!-- END PAGE HEAD-->
                    <!-- BEGIN PAGE CONTENT BODY -->
                    <div class="page-content">
                        <div class="container">
                            {% include '_partial/flashMessages.html.twig' %}
                            <!-- BEGIN PAGE BREADCRUMBS -->
                            <ul class="page-breadcrumb breadcrumb">
                                <li>
                                    <a href="{{ path('dashboard') }}">Painel Inicial</a>
                                    <i class="fa fa-circle"></i>
                                </li>
                                <li>
                                    <a href="#">Fornecedores</a>
                                    <i class="fa fa-circle"></i>
                                </li>
                                <li>
                                    <span>Tabela</span>
                                </li>
                            </ul>
                            <!-- END PAGE BREADCRUMBS -->
                            <!-- BEGIN PAGE CONTENT INNER -->
                            <div class="page-content-inner">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="portlet light ">
                                            <div class="portlet-title">
                                                <div class="caption font-dark">
                                                    <i class="fa fa-group font-dark"></i>
                                                    <span class="caption-subject bold uppercase">Fornecedores</span>
                                                </div>
                                                <div class="tools"> </div>
                                            </div>
                                            <div class="portlet-body">
                                                <table class="table table-striped table-bordered table-hover" id="sample_1">
                                                    <thead>
                                                    <tr>
                                                        <th>Nome do Fornecedor</th>
                                                        <th>Nome do Representante</th>
                                                        <th>E-mail</th>
                                                        <th>CNPJ</th>
                                                        <th>Telefone</th>
                                                        <th>Ação</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>
                                                    {% for supplier in suppliers %}
                                                        {% for representative in supplier.representatives
                                                        if representative.deleted == false
                                                        and (supplier.rca or representative.retailer.id == user.id) %}
                                                            <tr>
                                                                <td> {{ supplier.name }} </td>
                                                                <td> {{ representative.name }} </td>
                                                                <td class="numeric"> {{ representative.email }} </td>
                                                                <td class="numeric"> {{ supplier.cnpj }} </td>
                                                                <td class="numeric"> {{ representative.phone }} </td>
                                                                <td>
                                                                    <a href="{{ path('editar_representante', {'id': representative.id}) }}"
                                                                       class="btn btn-outline btn-circle btn-sm purple">
                                                                        <i class="fa fa-edit"></i> Editar
                                                                    </a>
                                                                    <a href="{{ path('deletar_representante', {'id': representative.id}) }}"
                                                                       class="btn btn-outline btn-circle btn-sm purple">
                                                                        <i class="fa fa-trash"></i> Deletar
                                                                    </a>
                                                                </td>
                                                            </tr>
                                                        {% endfor %}
                                                    {% endfor %}
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- END PAGE CONTENT INNER -->
                        </div>
                    </div>
                    <!-- END PAGE CONTENT BODY -->
                    <!-- END CONTENT BODY -->
                </div>
                <!-- END CONTENT -->
            </div>
            <!-- END CONTAINER --><commit_msg>- WebApp: dont delete rca<commit_after>{% extends 'Retailer/base.html.twig' %}

{% block title %}Fornecedores{% endblock %}
{% block description %}{% endblock %}
{% block menu_suppliers %} active {% endblock %}

{% block page_plugins %}
    <link href="{{ asset('assets/global/plugins/datatables/datatables.min.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css') }}" rel="stylesheet" type="text/css" />
{% endblock %}

{% block page %}
    <div class="page-wrapper-row full-height">
        <div class="page-wrapper-middle">
            <!-- BEGIN CONTAINER -->
            <div class="page-container">
                <!-- BEGIN CONTENT -->
                <div class="page-content-wrapper">
                    <!-- BEGIN CONTENT BODY -->
                    <!-- BEGIN PAGE HEAD-->
                    <div class="page-head">
                        <div class="container">
                            <!-- BEGIN PAGE TITLE -->
                            <div class="page-title">
                                <h1>Fornecedores
                                    <small>Tabela de fornecedores cadastrados</small>
                                </h1>
                            </div>
                            <!-- END PAGE TITLE -->
                        </div>
                    </div>
                    <!-- END PAGE HEAD-->
                    <!-- BEGIN PAGE CONTENT BODY -->
                    <div class="page-content">
                        <div class="container">
                            {% include '_partial/flashMessages.html.twig' %}
                            <!-- BEGIN PAGE BREADCRUMBS -->
                            <ul class="page-breadcrumb breadcrumb">
                                <li>
                                    <a href="{{ path('dashboard') }}">Painel Inicial</a>
                                    <i class="fa fa-circle"></i>
                                </li>
                                <li>
                                    <a href="#">Fornecedores</a>
                                    <i class="fa fa-circle"></i>
                                </li>
                                <li>
                                    <span>Tabela</span>
                                </li>
                            </ul>
                            <!-- END PAGE BREADCRUMBS -->
                            <!-- BEGIN PAGE CONTENT INNER -->
                            <div class="page-content-inner">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="portlet light ">
                                            <div class="portlet-title">
                                                <div class="caption font-dark">
                                                    <i class="fa fa-group font-dark"></i>
                                                    <span class="caption-subject bold uppercase">Fornecedores</span>
                                                </div>
                                                <div class="tools"> </div>
                                            </div>
                                            <div class="portlet-body">
                                                <table class="table table-striped table-bordered table-hover" id="sample_1">
                                                    <thead>
                                                    <tr>
                                                        <th>Nome do Fornecedor</th>
                                                        <th>Nome do Representante</th>
                                                        <th>E-mail</th>
                                                        <th>CNPJ</th>
                                                        <th>Telefone</th>
                                                        <th>Ação</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>
                                                    {% for supplier in suppliers %}
                                                        {% for representative in supplier.representatives
                                                        if representative.deleted == false
                                                        and (supplier.rca or representative.retailer.id == user.id) %}
                                                            <tr>
                                                                <td> {{ supplier.name }} </td>
                                                                <td> {{ representative.name }} </td>
                                                                <td class="numeric"> {{ representative.email }} </td>
                                                                <td class="numeric"> {{ supplier.cnpj }} </td>
                                                                <td class="numeric"> {{ representative.phone }} </td>
                                                                <td>
                                                                    <a href="{{ path('editar_representante', {'id': representative.id}) }}"
                                                                       class="btn btn-outline btn-circle btn-sm purple">
                                                                        <i class="fa fa-edit"></i> Editar
                                                                    </a>
                                                                    {% if supplier.isRca == false %}
                                                                    <a href="{{ path('deletar_representante', {'id': representative.id}) }}"
                                                                       class="btn btn-outline btn-circle btn-sm purple">
                                                                        <i class="fa fa-trash"></i> Deletar
                                                                    </a>
                                                                    {% endif %}
                                                                </td>
                                                            </tr>
                                                        {% endfor %}
                                                    {% endfor %}
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- END PAGE CONTENT INNER -->
                        </div>
                    </div>
                    <!-- END PAGE CONTENT BODY -->
                    <!-- END CONTENT BODY -->
                </div>
                <!-- END CONTENT -->
            </div>
            <!-- END CONTAINER -->
{'fraction_non_alphanumeric': 0.10097100563590684, 'fraction_numerical': 0.0008148299042574863, 'mean_word_length': 0.5585185185185185, 'pattern_counts': {'":': 0, '<': 241, '<?xml version=': 0, '>': 241, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 226, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5827065', 'n_tokens_mistral': 2618, 'n_tokens_neox': 2431, 'n_words': 542}