{% extends '@OroUI/actions/update.html.twig' %} {% import '@OroUI/macros.html.twig' as UI %} {% block content_data %} {% if not form.vars.valid and form.vars.errors|length %} {% endif %}
{% if form.organization is defined %} {{ form_row(form.organization) }} {% endif %} {{ form_row(form.name) }} {{ form_row(form.active) }} {% if form.grants is defined %} {% if 'hidden' in form.grants.vars.block_prefixes %}
{{ form_row(form.grants) }}
{% else %} {{ form_row(form.grants, {'group_attr': {'class': 'client-grants'}}) }} {% endif %} {% endif %} {{ form_rest(form) }}
{% endblock content_data %} {% block widget_context %} {% import '@OroUI/macros.html.twig' as UI %}
{{ 'oro.oauth2server.client.created_message'|trans }}
{{ 'oro.oauth2server.client.created_warning_message'|trans|raw }}
{{ 'oro.oauth2server.client.identifier.label'|trans }}: {% set client_id = 'client-id-'|uniqid %} {{ entity.identifier }} {{- UI.clientLink({ aCss: 'btn btn-icon', iCss: 'fa-copy', title: 'oro.ui.button.copy_to_clipboard.label'|trans, labelInIcon: false, pageComponent: { view: { view: 'oroui/js/app/views/element-value-copy-to-clipboard-view', elementSelector: '#' ~ client_id } } }) -}}
{{ 'oro.oauth2server.client.secret.label'|trans }}: {% set client_secret_id = 'client-secret-'|uniqid %} {{ entity.plainSecret }} {{- UI.clientLink({ aCss: 'btn btn-icon', iCss: 'fa-copy', title: 'oro.ui.button.copy_to_clipboard.label'|trans, labelInIcon: false, pageComponent: { view: { view: 'oroui/js/app/views/element-value-copy-to-clipboard-view', elementSelector: '#' ~ client_secret_id } } }) -}}
{% endblock widget_context %}