templates/tunnel/simple/register.html.twig line 1
{% extends 'base.html.twig' %}
{% trans_default_domain "tunnel" %}
{% block title %}{% trans %}Informations personnelles{% endtrans %}{% endblock %}
{% block breadcrumb %}
<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">{% trans %}Informations personnelles{% endtrans %}</a></li>
</ol>
</nav>
{% endblock %}
{% block body %}
<script type="text/javascript">
<!--
$(document).ready(function() {
$('#form #form_save').click(function () {
{# fbq('track', 'CompleteRegistration'); #}
$('#subscriptionChoices form').submit();
return false;
});
const cguModal = document.getElementById('cguModal')
cguModal.addEventListener('show.bs.modal', event => {
$.get('{{ url('tunnel_cg', {'locale': app.request.locale}) }}',
function(data) {
const modalBody = cguModal.querySelector('.modal-body');
modalBody.innerHTML = data;
});
return false;
});
if (/Android|iPhone/i.test(navigator.userAgent)) {
$('#testWarning').show();
console.log('smartphone');
} else {
$('#testWarning').hide();
console.log('pc');
}
});
-->
</script>
<style>
#guest_nav {
display: none;
}
.acceptCGU {
color: #4c4e66;
font-family: Verdana;
font-size: 11px;
}
ul.mixColors {
list-style: none; /* Remove HTML bullets */
padding: 0;
margin: 0;
}
ul.mixColors li:nth-child(even)::before {
color: #F26528;
}
ul.mixColors li::before {
content: "•";
color: #30AADE;
font-size: 1.3em;
padding: 0 8px 0 0;
}
ul.mixColors li {
margin: 10px 0;
font-size: 1.4em;
}
</style>
<header>
</header>
<main id="subscriptionChoices">
<div class="message my-5" style="font-weight: bold;text-align: center;font-size: 21px;">
<span style="color:#4C4E66;font-size: 23px;">{% trans %}Testez SpeakyPlanet gratuitement{% endtrans %}</span><br/>
<span style="color:#f26528">{% trans %}Uniquement sur Ordinateur{% endtrans %}</span>
</div>
<div id="testWarning" class="my-5 text-break" style="display: none;">
<ul class="mixColors">
<li>Le test gratuit est accessible uniquement sur ordinateur</li>
<li>Veuillez vous munir d'un ordinateur et vous rendre sur {{ url('tunnel_simple_register', {}) }}</li>
<li>Si vous décidez de vous abonner ensuite, vous pourrez accéder à SpeakyPlanet sur ordinateur, tablette et smartphone</li>
</ul>
</div>
<div class="row justify-content-between">
<div class="col-md-8 col-lg-6">
{#{{ form(form, {'translation_domain': 'tunnel'}) }}#}
{{ form_start(form) }}
{{ form_row(form.username) }}
{{ form_row(form.email) }}
{{ form_row(form.plainPassword) }}
<div class="acceptCGU fst-italic">
<span>
{% trans %}En cliquant sur "J'inscris mon enfant", j'accepte les{% endtrans %} <a href="#" data-bs-toggle="modal" data-bs-target="#cguModal">{% trans %}conditions générales d’utilisation{% endtrans %}</a>.
</span>
</div>
<br/>
{{ form_row(form.submit, {}) }}
{{ form_end(form) }}
</div>
<div class="col-md-4 col-sm-12 text-center">
<img class="" src="{{ asset('images/default/confirmationSpeaky.jpg') }}" alt="">
<hr class="my-2 w-75 m-auto" />
Déjà inscrit ? <a href="{{ path('app_login', {}) }}" class="">{% trans %}Connectez-vous{% endtrans %}</a>
<br/>
<br/>
<br/>
</div>
</div>
</main>
<!-- Modal -->
<div class="modal fade" id="cguModal" tabindex="-1" aria-labelledby="cguModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="cguModalLabel">{% trans %}conditions générales de vente{% endtrans %}</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="spinner-border text-info" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{% trans %}Continuer{% endtrans %}</button>
</div>
</div>
</div>
</div>
{% endblock %}