templates/tunnel_gift/choose.html.twig line 1
{% extends 'base.html.twig' %}
{% trans_default_domain "tunnel" %}
{% block title %}{% trans %}Offrir SpeakyPlanet{% endtrans %} | {% trans %}SpeakyPlanet{% endtrans %}{% endblock %}
{% block breadcrumb %}
<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item active" aria-current="page">{% trans %}Offrir SpeakyPlanet{% endtrans %}</li>
</ol>
</nav>
{% endblock %}
{% block pageTitle %}{% trans %}Offrir SpeakyPlanet{% endtrans %}{% endblock %}
{% block body %}
<script type="text/javascript">
<!--
$(document).ready(function() {
$('#subscriptionChoices button.choose').click(function () {
$('#subscriptionChoices .spForm #fChoice').val($(this).attr('id'));
$('#subscriptionChoices .spForm').submit();
return false;
});
});
-->
</script>
<style>
#guest_nav {
display: none;
}
.pricing-header h1 {
font-weight: bold;
color: #f26528;
text-transform: uppercase;
line-height: 1.2em;
}
.pricing-header h3 {
font-weight: bold;
font-size: 1.17em;
}
.col .card-header {
border: none;
background-color: #A8D4E6;
}
.col .card {
border-color: #A8D4E6;
border-radius: 0.3rem!important;
border-width: thick;
}
.col .card .card-header h4 {
color: #FFFFFF !important;
font-weight: bold !important;
}
.col .card.border-primary {
border-color: #F28431 !important;
}
.col .card.border-primary .card-header {
background-color: #F28431 !important;
}
.col .card button{
border: 1px solid #F28431 !important;
background-color: #F28431 !important;
font-weight: bold;
color: #FFFFFF;
}
.col .card button:hover{
background-color: #FFFFFF !important;
color: #F28431;
}
.col .card .subText {
font-weight: bold;
color: #F28431;
}
.col .card .month{
font-size: 0.8em;
font-weight: bold;
color: #4C4E66;
width: 90%;
}
</style>
<header>
<div class="my-4">
<strong>{% trans %}Vous cherchez une idée cadeau ?{% endtrans %}</strong><br/>
{% trans %}Offrez un abonnement SpeakyPlanet à la personne de votre choix :{% endtrans %} <br/>
{% trans %}pour votre fils, votre fille, un copain, une copine, un petit-fils…{% endtrans %}<br/><br/>
<div class="clearfix"></div>
<div class="bloc_gift orange" style="">
<strong class="subscribeMessage">{% trans %}Pourquoi offrir un abonnement SpeakyPlanet ?{% endtrans %}</strong>
<br/><br/>
<div>
<img alt="Accès illimité - SpeakyPlanet" src="{{ asset('images/tunnel_gift/01.jpg') }}" width="93" height="45">
<span style="">{% trans with {'%nb%': 200} %}<strong>Accès illimité</strong> à plus de %nb% jeux SpeakyPlanet{% endtrans %}</span>
</div>
<div>
<img alt="Yes - SpeakyPlanet" src="{{ asset('images/tunnel_gift/02.jpg') }}" width="50" height="33">
<span style="">{% trans with {'%nbWords%' : wordsNb} %}<strong>Plus de %nbWords% mots anglais</strong> à mémoriser en jouant{% endtrans %}</span>
</div>
<div>
<img alt="Planète Speaky - SpeakyPlanet" src="{{ asset('images/tunnel_gift/03.jpg') }}" width="86" height="48">
<span style="">{% trans %}Un tableau de bord personnalisé intitulé <strong>Ma Planète Speaky</strong> pour <strong>suivre ses progrès</strong>{% endtrans %}</span>
</div>
<div>
<img alt="3 - SpeakyPlanet" src="{{ asset('images/tunnel_gift/04.jpg') }}" width="31" height="41">
<span style="">{% trans %}<strong>Tous les mois, 3 nouveaux jeux</strong> spécialement conçus pour devenir bilingue en anglais !{% endtrans %}</span>
</div>
</div>
<br/><br/>
<span class="subscribeMessage"><i>{% trans %}L’abonnement débutera dès que l'enfant se sera inscrit sur SpeakyPlanet (aucune journée de perdue !){% endtrans %}</i></span>
<br/><br/>
<span class="subscribeMessage">{% trans %}Pour commencer, choisissez votre abonnement-cadeau :{% endtrans %} </span>
</div>
</header>
<main id="subscriptionChoices">
<form class="spForm" method="POST" action="{{ url('tunnel_gift_register') }}" novalidate >
<input id="fChoice" type="hidden" name="subscription" value="{{ choice }}" />
{% if not isPromoUrl %}
<div class="row row-cols-1 row-cols-md-4 mb-3 justify-content-evenly text-center">
<div class="col">
<div class="card mb-4 mt-4 rounded-3 shadow-sm">
<div class="card-header py-3">
<h4 class="my-0 fw-normal">{{ prices[0].amount }} {{ "string.months"|trans({'%count%': prices[0].amount}) }}</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">{{ (prices[0].priceMonth ~ ' ' ~ prices[0].currency) |pricetag(prices[0].countryCode)|raw }} <small class="text-muted fw-light fs-5">{% trans %}/mois{% endtrans %}</small></h1>
<ul class="list-unstyled mt-3 mb-4">
<li> </li>
<li><button type="button"id="choice1" class="choose w-100 btn btn-lg btn-outline-primary mb-2">{% trans %}Choisir{% endtrans %}</button></li>
<li class="month">
{% trans %}prélèvement unique de{% endtrans %} {{ (prices[0].price ~ ' ' ~ prices[0].currency)|raw }}
</li>
</ul>
</div>
</div>
</div>
<div class="col">
<div class="card mb-4 mt-4 rounded-3 shadow-sm">
<div class="card-header py-3">
<h4 class="my-0 fw-normal">{{ prices[1].amount }} {{ "string.months"|trans({'%count%': prices[1].amount}) }}</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">{{ (prices[1].priceMonth ~ ' ' ~ prices[1].currency) |pricetag(prices[1].countryCode)|raw }} <small class="text-muted fw-light fs-5">{% trans %}/mois{% endtrans %}</small></h1>
<ul class="list-unstyled mt-3 mb-4">
<li> </li>
<li><button type="button"id="choice2" class="choose w-100 btn btn-lg btn-outline-primary mb-2">{% trans %}Choisir{% endtrans %}</button></li>
<li class="month">{% trans %}prélèvement unique de{% endtrans %} {{ (prices[1].price ~ ' ' ~ prices[1].currency)|raw }}</li>
</ul>
</div>
</div>
</div>
<div class="col">
<div class="card mb-4 rounded-3 shadow-sm border-primary">
<div class="card-header py-3">
<h4 class="my-0 fw-normal">{{ prices[2].amount }} {{ "string.months"|trans({'%count%': prices[2].amount}) }}</h4>
</div>
<div class="card-body">
<br/>
<h1 class="card-title pricing-card-title">{{ (prices[2].priceMonth ~ ' ' ~ prices[2].currency) |pricetag(prices[2].countryCode)|raw }} <small class="text-muted fw-light fs-5">{% trans %}/mois{% endtrans %}</small></h1>
<ul class="list-unstyled mt-3 mb-4">
<li> </li>
<li><button type="button"id="choice3" class="choose w-100 btn btn-lg btn-primary mb-2">{% trans %}Choisir{% endtrans %}</button></li>
<li class="month">{% trans %}prélèvement unique de{% endtrans %} {{ (prices[2].price ~ ' ' ~ prices[2].currency)|raw }}</li>
</ul>
</div>
</div>
</div>
<div class="col">
<div class="card mb-4 mt-4 rounded-3 shadow-sm">
<div class="card-header py-3">
<h4 class="my-0 fw-normal">{{ prices[3].amount }} {{ "string.months"|trans({'%count%': prices[3].amount}) }}</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">{{ (prices[3].priceMonth ~ ' ' ~ prices[3].currency) |pricetag(prices[3].countryCode)|raw }} <small class="text-muted fw-light fs-5">{% trans %}/mois{% endtrans %}</small></h1>
<ul class="list-unstyled mt-3 mb-4">
<li> </li>
<li><button type="button"id="choice4" class="choose w-100 btn btn-lg btn-outline-primary mb-2">{% trans %}Choisir{% endtrans %}</button></li>
<li class="month">{% trans %}prélèvement unique de{% endtrans %} {{ (prices[3].price ~ ' ' ~ prices[3].currency)|raw }}</li>
</ul>
</div>
</div>
</div>
</div>
{% else %}
<div class="row row-cols-1 row-cols-md-3 mb-3 justify-content-evenly text-center">
<div class="col">
<div class="card mb-4 rounded-3 shadow-sm">
<div class="card-header py-3">
<h4 class="my-0 fw-normal">{% trans %}Mensuel{% endtrans %}</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">{{ (prices[0].priceMonth ~ ' ' ~ prices[0].currency) |pricetag(prices[0].countryCode)|raw }}<small class="text-muted fw-light fs-5">{% trans %}/mois{% endtrans %}</small></h1>
<ul class="list-unstyled mt-2 mb-2">
<li> </li>
<li> </li>
<li><button type="button"id="choice1" class="choose w-75 btn btn-lg btn-outline-primary mb-2">{% trans %}Choisir{% endtrans %}</button></li>
<li class="month">
{% trans %}prélèvement unique de{% endtrans %} {{ (prices[0].price ~ ' ' ~ prices[0].currency)|raw }}
</li>
</ul>
</div>
</div>
</div>
<div class="col">
<div class="card mb-4 rounded-3 shadow-sm border-primary">
<div class="card-header py-3">
<h4 class="my-0 fw-normal">{% trans %}Semestriel{% endtrans %}</h4>
</div>
<div class="card-body">
<h1 class="card-title pricing-card-title">{{ (prices[1].priceMonth ~ ' ' ~ prices[1].currency) |pricetag(prices[1].countryCode)|raw }}<small class="text-muted fw-light fs-5">{% trans %}/mois{% endtrans %}</small></h1>
<ul class="list-unstyled mt-2 mb-2">
<li class="subText">{% trans %}au lieu de{% endtrans %} {{ (prices[0].basePriceMonth ~ ' ' ~ prices[1].currency) |pricedisplay()|raw }}{% trans %}/mois{% endtrans %}</li>
<li> </li>
<li><button type="button"id="choice2" class="choose w-75 btn btn-lg btn-primary mb-2">{% trans %}Choisir{% endtrans %}</button></li>
<li class="month">{% trans %}prélèvement unique de{% endtrans %} {{ (prices[1].price ~ ' ' ~ prices[1].currency)|raw }}</li>
</ul>
</div>
</div>
</div>
</div>
{% endif %}
</form>
</main>
<div class="text-center my-2">
*
{% if displayReduction %}
{% trans with {'%reduction%' : montantReduction, '%code%' : codeReduction} %}Vous bénéficiez actuellement de <span class="orange"><b>%reduction%%%</b></span> de réduction grâce au code promo <span class="orange">%code%</span>.{% endtrans %}
{% else %}
{% if "now"|date('z') < 31 %}
{{ (('tunnel-promo-1')|trans({'%reduction%' : '<span class="orange"><b>30%</b></span>'}))|raw }}
{% elseif "now"|date('z') < 74 %}
{{ (('tunnel-promo-2')|trans({'%reduction%' : '<span class="orange"><b>30%</b></span>'}))|raw }}
{% elseif "now"|date('z') < 166 %}
{{ (('tunnel-promo-3')|trans({'%reduction%' : '<span class="orange"><b>30%</b></span>'}))|raw }}
{% elseif "now"|date('z') < 226 %}
{{ (('tunnel-promo-4')|trans({'%reduction%' : '<span class="orange"><b>30%</b></span>'}))|raw }}
{% elseif "now"|date('z') < 272 %}
{{ (('tunnel-promo-5')|trans({'%reduction%' : '<span class="orange"><b>30%</b></span>'}))|raw }}
{% elseif "now"|date('z') < 333 %}
{{ (('tunnel-promo-6')|trans({'%reduction%' : '<span class="orange"><b>30%</b></span>'}))|raw }}
{% else %}
{{ (('tunnel-promo-7')|trans({'%reduction%' : '<span class="orange"><b>30%</b></span>'}))|raw }}
{% endif %}
{% endif %}
<br/>
{% trans %}Le prix affiché tient compte de la réduction.{% endtrans %}
</div>
<br/>
<br/>
<div class="clearfix" style="width: 70%; margin: 0px auto;">
<form id="formPromoCode" action="{{ url('tunnel_gift_register') }}" method="post">
<div style="float:left; font-size: 12px; font-weight: bold; color: #4795CE; padding: 5px 10px 0px 0;">{% trans %}Utilisez un code promo :{% endtrans %}</div>
<input style="margin-top: 2px;" type="text" name="cp" />
<input type="submit" value="{% trans %}Ok{% endtrans %}" />
</form>
</div>
<br/>
<br/>
<br/>
{% endblock %}