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

{# This form theme is the root one for all the product form so we define here which base theme is used for all the children #}
{% use '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit_base.html.twig' %}

{% block _product_seo_link_rewrite_widget %}
  {{ form_widget(form) }}
  {% set firstChildAttr = form.children|first.vars.attr %}
  <button
    type="button"
    class="reset-link-rewrite btn btn-outline-secondary mt-1"
    data-automatic-change="{{ firstChildAttr['data-automatic-update']|default(0) }}"
  >
    {{ 'Generate URL from name'|trans({}, 'Admin.Catalog.Feature') }}
  </button>
{% endblock %}
