<commit_before>{% extends "TisseoCoreBundle::datatable_list.html.twig" %}
{% set bundle = "TisseoPaonBundle" %}
{% set margin = '50' %}

{% import "TisseoCoreBundle::macros.html.twig" as render %}

{% block list_title %}
    {{ parent() }}
    {% if is_granted('BUSINESS_MANAGE_LINE_VERSION') %}
        -
        <a
            href="{{ path('tisseo_paon_line_version_create') }}"
            class="btn btn-success"
            data-toggle="modal"
            data-target="#base-modal"
            onclick="return $('.modal-dialog').removeClass('modal-dialog-large');"
        >
            <span class="glyphicon glyphicon-plus"></span> {{ 'tisseo.paon.line_version.action.create'|trans }}
        </a>
        <a
            href="{{ path('tisseo_core_export_csv', {service: 'tisseo_endiv.printing_manager'}) }}"
            class="btn btn-default"
        >
            <span class="glyphicon glyphicon-export"></span> {{ 'tisseo.paon.printing.action.export'|trans }}
        </a>
    {% endif %}
{% endblock %}

{% block content %}
    {% for physicalMode, lineVersions in data %}
        {% if lineVersions is not empty %}
            <a id="{{ loop.index }}" class="header-ribbon physical-mode"><span class="mode-icon mode-{{ physicalMode|lower }}"></span>{{ physicalMode }}</a>
            <table id="{{ loop.index }}" class="table datatable table-hover">
                <thead>
                    <th class="col-md-1">{{ 'tisseo.paon.line_version.label.number'|trans }}</th>
                    <th class="col-md-5">{{ 'tisseo.paon.line_version.label.name'|trans }}</th>
                    <th class="col-md-1 no-search">{{ 'tisseo.paon.line_version.label.printings'|trans }}</th>
                    <th class="col-md-1 no-search">{{ 'tisseo.paon.line_version.label.version'|trans }}</th>
                    <th class="col-md-1 no-search">{{ 'tisseo.paon.line_version.label.start_date'|trans }}</th>
                    <th class="col-md-1 no-search">{{ 'tisseo.paon.line_version.label.end_date'|trans }}</th>
                    <th class="col-md-2 no-search no-sort">{{ 'tisseo.global.actions'|trans }}</th>
                </thead>
                <tbody>
                {% for lineVersion in lineVersions %}
                    <tr>
                        <td>
                            {{ render.line_number(lineVersion, 'lineVersion', 'free') }}
                        </td>
                        <td>
                            <span>{{ lineVersion.name }}</span>
                        </td>
                        <td class="text-center">
                            {{ lineVersion.totalPrintings }}
                            <a
                                href="{{ path('tisseo_paon_printing_create', {'lineVersionId': lineVersion.id}) }}"
                                class="btn btn-xs btn-success small-link pull-right"
                                data-toggle="modal"
                                data-target="#base-modal"
                                onclick="return $('.modal-dialog').removeClass('modal-dialog-large');"
                            >
                                <span class="glyphicon glyphicon-plus"></span>
                            </a>
                        </td>
                        <td class="text-center">
                            {{ lineVersion.version }}
                        </td>
                        <td>
                            {{ render.line_version_startDate(lineVersion, now) }}
                        </td>
                        <td>
                            {%- if lineVersion.endDate -%}
                                {{ lineVersion.endDate|date('d/m/Y') }}
                            {%- elseif lineVersion.plannedEndDate -%}
                                {{ lineVersion.plannedEndDate|date('d/m/Y') }}
                            {%- endif -%}
                        </td>
                        <td>
                            <div class="btn-group">
                                <button data-toggle="dropdown" class="btn btn-default dropdown-toggle">
                                    {{ 'tisseo.paon.line_version.action.offer'|trans }} <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a
                                            href="{{ path('tisseo_paon_line_version_show', {'lineVersionId': lineVersion.id}) }}"
                                            class="btn"
                                            role="button"
                                            data-toggle="modal"
                                            data-target="#base-modal"
                                            onclick="return $('.modal-dialog').removeClass('modal-dialog-large');"
                                        >
                                            {{ 'tisseo.paon.line_version.action.show'|trans }}
                                        </a>
                                    </li>
                                    {% if is_granted('BUSINESS_MANAGE_LINE_VERSION') %}
                                        <li>
                                            <a
                                                href="{{ path('tisseo_paon_line_version_edit', {'lineVersionId': lineVersion.id}) }}"
                                                class="btn"<commit_msg>add color to both dates<commit_after>{% extends "TisseoCoreBundle::datatable_list.html.twig" %}
{% set bundle = "TisseoPaonBundle" %}
{% set margin = '50' %}

