{#
 # For the full copyright and license information, please view the
 # docs/licenses/LICENSE.txt file that was distributed with this source code.
 #}
{% trans_default_domain 'Admin.Advparameters.Feature' %}

{# The form themes (UI kit + definition card/row blocks) are set by the form type itself through
 # the form_theme option — see ExtraPropertyDefinitionType::configureOptions(). #}
{% block extra_property_definition_view %}
  <div class="alert alert-info" role="alert">
    <p class="alert-text">
      {{ 'This extra property is managed by module "%module%" and is read-only from the back office.'|trans({'%module%': extraPropertyDefinitionForm.field_definition.module_name.vars.value}) }}
    </p>
  </div>

  <div class="form-horizontal">
    {{ form_row(extraPropertyDefinitionForm) }}
  </div>

  <div class="card-footer">
    <a href="{{ path('admin_extra_property_definitions_index') }}" class="btn btn-outline-secondary">
      {{ 'Back to list'|trans({}, 'Admin.Actions') }}
    </a>
  </div>
{% endblock %}
