<commit_before>{% extends "PumWoodworkBundle::layout.html.twig" %}

{% set menu_active ='beams' %}

{% block content %}
    <div class="pum-row-head">
        <div class="pum-action-bar pull-right">
            <a class="btn btn-primary btn-sm" href="{{ path('ww_beam_store_list') }}"><i class="pumicon pumicon-cart"></i> {{ 'ww.beams.top_btn_beam_import_from_store'|trans({}, 'pum') }}</a>
            <a class="btn btn-primary btn-sm" href="{{ path('ww_beam_import') }}"><i class="pumicon pumicon-upload"></i> {{ 'ww.beams.top_btn_beam_import'|trans({}, 'pum') }}</a>
            <a href="{{ path('ww_beam_create') }}" class="btn pum-scheme-btn-darkgrass"><i class="pumicon pumicon-plus2"></i> {{ 'ww.beams.top_btn_beam_create'|trans({}, 'pum') }}</a>
            <!-- Change View
            <div class="btn-group" data-toggle="buttons">
                <label class="btn active">
                    <input type="radio" name="options" id="option1" checked="checked" /> <i class="pumicon pumicon-reorder"></i>
                </label>
                <label class="btn">
                    <input type="radio" name="options" id="option2" /> <i class="pumicon pumicon-th-large"></i>
                </label>
            </div>
            -->
        </div>
        {{ pum_macros.section_title('ww.beams.title'|trans({}, 'pum'), null, null, [
            {
                href: path('ww_homepage'),
                text: 'common.woodwork.breadcrumb'|trans({}, 'pum')
            },
            {
                text: 'ww.beams.description'|trans({}, 'pum')
            }
        ]) }}
    </div>

    {{ pum_macros.alertMessages() }}

    <div class="row">
        <div class="col-lg-12 col-offset-auto">
            <table class="table table-bordered table-striped table-hover">
                {# <col width="3%" /> #}
                <col width="3%" />
                <thead>
                    <tr class="table-head-bordered">
                        {# <th class="text-center"><input type="checkbox" name="all_beams" /></th> #}
                        <th class="text-right">{{ 'ww.beams.table_th_id'|trans({}, 'pum') }}</th>
                        <th class="pum-scheme-cell-belizehole pum-schemed_cell">
                            <div class="pum-schemed_cell_wrapper">
                                {{ 'ww.beams.table_th_name'|trans({}, 'pum') }}
                            </div>
                        </th>
                        <th class="pum-scheme-cell-belizehole pum-schemed_cell">
                            <div class="pum-schemed_cell_wrapper">
                                <i class="pumicon pumicon-archive hidden-xs"></i>
                                {{ 'ww.beams.table_th_objects'|trans({}, 'pum') }}
                            </div>
                        </th>
                        <th class="pum-scheme-cell-pomegranate pum-schemed_cell">
                            <div class="pum-schemed_cell_wrapper">
                                <i class="pumicon pumicon-briefcase hidden-xs"></i>
                                {{ 'ww.beams.table_th_projects'|trans({}, 'pum') }}
                            </div>
                        </th>
                        <th class="pum-schemed_cell">
                            <div class="pum-schemed_cell_wrapper">
                                <i class="pumicon pumicon-settings2 hidden-xs"></i>
                                {{ 'ww.beams.table_th_actions'|trans({}, 'pum') }}
                            </div>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    {% for beam in beams %}
                        <tr id="beam_{{ beam.id }}">
                            {# <td class="text-center is_checkable"><input type="checkbox" name="project[{{ beam.id }}]" value="1" /></td> #}
                            <td class="text-right">{{ beam.id }}</td>
                            <td class="pum-scheme-colored-{{ beam.color }}">
                                <big>
                                    <i class="pumicon pumicon-{{ beam.icon }}"></i>
                                    <strong>{{ beam.name }}</strong>
                                </big>
                            </td>
                            <td class="pum-scheme-colored-belizehole">
                                {{ pum_macros.collapsed_list('beam_def_' ~ beam.id, beam.objectsOrderBy('name'), ['object', 'objects'], 5) }}
                            </td>
                            <td class="pum-scheme-colored-pomegranate">
                                {{ pum_macros.collapsed_list('beam_proj_' ~ beam.id, beam.projects, ['project', 'projects'], 5) }}
                            </td>
                            <td>
                                <a class="btn btn-sm pum-scheme-btn-darkgrass" title="{{ 'ww.beams.btn_beam_edit_title'|trans({ '%name%':beam.name }, 'pum') }}" href="{{ path('ww_beam_edit', {beamName: beam.name}) }}">{{ 'ww.beams.btn_beam_edit'|trans({}, 'pum') }}</a>
                                <a class="btn btn-sm btn-warning" title="{{ 'ww.beams.btn_beam_clone_title'|trans({ '%name%':beam.name }, 'pum') }}" href="{{ path('ww_beam_clone', {beamName: beam.name}) }}">{{ 'ww.beams.btn_beam_clone'|trans({}, 'pum') }}</a>
                                {% if beam.deletable %}
                                    <a class="btn btn-sm btn-danger" title="{{ 'ww.beams.btn_beam_delete_title'|trans({ '%name%':beam.name }, 'pum') }}" data-cancel="{{ 'ww.beams.modal_beam_delete_btn_cancel'|trans({}, 'pum') }}" data-confirm="{{ 'ww.beams.modal_beam_delete_btn_confirm'|trans({}, 'pum') }}" data-text='{{ 'ww.beams.modal_beam_delete_title'|trans({ '%name%':beam.name }, 'pum') }}' href="{{ path('ww_beam_delete', {beamName: beam.name}) }}">
                                        {{ 'ww.beams.btn_beam_delete'|trans({}, 'pum') }}
                                    </a>
                                {% endif %}

                                <a class="btn btn-sm btn-primary" {% if beam.hasExternalRelations %}data-type="choice" data-cancel="{{ 'ww.beams.modal_beam_export_relations_btn_no'|trans({}, 'pum') }}" data-confirm="{{ 'ww.beams.modal_beam_export_relations_btn_yes'|trans({}, 'pum') }}" data-text='{{ 'ww.beams.modal_beam_export_relations_title'|trans({ '%name%':beam.name }, 'pum') }}' data-content='{{ 'ww.beams.modal_beam_export_relations_content'|trans({}, 'pum') }}'{% endif %} title="{{ 'ww.beams.btn_beam_export_title'|trans({ '%name%':beam.name }, 'pum') }}" href="{{ path('ww_beam_export', {beamName: beam.name}) }}">
                                    {{ 'ww.beams.btn_beam_export'|trans({}, 'pum') }}
                                </a>

                                <a class="btn btn-sm btn-primary" {% if beam.hasExternalRelations %}data-type="choice" data-cancel="{{ 'ww.beams.modal_beam_export_relations_btn_no'|trans({}, 'pum') }}" data-confirm="{{ 'ww.beams.modal_beam_export_relations_btn_yes'|trans({}, 'pum') }}" data-text='{{ 'ww.beams.modal_beam_export_relations_title'|trans({ '%name%':beam.name }, 'pum') }}' data-content='{{ 'ww.beams.modal_beam_export_relations_content'|trans({}, 'pum') }}'{% endif %} title="{{ 'ww.beams.btn_beam_export_title'|trans({ '%name%':beam.name }, 'pum') }}" href="{{ path('ww_beam_export', {beamName: beam.name, 'beam-store': true}) }}">
                                    <i class="pumicon pumicon-upload"></i>
                                    {{ 'ww.beams.btn_beam_export_to_store'|trans({}, 'pum') }}
                                </a>
                            </td>
                        </tr>
                    {% else %}
                        <tr class="info">
                            <td colspan="5"><em>{{ 'ww.beams.table_beams_null'|trans({ '%link%':'<a href="' ~ path('ww_beam_create') ~ '">', '%/link%':'</a>' }, 'pum')|raw }}</em></td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
            <p class="text-right text-muted text-table-foot"><small>{{ 'ww.beams.table_bottom_info'|trans({}, 'pum') }}</small></p>
        </div>
    </div>
{% endblock %}<commit_msg>remove store export for now<commit_after>{% extends "PumWoodworkBundle::layout.html.twig" %}

{% set menu_active ='beams' %}

{% block content %}
    <div class="pum-row-head">
        <div class="pum-action-bar pull-right">
            <a class="btn btn-primary btn-sm" href="{{ path('ww_beam_store_list') }}"><i class="pumicon pumicon-cart"></i> {{ 'ww.beams.top_btn_beam_import_from_store'|trans({}, 'pum') }}</a>
            <a class="btn btn-primary btn-sm" href="{{ path('ww_beam_import') }}"><i class="pumicon pumicon-upload"></i> {{ 'ww.beams.top_btn_beam_import'|trans({}, 'pum') }}</a>
            <a href="{{ path('ww_beam_create') }}" class="btn pum-scheme-btn-darkgrass"><i class="pumicon pumicon-plus2"></i> {{ 'ww.beams.top_btn_beam_create'|trans({}, 'pum') }}</a>
            <!-- Change View
            <div class="btn-group" data-toggle="buttons">
                <label class="btn active">
                    <input type="radio" name="options" id="option1" checked="checked" /> <i class="pumicon pumicon-reorder"></i>
                </label>
                <label class="btn">
                    <input type="radio" name="options" id="option2" /> <i class="pumicon pumicon-th-large"></i>
                </label>
            </div>
            -->
        </div>
        {{ pum_macros.section_title('ww.beams.title'|trans({}, 'pum'), null, null, [
            {
                href: path('ww_homepage'),
                text: 'common.woodwork.breadcrumb'|trans({}, 'pum')
            },
            {
                text: 'ww.beams.description'|trans({}, 'pum')
            }
        ]) }}
    </div>

    {{ pum_macros.alertMessages() }}

    <div class="row">
        <div class="col-lg-12 col-offset-auto">
            <table class="table table-bordered table-striped table-hover">
                {# <col width="3%" /> #}
                <col width="3%" />
                <thead>
                    <tr class="table-head-bordered">
                        {# <th class="text-center"><input type="checkbox" name="all_beams" /></th> #}
                        <th class="text-right">{{ 'ww.beams.table_th_id'|trans({}, 'pum') }}</th>
                        <th class="pum-scheme-cell-belizehole pum-schemed_cell">
                            <div class="pum-schemed_cell_wrapper">
                                {{ 'ww.beams.table_th_name'|trans({}, 'pum') }}
                            </div>
                        </th>
                        <th class="pum-scheme-cell-belizehole pum-schemed_cell">
                            <div class="pum-schemed_cell_wrapper">
                                <i class="pumicon pumicon-archive hidden-xs"></i>
                                {{ 'ww.beams.table_th_objects'|trans({}, 'pum') }}
                            </div>
                        </th>
                        <th class="pum-scheme-cell-pomegranate pum-schemed_cell">
                            <div class="pum-schemed_cell_wrapper">
                                <i class="pumicon pumicon-briefcase hidden-xs"></i>
                                {{ 'ww.beams.table_th_projects'|trans({}, 'pum') }}
                            </div>
                        </th>
                        <th class="pum-schemed_cell">
                            <div class="pum-schemed_cell_wrapper">
                                <i class="pumicon pumicon-settings2 hidden-xs"></i>
                                {{ 'ww.beams.table_th_actions'|trans({}, 'pum') }}
                            </div>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    {% for beam in beams %}
                        <tr id="beam_{{ beam.id }}">
                            {# <td class="text-center is_checkable"><input type="checkbox" name="project[{{ beam.id }}]" value="1" /></td> #}
                            <td class="text-right">{{ beam.id }}</td>
                            <td class="pum-scheme-colored-{{ beam.color }}">
                                <big>
                                    <i class="pumicon pumicon-{{ beam.icon }}"></i>
                                    <strong>{{ beam.name }}</strong>
                                </big>
                            </td>
                            <td class="pum-scheme-colored-belizehole">
                                {{ pum_macros.collapsed_list('beam_def_' ~ beam.id, beam.objectsOrderBy('name'), ['object', 'objects'], 5) }}
                            </td>
                            <td class="pum-scheme-colored-pomegranate">
                                {{ pum_macros.collapsed_list('beam_proj_' ~ beam.id, beam.projects, ['project', 'projects'], 5) }}
                            </td>
                            <td>
                                <a class="btn btn-sm pum-scheme-btn-darkgrass" title="{{ 'ww.beams.btn_beam_edit_title'|trans({ '%name%':beam.name }, 'pum') }}" href="{{ path('ww_beam_edit', {beamName: beam.name}) }}">{{ 'ww.beams.btn_beam_edit'|trans({}, 'pum') }}</a>
                                <a class="btn btn-sm btn-warning" title="{{ 'ww.beams.btn_beam_clone_title'|trans({ '%name%':beam.name }, 'pum') }}" href="{{ path('ww_beam_clone', {beamName: beam.name}) }}">{{ 'ww.beams.btn_beam_clone'|trans({}, 'pum') }}</a>
                                {% if beam.deletable %}
                                    <a class="btn btn-sm btn-danger" title="{{ 'ww.beams.btn_beam_delete_title'|trans({ '%name%':beam.name }, 'pum') }}" data-cancel="{{ 'ww.beams.modal_beam_delete_btn_cancel'|trans({}, 'pum') }}" data-confirm="{{ 'ww.beams.modal_beam_delete_btn_confirm'|trans({}, 'pum') }}" data-text='{{ 'ww.beams.modal_beam_delete_title'|trans({ '%name%':beam.name }, 'pum') }}' href="{{ path('ww_beam_delete', {beamName: beam.name}) }}">
                                        {{ 'ww.beams.btn_beam_delete'|trans({}, 'pum') }}
                                    </a>
                                {% endif %}

                                <a class="btn btn-sm btn-primary" {% if beam.hasExternalRelations %}data-type="choice" data-cancel="{{ 'ww.beams.modal_beam_export_relations_btn_no'|trans({}, 'pum') }}" data-confirm="{{ 'ww.beams.modal_beam_export_relations_btn_yes'|trans({}, 'pum') }}" data-text='{{ 'ww.beams.modal_beam_export_relations_title'|trans({ '%name%':beam.name }, 'pum') }}' data-content='{{ 'ww.beams.modal_beam_export_relations_content'|trans({}, 'pum') }}'{% endif %} title="{{ 'ww.beams.btn_beam_export_title'|trans({ '%name%':beam.name }, 'pum') }}" href="{{ path('ww_beam_export', {beamName: beam.name}) }}">
                                    {{ 'ww.beams.btn_beam_export'|trans({}, 'pum') }}
                                </a>

                                {# <a class="btn btn-sm btn-primary" {% if beam.hasExternalRelations %}data-type="choice" data-cancel="{{ 'ww.beams.modal_beam_export_relations_btn_no'|trans({}, 'pum') }}" data-confirm="{{ 'ww.beams.modal_beam_export_relations_btn_yes'|trans({}, 'pum') }}" data-text='{{ 'ww.beams.modal_beam_export_relations_title'|trans({ '%name%':beam.name }, 'pum') }}' data-content='{{ 'ww.beams.modal_beam_export_relations_content'|trans({}, 'pum') }}'{% endif %} title="{{ 'ww.beams.btn_beam_export_title'|trans({ '%name%':beam.name }, 'pum') }}" href="{{ path('ww_beam_export', {beamName: beam.name, 'beam-store': true}) }}">
                                    <i class="pumicon pumicon-upload"></i>
                                    {{ 'ww.beams.btn_beam_export_to_store'|trans({}, 'pum') }}
                                </a> #}
                            </td>
                        </tr>
                    {% else %}
                        <tr class="info">
                            <td colspan="5"><em>{{ 'ww.beams.table_beams_null'|trans({ '%link%':'<a href="' ~ path('ww_beam_create') ~ '">', '%/link%':'</a>' }, 'pum')|raw }}</em></td>
                        </tr>
                    {% endfor %}
                </tbody>
            </table>
            <p class="text-right text-muted text-table-foot"><small>{{ 'ww.beams.table_bottom_info'|trans({}, 'pum') }}</small></p>
        </div>
    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.18805390312006798, 'fraction_numerical': 0.0014568410829185383, 'mean_word_length': 1.6576867236651072, 'pattern_counts': {'":': 0, '<': 233, '<?xml version=': 0, '>': 233, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 50, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1372653', 'n_tokens_mistral': 5283, 'n_tokens_neox': 4926, 'n_words': 752}