{% extends '@OroUI/actions/view.html.twig' %} {% import '@OroUI/macros.html.twig' as UI %} {% oro_title_set({params : {"%application.name%": entity.name|default('N/A') }}) %} {% block navButtons %} {% if is_granted('DELETE', entity) %} {{ UI.deleteButton({ 'dataUrl': path('oro_oauth2_server_client_delete', {'id': entity.id}), 'dataRedirect': path(entity.frontend ? 'oro_oauth2_frontend_index' : 'oro_oauth2_index'), 'aCss': 'no-hash remove-button', 'id': 'btn-remove-business_unit', 'dataId': entity.id, 'entity_label': 'oro.oauth2server.client.entity_label'|trans }) }} {% endif %} {% if is_granted('EDIT', entity) %} {{ UI.editButton({ 'path' : path( entity.frontend ? 'oro_oauth2_frontend_update' : 'oro_oauth2_update', { id: entity.id } ), 'entity_label': (entity.frontend ? 'oro.oauth2server.menu.frontend_oauth_application.label' : 'oro.oauth2server.menu.backoffice_oauth_application.label' )|trans }) }} {% endif %} {% endblock navButtons %} {% block pageHeader %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path(entity.frontend ? 'oro_oauth2_frontend_index' : 'oro_oauth2_index'), 'indexLabel': (entity.frontend ? 'oro.oauth2server.menu.frontend_oauth_application.label' : 'oro.oauth2server.menu.backoffice_oauth_application.label' )|trans, 'entityTitle': entity.name|default('N/A'), } %} {{ parent() }} {% endblock pageHeader %} {% block breadcrumbs %} {{ parent() }} {% if entity.active %} {{ UI.badge('oro.oauth2server.client.active.statuses.active'|trans, 'enabled') }} {% else %} {{ UI.badge('oro.oauth2server.client.active.statuses.inactive'|trans, 'disabled') }} {% endif %} {% endblock breadcrumbs %} {% block stats %} {% endblock stats %} {% block content_data %} {% if not encryptionKeysExist %}