{*
* 2007-2024 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 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/afl-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-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
<div class="product-makeoffer-additional-info">
    <button class="btn btn-primary" type="button">
        <i class="material-icons">attach_money</i>
        {l s='Make a price offer to seller' d='Modules.Agilemultisellerpro.Makeoffer'}
    </button>
</div>

<script>
	var amo_secure_key = "{$amo_secure_key|escape:'htmlall':'UTF-8'}";
	var amo_makeoffer_url = "{$amo_makeoffer_url|escape:'htmlall':'UTF-8'}";
	var amo_please_fill = "{l s='Please enter required fields' d='Modules.Agilemultisellerpro.Makeoffer'}";
</script>

<section>
	<div class="modal fade" id="makeoffer-modal" tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<h3 class="h2"><span id="makeoffer-modal-title" class="icon-information">{l s='Make a price offer' d='Modules.Agilemultisellerpro.Makeoffer'}</span></h3>
				</div>
				<div id="makeoffer-modal-processing" style="display:none;"><center><img src="{$base_dir_ssl|escape:'htmlall':'UTF-8'}modules/agilemultisellerpro/views/img/processing.gif"></center></div>
				<div class="modal-body clearfix" id="makeoffer-modal-content"><!-- Start of body--------------->
					<div class="col-xs-12 col-sm-6">
						<img src="{$link->getImageLink($amo_product->link_rewrite, $amo_product_cover, 'home_default')|escape:'htmlall':'UTF-8'}" alt="{$amo_product->name|escape:html:'UTF-8'}" />
						<div>
							<p><strong>{$amo_product->name|escape:'htmlall':'UTF-8'}</strong></p>
							{$amo_product->description_short nofilter}
						</div>
					</div>
					<div class="col-xs-12 col-sm-6" id="makeoffer-form-content">
							<input id="id_product_comment_send" name="id_product" type="hidden" value="{$amo_product->id|intval}" />
							<input id="sendOfferEmail" name="sendEmail" type="hidden" value="1" />

							<p class="text">
								<label for="your_name">
									{l s='Your name' d='Modules.Agilemultisellerpro.Makeoffer'}<sup class="required">*</sup> :
								</label>
								<input id="your_name" class="form-control" name="your_name" type="text" value="{$amo_your_name|escape:'htmlall':'UTF-8'}"  style="width:100%"/>
							</p>
							<p class="text">
								<label for="your_email">
									{l s='Your email' d='Modules.Agilemultisellerpro.Makeoffer'}<sup class="required">*</sup> :
								</label>
								<input id="your_email" class="form-control" name="your_email" type="text" value="{$amo_your_email|escape:'htmlall':'UTF-8'}"  style="width:100%"/>
							</p>
							<p class="text">
								<label for="your_offer">
									{l s='Your offer' d='Modules.Agilemultisellerpro.Makeoffer'}<sup class="required">*</sup> :
								</label>
								<textarea id="your_offer" class="form-control" name="your_offer" rows="3" style="width:100%"></textarea>
							</p>
							<p class="txt_required">
								<sup class="required">*</sup> Required fields
							</p>
							<p id="makeoffer-error" style="color:red"></p>
					</div><!-- End of body -->
				</div>
				<div class="modal-footer">
                    <button id="makeoffer-modal-send" class="btn btn-primary" type="button" data-dismiss="modal">
                        {l s='Send' d='Modules.Agilemultisellerpro.Makeoffer'}
                    </button>
                    <button id="makeoffer-modal-cancel" class="btn btn-primary" type="button" data-dismiss="modal">
                        {l s='Cancel' d='Modules.Agilemultisellerpro.Makeoffer'}
                    </button>
				</div>
  			</div>
		</div>
	</div>


</section>

