{#**
 * 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)
 *#}
<div class="modal fade"
     id="forwardThreadModal"
     tabindex="-1"
     role="dialog"
     aria-labelledby="forwardThreadModalLabel"
     aria-hidden="true"
>
  <div class="modal-dialog" role="document">
    {{ form_start(forwardCustomerThreadForm, {
      'action': path('admin_customer_threads_forward', {
        'customerThreadId': customerThreadView.customerThreadId.value
      }),
      'attr': {'class': 'form-horizontal'}
    }) }}
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="forwardThreadModalLabel">
            {{ 'Forward this discussion'|trans({}, 'Admin.Orderscustomers.Feature') }}
          </h5>
          <button type="button"
                  class="close"
                  data-dismiss="modal"
                  aria-label="{{ 'Close'|trans({}, 'Admin.Actions') }}"
          >
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <div class="form-group row">
            <label for="customer_email" class="form-control-label">
              {{ 'Forward this discussion to an employee:'|trans({}, 'Admin.Orderscustomers.Feature') }}
            </label>
            <div class="col-sm">
              {{ form_widget(forwardCustomerThreadForm.employee_id) }}
            </div>
          </div>

          <div class="form-group row d-none">
            <label for="customer_email" class="form-control-label">
              {{ 'Email'|trans({}, 'Admin.Global') }}
            </label>
            <div class="col-sm">
              {{ form_widget(forwardCustomerThreadForm.someone_else_email) }}
            </div>
          </div>

          <div class="form-group row">
            <label for="customer_email" class="form-control-label">
              {{ 'Comment:'|trans({}, 'Admin.Orderscustomers.Feature') }}
            </label>
            <div class="col-sm">
              {{ form_widget(forwardCustomerThreadForm.comment, {
                'attr': {'placeholder': 'You can add a comment here.'|trans({}, 'Admin.Orderscustomers.Help')}
              }) }}
            </div>
          </div>

          <div class="d-none">
            {{ form_widget(forwardCustomerThreadForm._token) }}
          </div>

          {% block forward_customer_thread_form_rest %}
            {{ form_rest(forwardCustomerThreadForm) }}
          {% endblock %}
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-dismiss="modal">
            {{ 'Close'|trans({}, 'Admin.Actions') }}
          </button>
          <button type="submit" class="btn btn-primary">
            {{ 'Forward'|trans({}, 'Admin.Orderscustomers.Feature') }}
          </button>
        </div>
      </div>
    {{ form_end(forwardCustomerThreadForm) }}
  </div>
</div>
