bebeboutik/modules/landingpages/home_footer.tpl
Marion Muszynski f2a5d7ba75 fix trad
2017-05-02 11:30:22 +02:00

59 lines
3.2 KiB
Smarty

{if !$cookie->isLogged() && $lp}
<div id="landingpage-connect">
<form action="{$link->getPageLink('authentication.php', true)}" method="post" id="account-creation_form" class="std">
<fieldset>
<h3>{l s='Registered' mod='landingpages'}</h3>
<p class="required text">
<label for="customer_firstname">{l s='First name' mod='landingpages'}</label>
<input onkeyup="$('#firstname').val(this.value);" type="text" class="text" id="customer_firstname" name="customer_firstname" value="{if isset($smarty.request.customer_firstname)}{$smarty.request.customer_firstname}{/if}" />
<sup>*</sup>
</p>
<p class="required text">
<label for="customer_lastname">{l s='Last name' mod='landingpages'}</label>
<input onkeyup="$('#lastname').val(this.value);" type="text" class="text" id="customer_lastname" name="customer_lastname" value="{if isset($smarty.request.customer_lastname)}{$smarty.request.customer_lastname}{/if}" />
<sup>*</sup>
</p>
<p class="required text">
<label for="email">{l s='E-mail' mod='landingpages'}</label>
<input type="text" class="text" id="email" name="email" value="{if isset($smarty.request.email)}{$smarty.request.email}{/if}" />
<sup>*</sup>
</p>
<p class="required password">
<label for="passwd">{l s='Password' mod='landingpages'}</label>
<input type="password" class="text" name="passwd" id="passwd" />
<sup>*</sup>
{*<span class="form_info">{l s='(5 characters min.)'}</span>*}
</p>
{$HOOK_CREATE_ACCOUNT_FORM}
<script type="text/javascript">
$(function() {
var mail = $("#referralprogram").val();
var data = mail.split('@');
if(data[1] == 'bebeboutik.com'){
$("#referralprogram").parent().hide();
}
});
</script>
<fieldset>
{if isset($newsletter) && $newsletter}
<p class="checkbox" >
<input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} />
<label for="newsletter">{l s='Sign up for our newsletter' mod='landingpages'}</label>
</p>
{/if}
</fieldset>
<p class="cart_navigation required submit">
<input type="hidden" name="email_create" value="1" />
<input type="hidden" name="is_new_customer" value="1" />
<input type="hidden" name="lp" value="{$lp}" />
<input type="submit" name="submitAccount" id="submitAccount" value="{l s='Register' mod='landingpages'}" class="exclusive" onclick="if($('#newsletter:checked').length == 0) { alert('{l s='Please accept our terms of use to continue' js=1}'); return false; }" />
<span><sup>*</sup>{l s='Required field' mod='landingpages'}</span>
</p>
</fieldset>
</form>
</div>
<div id="landingpage_overlay"></div>
{/if}