templates/tunnel/price.html.twig line 1
{% extends 'base.html.twig' %}
{% trans_default_domain "tunnel" %}
{% block title %}{% trans %}S'abonner à SpeakyPlanet - Formule sans engagement{% endtrans %}{% endblock %}
{% block breadcrumb %}
<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item active" aria-current="page">{% trans %}Formule d'abonnement{% endtrans %}</li>
</ol>
</nav>
{% endblock %}
{% block body %}
<script type="text/javascript">
<!--
$(document).ready(function() {
$('#subscriptionChoices button.choose').click(function () {
{# fbq('track', 'InitiateCheckout'); #}
$('#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;
}
</style>
<header>
<div class="pricing-header p-3 pb-md-4 mx-auto text-center">
<h1 class="center">{% trans %}ACCÈS ILLIMITÉ À TOUT SPEAKYPLANET{% endtrans %}</h1>
<h3 class="center">{% trans %}Sur ordinateur, tablette et smartphone{% endtrans %}</h3>
<h1 class="center">{% trans %}SANS ENGAGEMENT DE DURÉE{% endtrans %}</h1>
<h3 class="center">{% trans %}Les demandes de désabonnement se font à contact@speakyplanet.com{% endtrans %}</h3>
<h1 class="center">{% trans %}SATISFAIT OU REMBOURSÉ{% endtrans %}</h1>
<h3 class="center">{% trans %}Les demandes de remboursement se font sous 48H à contact@speakyplanet.com{% endtrans %}</h3>
</div>
</header>
<br/>
<br/>
<main id="subscriptionChoices">
<form class="spForm" method="POST" action="{{ url(route) }}" novalidate >
<input id="fChoice" type="hidden" name="subscription" value="{{ choice }}" />
<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">
{% if prices[0].amount == 1 %}
{% trans %}prélevés tous les mois{% endtrans %}<br/><br/>
{% else %}
{{ prices[0].price }}{% trans with {'%nb%' : prices[0].amount} %}prélevés<br/>tous les %nb% mois{% endtrans %}
{% endif %}
</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[0].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">{{ (prices[1].price ~ ' ' ~ prices[1].currency)|raw }} {% trans with {'%nb%' : prices[1].amount} %}prélevés<br/>tous les %nb% mois{% endtrans %}</li>
</ul>
</div>
</div>
</div>
</div>
</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(route) }}" 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 %}