{% extends "@AutoAdminAdmin/entity_layout.html.twig" %}

{% if form is defined %}
  {% form_theme form with ['@AutoAdminAdmin/form/form_theme.html.twig', '@AutoAdminMedia/Form/fields.html.twig'] %}
{% endif %}

{% block inner_page_top %}
  <div class="d-sm-flex align-items-center justify-content-between mb-4">
    <div class="heading-actions">
      {% for action in headActions|default([]) %}
        <a href="{{ action.link }}" class="d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm">
          <i class="{{ action.icon }} fa-sm text-white-50"></i> {{ action.name }}
        </a>
      {% endfor %}
    </div>
  </div>
{% endblock %}

{% block inner_page_content %}
  <div class="row">
    <div class="col-12">
      {{ form_start(form) }}
      {{ form_errors(form) }}
      {{ form_widget(form) }}
      {{ form_end(form) }}
    </div>
  </div>
{% endblock %}