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

{% if form is defined %}
  {% form_theme form with aa_admin_config.form_themes|default([]) %}
{% 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) }}

      <div class="mb-3">
        {{ form_label(form.file) }}
        {{ form_widget(form.file, { attr: { class: 'form-control', 'data-file-name-target': '#selected-file-name' } }) }}
        <div class="form-text">
          Fichier sélectionné : <strong id="selected-file-name">Aucun</strong>
        </div>
        {{ form_help(form.file) }}
        {{ form_errors(form.file) }}
      </div>

      {{ form_row(form.skip_first_line) }}
      {{ form_row(form.submit) }}

      {{ form_end(form) }}
    </div>
  </div>
{% endblock %}