{*
* 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
*}
{extends file='page.tpl'}

{block name='page_title'}
	{l s='Seller Signup' d='Shop.Theme.Customeraccount'}
{/block}

{block name='page_content'}

	{block name='register_form_container'}
		<section class="register-form">
			<form id="seller_signup_form" action="{$link->getModuleLink('agilemultisellerpro', 'sellersignup', [], true)|escape:'htmlall':'UTF-8'}" enctype="multipart/form-data" method="post" class="form-horizontal std">
				{block "form_fields"}
					{if isset($select_address)}<input type="hidden" name="select_address" value="{$select_address|intval}" />{/if}
					{foreach from=$formFields item="field"}
						{block "form_field"}
							{if $field.isAgileForm}
								{include file="module:agilemultisellerpro/views/templates/front/_partials/form-fields.tpl"
									languages=$languages
									field=$field
								}
							{elseif $field.type === "password"}
								<div class="field-password-policy">
								{form_field field=$field}
								</div>
							{else}
								{form_field field=$field}
							{/if}
						{/block}
					{/foreach}
				{/block}

				{block name='customer_form_footer'}
					<footer class="form-footer clearfix text-xs-center">
						<input type="hidden" name="signin" id="signin" value="1"/>
						<input type="hidden" name="submitSellerinfo" value="1">
						{block "form_buttons"}
							<button class="btn btn-primary form-control-submit" data-link-action="save-customer" type="submit">
								{l s='Register' d='Shop.Theme.Actions'}
							</button>
						{/block}
					</footer>
				{/block}
			</form>
		</section>
	{/block}
{/block}

{block name='javascript_bottom'}
    {$smarty.block.parent}

	<script type="text/javascript">
	$(document).ready(function () {
		typeof tinySetup != 'undefined' && tinySetup(
		{
			selector: ".rte",
			toolbar1: "code,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,|,blockquote,colorpicker,pasteword,|,bullist,numlist,|,outdent,indent,|,link,unlink,|,cleanup"
		});

		$("a#seller_terms").fancybox({
			'type': 'iframe',
			'width': 600,
			'height': 600
		});
	});

	</script>

{/block}
