{% extends '@PrestaShop/Admin/layout.html.twig' %}

{% form_theme form '@Modules/glspoland/views/templates/admin/form_theme.html.twig' %}

{% block content %}
  <div class="row justify-content-center">
    <div class="col">

      <div class="card">
        {{ form_start(form) }}
        <h3 class="card-header">
          <i class="material-icons">local_shipping</i> {{ layoutTitle }}
        </h3>

        <div class="card-body card-block row">
          <div class="form-wrapper card-text">
            {% block form_fields %}
              {{ form_errors(form) }}
              {{ form_rest(form) }}
            {% endblock %}
          </div>
        </div>

        <div class="card-footer clearfix">
          <a href="{{ path('admin_gls_poland_config_carriers_index') }}" class="btn btn-outline-secondary">{{ 'Cancel'|trans({}, 'Admin.Actions') }}</a>

          <button class="btn btn-primary float-right">{{ 'Save'|trans({}, 'Admin.Actions') }}</button>
        </div>
        {{ form_end(form) }}
      </div>

    </div>
  </div>
{% endblock %}
