{#**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 *#}
{% trans_default_domain 'Admin.Payment.Feature' %}

{% block payment_preferences_form %}
  {{ form_start(paymentPreferencesForm) }}
  {% block payment_modules_currency_restrictions %}
    <div class="card">
      <h3 class="card-header">
        <i class="material-icons">euro_symbol</i>
        {{ 'Currency restrictions'|trans({}, 'Admin.Payment.Feature') }}
      </h3>
      <div class="card-body">
        <p>
          <small class="form-text">
            {{ 'Please mark each checkbox for the currency, or currencies, for which you want the payment module(s) to be available.'|trans({}, 'Admin.Payment.Help') }}
          </small>
        </p>

        <div class="form-group">
          {{ form_widget(paymentPreferencesForm.currency_restrictions) }}
        </div>
      </div>
      <div class="card-footer">
        <div class="d-flex justify-content-end">
          <button class="btn btn-primary" id="form-currency-restrictions-save-button">
            {{ 'Save'|trans({}, 'Admin.Actions') }}
          </button>
        </div>
      </div>
    </div>
  {% endblock %}

  {% block payment_modules_group_restrictions %}
    <div class="card">
      <h3 class="card-header">
        <i class="material-icons">group</i>
        {{ 'Group restrictions'|trans({}, 'Admin.Payment.Feature') }}
      </h3>
      <div class="card-body">
        <p>
          <small class="form-text">
            {{ 'Please mark each checkbox for the customer group(s), for which you want the payment module(s) to be available.'|trans({}, 'Admin.Payment.Help') }}
          </small>
        </p>

        <div class="form-group">
          {{ form_widget(paymentPreferencesForm.group_restrictions) }}
        </div>
      </div>
      <div class="card-footer">
        <div class="d-flex justify-content-end">
          <button class="btn btn-primary" id="form-group-restrictions-save-button">
            {{ 'Save'|trans({}, 'Admin.Actions') }}
          </button>
        </div>
      </div>
    </div>
  {% endblock %}

  {% block payment_modules_country_restrictions %}
    <div class="card">
      <h3 class="card-header">
        <i class="material-icons">public</i>
        {{ 'Country restrictions'|trans({}, 'Admin.Payment.Feature') }}
      </h3>
      <div class="card-body">
        <p>
          <small class="form-text">
            {{ 'Please mark each checkbox for the country, or countries, in which you want the payment module(s) to be available.'|trans({}, 'Admin.Payment.Help') }}
          </small>
        </p>

        <div class="form-group">
          {{ form_widget(paymentPreferencesForm.country_restrictions) }}
        </div>
      </div>
      <div class="card-footer">
        <div class="d-flex justify-content-end">
          <button class="btn btn-primary" id="form-country-restrictions-save-button">
            {{ 'Save'|trans({}, 'Admin.Actions') }}
          </button>
        </div>
      </div>
    </div>
  {% endblock %}

  {% block payment_modules_carrier_restrictions %}
    <div class="card">
      <h3 class="card-header">
        <i class="material-icons">local_shipping</i>
        {{ 'Carrier restrictions'|trans({}, 'Admin.Payment.Feature') }}
      </h3>
      <div class="card-body">
        <p>
          <small class="form-text">
            {{ 'Please mark each checkbox for the carrier, or carrier, for which you want the payment module(s) to be available.'|trans({}, 'Admin.Payment.Help') }}
          </small>
        </p>
        <div class="form-group">
          {{ form_widget(paymentPreferencesForm.carrier_restrictions) }}
        </div>
      </div>
      <div class="card-footer">
        <div class="d-flex justify-content-end">
          <button class="btn btn-primary" id="form-carrier-restrictions-save-button">
            {{ 'Save'|trans({}, 'Admin.Actions') }}
          </button>
        </div>
      </div>
    </div>
  {% endblock %}

  {% block payment_preferences_block_rest %}
    {{ form_rest(paymentPreferencesForm) }}
  {% endblock %}

  {{ form_end(paymentPreferencesForm) }}
{% endblock %}
