garancia/themes/default/identity.tpl
2016-10-10 15:24:25 +02:00

136 lines
7.3 KiB
Smarty
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{*
* 2007-2013 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-2013 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{capture name=path}<a href="{$link->getPageLink('my-account', true)}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Mes informations personnelles'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<div class="borderGreen auto">
<h1>[{l s='Mes informations personnelles'}]</h1>
{include file="$tpl_dir./errors.tpl"}
{if isset($confirmation) && $confirmation}
<p class="success">
{l s='Your personal information has been successfully updated.'}
{if isset($pwd_changed)}<br />{l s='Your password has been sent to your email:'} {$email}{/if}
</p>
{/if}
<script type="text/javascript">
var alertErrorPasswd="{l s='Votre nouveau mot de passe et la confirmation doivent être identique' js=1}";
var alertError="{l s='Votre nouvel email et la confirmation doivent être identique' js=1}";
{literal}
function checkFormIdentity(){
if($('#newemail').val()!="" && $('#newemail').val()!=$('#confirmnewemail').val()){
alert(alertError);
return false;
}
if($('#passwd').val()!="" && $('#passwd').val()!=$('#confirmation').val()){
alert(alertErrorPasswd);
return false;
}
return true;
}
{/literal}</script>
<form action="{$link->getPageLink('identity', true)}" method="post" class="std" onSubmit="return checkFormIdentity();">
<fieldset>
<h2>{l s='Modifier mes coordonnées'}</h2>
<p class="radio">
<span style="font-size:14px">{l s='Title'}</span>
{foreach from=$genders key=k item=gender}
{if $gender->id==2}<input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id} checked="checked"{/if} />
<label for="id_gender{$gender->id}" class="top">{$gender->name}</label>{/if}
{/foreach}
{foreach from=$genders key=k item=gender}
{if $gender->id==3}<input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id} checked="checked"{/if} />
<label for="id_gender{$gender->id}" class="top">{$gender->name}</label>{/if}
{/foreach}
{foreach from=$genders key=k item=gender}
{if $gender->id==1}<input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id} checked="checked"{/if} />
<label for="id_gender{$gender->id}" class="top">{$gender->name}</label>{/if}
{/foreach}
</p>
<p class="required text">
<label for="firstname">{l s='First name'}</label>
<input type="text" id="firstname" name="firstname" value="{$smarty.post.firstname}" class="inputText276"/>
</p>
<p class="required text">
<label for="lastname">{l s='Last name'}</label>
<input type="text" name="lastname" id="lastname" value="{$smarty.post.lastname}" class="inputText276"/>
</p>
<p class="required text">
<label for="lastname">{l s='Date de naissance'}</label>
<input type="text" value="{$sl_day}/{$sl_month}/{$sl_year}" class="inputText276 readonly" readonly="readonly"/>
<br class="clear"/><small class="grey">{l s='Si vous voulez modifier votre date de naissance, contactez-nous au 01.45.20.32.52'}</small>
</p>
<br class="clear" />
<br class="clear" />
<h2 class="clear">{l s='Modifier mon mot de passe'}</h2>
<p class="required text">
<label for="old_passwd">{l s='Current Password'} <sup>*</sup></label>
<input type="password" name="old_passwd" id="old_passwd" class="inputText276" />
</p>
<p class="password text">
<label for="passwd">{l s='New Password'}</label>
<input type="password" name="passwd" id="passwd" class="inputText276"/>
</p>
<p class="password text">
<label for="confirmation">{l s='Confirmation de mon nouveau mot de passe'}</label>
<input type="password" name="confirmation" id="confirmation" class="inputText276"/>
</p>
<h2 class="clear">{l s='Modifier mon email'}</h2>
<p class="required text">
<label for="email">{l s='Adresse e-mail actuelle'}</label>
{$smarty.post.email}
<input type="hidden" name="email" id="email" value="{$smarty.post.email}" class="inputText276"/>
</p>
<p class="required text">
<label for="email">{l s='Nouvelle adresse e-mail'}</label>
<input type="text" name="newemail" id="newemail" value="" class="inputText276"/>
</p>
<p class="required text">
<label for="email">{l s='Confrimation adresse e-mail'}</label>
<input type="text" name="confirmnewemail" id="confirmnewemail" value="" class="inputText276"/>
</p>
<br class="clear" />
<br class="clear" />
<h2>{l s='Modifier mon abonnement à la newsletter'}</h2>
<p style="line-height:16px;">{l s='Je souhaites recevoir la newsletter, les offres promotionnelles et les'}<br/>{l s='avant-première du Laboratoire Garancia'}</p>
{if $newsletter}
<p class="checkbox">
<input type="checkbox" id="newsletter" name="newsletter" value="1" {if isset($smarty.post.newsletter) && $smarty.post.newsletter == 1} checked="checked"{/if} />
<label for="newsletter">{l s='S\'inscrire à la Newsletter'}</label>
</p>
{/if}
<p><small>{l s='Les informations personnelles vous concernant et collectées dans le cadre du présent site internet sont destinées au Laboratoire Garancia afin de vous fournir les services souscrits. Ces données seront également stockées par le Laboratoire Garancia pour lui permettre de vous adresser des offres commerciales sur ses produits et services, ainsi que pour vous faire profiter du programme de fidélité du Laboratoire Garancia.'}<br/>{l s='Conformément à la loi Informatiques et Libertés du 6 janvier 1978, vous bénéficiez d\'un droit d\'accès, de rectification et de suppression des données personnelles qui vous concernent. Vous pouvez exercer ces droits en nous écrivant par mail ou à l\'adresse suivante: Laboratoire Garancia, 18 Avenue du Recteur Poincaré 75016 PARIS, à laquelle vous pouvez également exercer votre droit d\'opposition à recevoir des offres commerciales. Ce droit vous sera également offert à la réception de tout message.'}</small></p>
<p class="submit">
<a href="{$link->getPageLink('my-account.php')}" class="button back">{l s='Retour à mon compte'}</a>
<input type="submit" class="button" name="submitIdentity" value="{l s='Save'}" />
</p>
</fieldset>
</form>
</div>