<commit_before>{% extends app.request.get('_dashboard')=='DMS'
? 'NumaDOADMSBundle::layout.html.twig'
: 'NumaDOAAdminBundle::layout.html.twig' %}

{% block content %}
    <h1></h1>

    {{ form_start(uploadForm) }}
    {{ form_errors(uploadForm) }}
    <div class="file-upload">
        {{ form_row(uploadForm.upload) }}
    </div>

    {{ form_end(uploadForm) }}
    {% include 'NumaDOAAdminBundle::flashmsg.html.twig' %}
    <div class="box">
        <div class="box-header">
            <h3 class="box-title">Business Directory</h3>
            <div class="box-tools">
                {% if(app.request.get('_dashboard')=='DMS') %}
                    <a href="{{ path('dms_catalogs_new') }}" class="btn btn-primary">
                        Create new Dealer
                    </a>
                {% else %}
                    <a href="{{ path('catalogs_new') }}" class="btn btn-primary">
                        Create new Dealer
                    </a>
                {% endif %}
            </div>
        </div>
        <div class="box-body table-responsive no-padding">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>Id</th>
                    <th>Name</th>
                    <th>Url</th>
                    <th>Category</th>
                    <th>Actions</th>
                </tr>
                </thead>
                <tbody>
                {% for entity in entities %}
                    <tr>
                        <td><a href="{{ path('catalogs_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
                        <td>{{ entity.name }}</td>
                        <td>{{ entity.url }}</td>
                        <td>{{ entity.getDcategoryNames() }}</td>
                        <td class="nowrap">
                            <ul class="list-inline">

                                <li>
                                    {% if(app.request.get('_dashboard')=='DMS') %}
                                        <a href="{{ path('dms_catalogs_edit', { 'id': entity.id }) }}" class="btn btn-primary">
                                            Edit
                                        </a>
                                    {% else %}
                                        <a href="{{ path('catalogs_edit', { 'id': entity.id }) }}" class="btn btn-primary">
                                            Edit
                                        </a>
                                    {% endif %}
                                </li>
                                <li>
                                    {% if(app.request.get('_dashboard')=='DMS') %}
                                        <a href="{{ path('dms_catalogs_delete', { 'id': entity.id }) }}" class="btn btn-danger"
                                           data-confirm="All the listings <strong>{{ entity.name }}</strong> has been made will be deleted.<br>Are you sure you want to delete?">Delete</a>
                                    {% else %}
                                        <a href="{{ path('catalogs_delete', { 'id': entity.id }) }}" class="btn btn-danger"
                                           data-confirm="All the listings <strong>{{ entity.name }}</strong> has been made will be deleted.<br>Are you sure you want to delete?">Delete</a>
                                    {% endif %}
                                </li>
                            </ul>
                        </td>
                    </tr>
                {% endfor %}
                </tbody><commit_msg>Catalogrecords added username in table<commit_after>{% extends app.request.get('_dashboard')=='DMS'
? 'NumaDOADMSBundle::layout.html.twig'
: 'NumaDOAAdminBundle::layout.html.twig' %}

{% block content %}
    <h1></h1>

    {{ form_start(uploadForm) }}
    {{ form_errors(uploadForm) }}
    <div class="file-upload">
        {{ form_row(uploadForm.upload) }}
    </div>

    {{ form_end(uploadForm) }}
    {% include 'NumaDOAAdminBundle::flashmsg.html.twig' %}
    <div class="box">
        <div class="box-header">
            <h3 class="box-title">Business Directory</h3>
            <div class="box-tools">
                {% if(app.request.get('_dashboard')=='DMS') %}
                    <a href="{{ path('dms_catalogs_new') }}" class="btn btn-primary">
                        Create new Dealer
                    </a>
                {% else %}
                    <a href="{{ path('catalogs_new') }}" class="btn btn-primary">
                        Create new Dealer
                    </a>
                {% endif %}
            </div>
        </div>
        <div class="box-body table-responsive no-padding">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>Id</th>
                    <th>Name</th>
                    <th>Url</th>
                    <th>Category</th>
                    <th>Username</th>
                    <th>Actions</th>
                </tr>
                </thead>
                <tbody>
                {% for entity in entities %}
                    <tr>
                        <td><a href="{{ path('catalogs_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
                        <td>{{ entity.name }}</td>
                        <td>{{ entity.url }}</td>
                        <td>{{ entity.getDcategoryNames() }}</td>
                        <td>{{ entity.username() }}</td>
                        <td class="nowrap">
                            <ul class="list-inline">

                                <li>
                                    {% if(app.request.get('_dashboard')=='DMS') %}
                                        <a href="{{ path('dms_catalogs_edit', { 'id': entity.id }) }}" class="btn btn-primary">
                                            Edit
                                        </a>
                                    {% else %}
                                        <a href="{{ path('catalogs_edit', { 'id': entity.id }) }}" class="btn btn-primary">
                                            Edit
                                        </a>
                                    {% endif %}
                                </li>
                                <li>
                                    {% if(app.request.get('_dashboard')=='DMS') %}
                                        <a href="{{ path('dms_catalogs_delete', { 'id': entity.id }) }}" class="btn btn-danger"
                                           data-confirm="All the listings <strong>{{ entity.name }}</strong> has been made will be deleted.<br>Are you sure you want to delete?">Delete</a>
                                    {% else %}
                                        <a href="{{ path('catalogs_delete', { 'id': entity.id }) }}" class="btn btn-danger"
                                           data-confirm="All the listings <strong>{{ entity.name }}</strong> has been made will be deleted.<br>Are you sure you want to delete?">Delete</a>
                                    {% endif %}
                                </li>
                            </ul>
                        </td>
                    </tr>
                {% endfor %}
                </tbody>
{'fraction_non_alphanumeric': 0.1475252939567952, 'fraction_numerical': 0.0010937927262783702, 'mean_word_length': 0.9780962682531098, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 141, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 48, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7661442', 'n_tokens_mistral': 1896, 'n_tokens_neox': 1723, 'n_words': 355}