<commit_before>{% extends 'OroUIBundle:actions:view.html.twig' %}
{% import 'OroDataGridBundle::macros.html.twig' as dataGrid %}

{% oro_title_set({params : {"%business_unit.name%": entity.name|default('N/A') }}) %}

{% block navButtons %}
    {% if resource_granted('EDIT', entity) %}
        {{ UI.editButton({
            'path' : path('oro_business_unit_update', { id: entity.id }),
            'entity_label': 'oro.organization.businessunit.entity_label'|trans
        })  }}
    {% endif %}
    {% if oro_get_business_units_count() > 1 and resource_granted('DELETE', entity) %}
        {{ UI.deleteButton({
            'dataUrl': path('oro_api_delete_businessunit', {'id': entity.id}),
            'dataRedirect': path('oro_business_unit_index'),
            'aCss': 'no-hash remove-button',
            'id': 'btn-remove-business_unit',
            'dataId': entity.id,
            'entity_label': 'oro.organization.businessunit.entity_label'|trans,
            'disabled': not allow_delete
        }) }}
    {% endif %}
{% endblock navButtons %}

{% block pageHeader %}
    {% set breadcrumbs = {
        'entity':      entity,
        'indexPath':   path('oro_business_unit_index'),
        'indexLabel':  'oro.organization.businessunit.entity_plural_label',<commit_msg>OEE-331: Can create new BU only in the current organization   - Fix title<commit_after>{% extends 'OroUIBundle:actions:view.html.twig' %}
{% import 'OroDataGridBundle::macros.html.twig' as dataGrid %}

{% oro_title_set({params : {"%business_unit.name%": entity.name|default('N/A') }}) %}

{% block navButtons %}
    {% if resource_granted('EDIT', entity) %}
        {{ UI.editButton({
            'path' : path('oro_business_unit_update', { id: entity.id }),
            'entity_label': 'oro.organization.businessunit.entity_label'|trans
        })  }}
    {% endif %}
    {% if oro_get_business_units_count() > 1 and resource_granted('DELETE', entity) %}
        {{ UI.deleteButton({
            'dataUrl': path('oro_api_delete_businessunit', {'id': entity.id}),
            'dataRedirect': path('oro_business_unit_index'),
            'aCss': 'no-hash remove-button',
            'id': 'btn-remove-business_unit',
            'dataId': entity.id,
            'entity_label': 'oro.organization.businessunit.entity_label'|trans,
            'disabled': not allow_delete
        }) }}
    {% endif %}
{% endblock navButtons %}

{% block pageHeader %}
    {% set breadcrumbs = {
        'entity':      entity,
        'indexPath':   path('oro_business_unit_index'),
        'indexLabel':  'oro.organization.businessunit.entity_plural_label'|trans,
{'fraction_non_alphanumeric': 0.16158536585365854, 'fraction_numerical': 0.0019054878048780487, 'mean_word_length': 3.0571870170015454, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '536315', 'n_tokens_mistral': 855, 'n_tokens_neox': 812, 'n_words': 132}