{#**
 * 2007-2017 PrestaShop
 *
 * 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.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * 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 http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2017 PrestaShop SA
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *#}
<div id="module-modal-addons-connect" class="modal  modal-vcenter fade" role="dialog">
  <div class="modal-dialog">
    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title module-modal-title">{{ 'Connect to Addons marketplace'|trans({}, 'Admin.Modules.Feature') }}</h4>
      </div>
      <div class="modal-body">
        {% if level <= constant('PrestaShopBundle\\Security\\Voter\\PageVoter::LEVEL_UPDATE') %}
          <div class="row">
            <div class="col-md-12">
              <div class="alert alert-danger">
                <p>
                  {{ errorMessage }}
                </p>
              </div>
            </div>
          </div>
        {% else %}
          <div class="row">
              <div class="col-md-12">
                  <p>
                      {{ "Link your shop to your Addons account to automatically receive important updates for the modules you purchased. Don't have an account yet?"|trans({}, 'Admin.Modules.Feature') }}
                      <a href="http://addons.prestashop.com/authentication.php" target="_blank">{{ 'Sign up now'|trans({}, 'Admin.Modules.Feature') }}</a>
                  </p>
                  <form id="addons-connect-form"  action="{{ path('admin_addons_login') }}" method="POST">
                  <div class="form-group">
                    <label for="module-addons-connect-email">{{ 'Email address'|trans({}, 'Admin.Global') }}</label>
                    <input name="username_addons" type="email" class="form-control" id="module-addons-connect-email" placeholder="Email">
                  </div>
                  <div class="form-group">
                    <label for="module-addons-connect-password">{{ 'Password'|trans({}, 'Admin.Global') }}</label>
                    <input name="password_addons" type="password" class="form-control" id="module-addons-connect-password" placeholder="Password">
                  </div>
                  <div class="checkbox">
                    <label>
                      <input name="addons_remember_me" type="checkbox"> {{ 'Remember me'|trans({}, 'Admin.Global') }}
                    </label>
                  </div>
                  <button type="submit" class="btn btn-primary">{{ "Let's go!"|trans({}, 'Admin.Actions') }}</button>
                  <button id="addons_login_btn" class="btn btn-primary-reverse btn-lg onclick" style="display:none;"></button>
                </form>
                <p>
                    <a href="http://addons.prestashop.com/password.php" target="_blank">{{ 'Forgot your password?'|trans({}, 'Admin.Global') }}</a>
                </p>
              </div>
          </div>
        {% endif %}
      </div>
    </div>
  </div>
</div>
<div id="module-modal-addons-logout" class="modal  modal-vcenter fade" role="dialog">
  <div class="modal-dialog">
    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title module-modal-title">{{ 'Confirm logout'|trans({}, 'Admin.Modules.Feature') }}</h4>
      </div>
      <div class="modal-body">
          <div class="row">
              <div class="col-md-12">
                  <p>
                    {{ "You are about to log out your Addons account. You might miss important updates of Addons you've bought."|trans({}, 'Admin.Modules.Notification') }}
                  </p>
              </div>
          </div>
      </div>
      <div class="modal-footer">
          <input type="button" class="btn btn-default uppercase" data-dismiss="modal" value="{{ 'Cancel'|trans({}, 'Admin.Actions') }}">
          <a class="btn btn-primary uppercase" href="{{ path('admin_addons_logout') }}" id="module-modal-addons-logout-ack">{{ 'Yes, log out'|trans({}, 'Admin.Modules.Feature') }}</a>
      </div>

    </div>
  </div>
</div>
