privilegedemarque/themes/site/identity.tpl
Serveur preprod f0c0c48223 first push
2016-04-14 16:14:31 +02:00

272 lines
12 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-2014 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-2014 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)|escape:'html':'UTF-8'}">
{l s='My account'}
</a>
<span class="navigation-pipe">
{$navigationPipe}
</span>
<span class="navigation_page">
{l s='Your personal information'}
</span>
{/capture}
<div class="row">
<div class='snotmobile col-xs-3 left-account'>
<div class="block-left-account">
<h2 class="account">{l s='Votre compte'}</h2>
<ul>
<li>
<a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Mes commandes'}">
{l s='Mes commandes'}
</a>
</li>
<li class="active">
<a href="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" title="{l s='Mes infos personnelles'}">
{l s='Mes infos personnelles'}
</a>
</li>
<li>
<a href="{$link->getPageLink('addresses', true)|escape:'html':'UTF-8'}" title="{l s='Mon carnet d\'adresse'}">
{l s='Mon carnet d\'adresse'}
</a>
</li>
<li>
<a href="{$link->getPageLink('order-slip', true)|escape:'html':'UTF-8'}" title="{l s='Mes avoirs'}">
{l s='Mes avoirs'}
</a>
</li>
<li>
<a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}" title="{l s='Mes retours produits'}">
{l s='Mes retours produits'}
</a>
</li>
<li>
<a href="{$link->getModuleLink('ant_nw_frequences','frequence')|escape:'html':'UTF-8'}" title="{l s='Mes Newsletters'}">
{l s='Mes newsletters'}
</a>
</li>
</ul>
</div>
<div class="block-left-account">
<h2 class="vouchers">{l s='Mes bons d\'achats'}</h2>
<ul>
<li>
<a href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}" title="{l s='Mes bons d\'achats'}">
{l s='Mes bons d\'achats'}
</a>
</li>
{hook h='displayCustomerAccount' }
</ul>
</div>
</div>
<div class='col-xs-12 col-sm-9 right-account'>
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'} " class="smobile btn-back" >
{l s='Retour au compte'}
</a>
<h1 class="page-heading bottom-indent">{l s='Your personal information'}<span class="shape-red-long"></span></h1>
{include file="$tpl_dir./errors.tpl"}
{if isset($confirmation) && $confirmation}
<p class="alert alert-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>
{else}
<p>
{l s='Please be sure to update your personal information if it has changed.'}
</p>
<form action="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" method="post" class="std">
<fieldset>
<div class="clearfix">
{foreach from=$genders key=k item=gender}
<div class="radio-inline">
<label for="id_gender{$gender->id}" class="top">
<input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id|intval}" {if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id}checked="checked"{/if} />
{$gender->name}</label>
</div>
{/foreach}
</div>
<div class="row">
<div class="required form-group col-xs-12 col-sm-6">
<label for="firstname">
{l s='First name'} <sup>*</sup>
</label>
<input class="is_required validate form-control" data-validate="isName" type="text" id="firstname" name="firstname" value="{$smarty.post.firstname}" />
</div>
<div class="required form-group col-xs-12 col-sm-6">
<label for="lastname">
{l s='Last name'} <sup>*</sup>
</label>
<input class="is_required validate form-control" data-validate="isName" type="text" name="lastname" id="lastname" value="{$smarty.post.lastname}" />
</div>
<div class="clearfix"></div>
<div class="required form-group col-xs-12 col-sm-6">
<label for="email">
{l s='E-mail address'} <sup>*</sup>
</label>
<input class="is_required validate form-control" data-validate="isEmail" type="email" name="email" id="email" value="{$smarty.post.email}" />
</div>
<div class="clearfix"></div>
<div class="form-group col-xs-12">
<label>
{l s='Date of Birth'}
</label>
<div class="row">
<div class="col-xs-4 col-sm-4">
<select name="days" id="days" class="form-control">
<option value="">-</option>
{foreach from=$days item=v}
<option value="{$v}" {if ($sl_day == $v)}selected="selected"{/if}>{$v}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
<div class="col-xs-4 col-sm-4">
<select id="months" name="months" class="form-control">
<option value="">-</option>
{foreach from=$months key=k item=v}
<option value="{$k}" {if ($sl_month == $k)}selected="selected"{/if}>{l s=$v}&nbsp;</option>
{/foreach}
</select>
</div>
<div class="col-xs-4 col-sm-4">
<select id="years" name="years" class="form-control">
<option value="">-</option>
{foreach from=$years item=v}
<option value="{$v}" {if ($sl_year == $v)}selected="selected"{/if}>{$v}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="required form-group col-xs-12 col-sm-6">
<label for="old_passwd">
{l s='Current Password'} <sup>*</sup>
</label>
<input class="is_required form-control" type="password" name="old_passwd" id="old_passwd" />
</div>
<div class="clearfix"></div>
<div class="password form-group col-xs-12 col-sm-6">
<label for="passwd">
{l s='New Password'}
</label>
<input class="is_required form-control" type="password" name="passwd" id="passwd" />
</div>
<div class="password form-group col-xs-12 col-sm-6">
<label for="confirmation">
{l s='Confirmation'}
</label>
<input class="is_required form-control" type="password" name="confirmation" id="confirmation" />
</div>
<div class="clearfix"></div>
{if isset($is_pro) && $is_pro}
<input type="hidden" name="check_b2b" value="1" />
<div class="form-group col-xs-12 col-sm-6">
<label>
{l s='Segmentation'}
</label>
<div class="row">
<div class="col-xs-12">
<select name="segmentation" id="segmentation" class="form-control">
<option value="">-</option>
<option value="1" {if ($smarty.post.segmentation == 1)}selected="selected"{/if}>{l s='hôtel'}&nbsp;&nbsp;</option>
<option value="2" {if ($smarty.post.segmentation == 2)}selected="selected"{/if}>{l s='restaurant'}&nbsp;&nbsp;</option>
<option value="3" {if ($smarty.post.segmentation == 3)}selected="selected"{/if}>{l s='café'}&nbsp;&nbsp;</option>
<option value="4" {if ($smarty.post.segmentation == 4)}selected="selected"{/if}>{l s='gîte'}&nbsp;&nbsp;</option>
<option value="5" {if ($smarty.post.segmentation == 5)}selected="selected"{/if}>{l s='boite de nuit/ bar'}&nbsp;&nbsp;</option>
<option value="6" {if ($smarty.post.segmentation == 6)}selected="selected"{/if}>{l s='métiers de bouche'}&nbsp;&nbsp;</option>
<option value="7" {if ($smarty.post.segmentation == 7)}selected="selected"{/if}>{l s='maison dhôtes'}&nbsp;&nbsp;</option>
<option value="8" {if ($smarty.post.segmentation == 8)}selected="selected"{/if}>{l s='collectivités'}&nbsp;&nbsp;</option>
<option value="9" {if ($smarty.post.segmentation == 9)}selected="selected"{/if}>{l s='traiteur'}&nbsp;&nbsp;</option>
<option value="10" {if ($smarty.post.segmentation == 10)}selected="selected"{/if}>{l s='centre de tourisme'}&nbsp;&nbsp;</option>
{* <option value="11" {if ($smarty.post.segmentation == 11)}selected="selected"{/if}>{l s='Un particulier amateur/amatrice'}&nbsp;&nbsp;</option> *}
</select>
</div>
</div>
</div>
{/if}
</div>
{if $newsletter}
{*<div class="checkbox">
<label for="newsletter">
<input type="checkbox" id="newsletter" name="newsletter" value="1" {if isset($smarty.post.newsletter) && $smarty.post.newsletter == 1} checked="checked"{/if}/>
{l s='Sign up for our newsletter!'}
</label>
</div>
<div class="checkbox">
<label for="optin">
<input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin == 1} checked="checked"{/if}/>
{l s='Receive special offers from our partners!'}
</label>
</div>*}
<input type="hidden" name="optin" id="optin" {if isset($smarty.post.optin) && $smarty.post.optin == 1}value="1"{else}value="0"{/if}/>
<input type="hidden" name="newsletter" id="newsletter" {if isset($smarty.post.newsletter) && $smarty.post.newsletter == 1}value="1"{else}value="0"{/if}/>
{/if}
{if $b2b_enable}
<div class="row">
<div class="form-group col-xs-12 col-sm-6">
<label for="">{l s='Company'}</label>
<input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />
</div>
<div class="form-group col-xs-12 col-sm-6">
<label for="siret">{l s='SIRET'}</label>
<input type="text" class="form-control" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}" />
</div>
<div class="form-group col-xs-12 col-sm-6">
<label for="ape">{l s='APE'}</label>
<input type="text" class="form-control" id="ape" name="ape" value="{if isset($smarty.post.ape)}{$smarty.post.ape}{/if}" />
</div>
<div class="form-group col-xs-12 col-sm-6">
<label for="website">{l s='Website'}</label>
<input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}" />
</div>
</div>
{/if}
<div class="row">
<div class="submit2 col-xs-12">
<p class="required left">
<sup>*</sup>{l s='Required field'}
</p>
<button type="submit" id="submitIdentity" name="submitIdentity" class="button-grey right">
<span>{l s='Save'}</span>
</button>
<div class="clearfix"></div>
</div>
</div>
<p id="security_informations" class="text-right">
<br/>
<i>{l s='[Insert customer data privacy clause here, if applicable]'}</i>
</p>
</fieldset>
</form> <!-- .std -->
{/if}
</div>
</div>