{% import "TisseoCoreBundle::macros.html.twig" as render %}

{% block list_title %}
    {{ parent() }}
    {% if is_granted('BUSINESS_MANAGE_LINE_VERSION') %}
        -
        <a
            href="{{ path('tisseo_paon_line_version_create') }}"
            class="btn btn-success"
            data-toggle="modal"
            data-target="#base-modal"
            onclick="return $('.modal-dialog').removeClass('modal-dialog-large');"
        >
            <span class="glyphicon glyphicon-plus"></span> {{ 'tisseo.paon.line_version.action.create'|trans }}
        </a>
        <a
            href="{{ path('tisseo_core_export_csv', {service: 'tisseo_endiv.printing_manager'}) }}"
            class="btn btn-default"
        >
            <span class="glyphicon glyphicon-export"></span> {{ 'tisseo.paon.printing.action.export'|trans }}
        </a>
    {% endif %}
{% endblock %}

{% block content %}
    {% for physicalMode, lineVersions in data %}
        {% if lineVersions is not empty %}
            <a id="{{ loop.index }}" class="header-ribbon physical-mode"><span class="mode-icon mode-{{ physicalMode|lower }}"></span>{{ physicalMode }}</a>
            <table id="{{ loop.index }}" class="table datatable table-hover">
                <thead>
                    <th class="col-md-1">{{ 'tisseo.paon.line_version.label.number'|trans }}</th>
                    <th class="col-md-5">{{ 'tisseo.paon.line_version.label.name'|trans }}</th>
                    <th class="col-md-1 no-search">{{ 'tisseo.paon.line_version.label.printings'|trans }}</th>
                    <th class="col-md-1 no-search">{{ 'tisseo.paon.line_version.label.version'|trans }}</th>
                    <th class="col-md-1 no-search">{{ 'tisseo.paon.line_version.label.start_date'|trans }}</th>
                    <th class="col-md-1 no-search">{{ 'tisseo.paon.line_version.label.end_date'|trans }}</th>
                    <th class="col-md-2 no-search no-sort">{{ 'tisseo.global.actions'|trans }}</th>
                </thead>
                <tbody>
                {% for lineVersion in lineVersions %}
                    {{ lineVersion.ProcessStatus(now) }}
                    <tr>
                        <td>
                            {{ render.line_number(lineVersion, 'lineVersion', 'free') }}
                        </td>
                        <td>
                            <span>{{ lineVersion.name }}</span>
                        </td>
                        <td class="text-center">
                            {{ lineVersion.totalPrintings }}
                            <a
                                href="{{ path('tisseo_paon_printing_create', {'lineVersionId': lineVersion.id}) }}"
                                class="btn btn-xs btn-success small-link pull-right"
                                data-toggle="modal"
                                data-target="#base-modal"
                                onclick="return $('.modal-dialog').removeClass('modal-dialog-large');"
                            >
                                <span class="glyphicon glyphicon-plus"></span>
                            </a>
                        </td>
                        <td class="text-center">
                            {{ lineVersion.version }}
                        </td>
                        <td>
                            {{ render.line_version_date(lineVersion, 'startDate') }}
                        </td>
                        <td>
                            {%- if lineVersion.endDate -%}
                                {{ render.line_version_date(lineVersion, 'endDate') }}
                            {%- elseif lineVersion.plannedEndDate -%}
                                {{ render.line_version_date(lineVersion, 'plannedEndDate') }}
                            {%- endif -%}
                        </td>
                        <td>
                            <div class="btn-group">
                                <button data-toggle="dropdown" class="btn btn-default dropdown-toggle">
                                    {{ 'tisseo.paon.line_version.action.offer'|trans }} <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a
                                            href="{{ path('tisseo_paon_line_version_show', {'lineVersionId': lineVersion.id}) }}"
                                            class="btn"
                                            role="button"
                                            data-toggle="modal"
                                            data-target="#base-modal"
                                            onclick="return $('.modal-dialog').removeClass('modal-dialog-large');"
                                        >
                                            {{ 'tisseo.paon.line_version.action.show'|trans }}
                                        </a>
                                    </li>
                                    {% if is_granted('BUSINESS_MANAGE_LINE_VERSION') %}
                                        <li>
                                            <a
                                                href="{{ path('tisseo_paon_line_version_edit', {'lineVersionId': lineVersion.id}) }}"
                                                class="btn"
{'fraction_non_alphanumeric': 0.13555194805194806, 'fraction_numerical': 0.0016233766233766235, 'mean_word_length': 1.1013833617585749, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 125, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 62, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4543107', 'n_tokens_mistral': 2837, 'n_tokens_neox': 2669, 'n_words': 414}