{#
 # 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.International.Feature' %}
{% form_theme geolocationIpAddressWhitelistForm '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig' %}

{% block geolocation_ip_address_whitelist %}
  <div class="card">
    <h3 class="card-header">
      {{ 'IP address whitelist'|trans }}

      <span
        class="help-box"
        data-container="body"
        data-toggle="popover"
        data-trigger="hover"
        data-placement="right"
        data-content="{{ 'You can add IP addresses that will always be allowed to access your shop (e.g. Google bots\' IP).'|trans({}, 'Admin.International.Help') }}"
        title=""
      >
      </span>
    </h3>
    <div class="card-body">
      <div class="form-wrapper">
        {{ form_widget(geolocationIpAddressWhitelistForm) }}
      </div>
    </div>
    <div class="card-footer">
      <div class="d-flex justify-content-end">
        <button class="btn btn-primary">
          {{ 'Save'|trans({}, 'Admin.Actions') }}
        </button>
      </div>
    </div>
  </div>
{% endblock %}
