{% extends "Theme/Users/User/layoutoffert.html.twig" %}
{% block meta %}
{{ parent() }}
<meta name="keywords" content="{{ site }}, {{ keywords }}"/>
<meta name="author" content="Noel Kenfack"/>
<meta name="description" content="{{ site }} - Souscription Chantier"/>
{% endblock %}
{% block title %}
{{ parent() }} - Souscription Chantier
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style>
:root {
--side-padding: 50px;
--main-color: #1890ff;
--shadow-color: rgba(0,0,0,.1);
--text-font-size: 18px;
}
p {
font-size: var(--text-font-size);
}
.feature-image {
height: 32rem;
background-size: cover;
-webkit-box-shadow: 0 40px 50px var(--shadow-color);
-moz-box-shadow: 0 40px 50px var(--shadow-color);
box-shadow: 0 40px 50px var(--shadow-color);
}
.site-main {
width: 100%;
margin-right: auto;
margin-left: auto;
background-color: #fff;
}
@media (min-width: 768px) {
.site-main {
width: 80%;
}
}
@media (min-width: 992px) {
.site-main {
width: 70%;
}
}
@media (min-width: 1200px) {
.site-main {
width: 60%;
}
}
.drop-cap:first-letter {
float: left;
margin-right: 0.25em;
color: #222;
text-transform: uppercase;
font-weight: 700;
font-size: 100px;
line-height: 1;
}
.article-content {
background-color: transparent;
padding: 0;
}
.article-header {
margin-top: -160px;
background-color: #fff;
box-shadow: 0 -23px 50px var(--shadow-color);
padding: 50px var(--side-padding);
}
.featured-image-wrap{
position: relative;
}
.entry-cats {
margin-bottom: 10px;
}
.entry-cats a {
display: inline-block;
background: var(--main-color);
text-decoration: none;
color: white;
padding: 4px 8px;
font-weight: 500;
text-transform: uppercase;
}
.entry-title {
font-weight: 900;
}
.article-text-wrap {
padding: 0 var(--side-padding);
}
/* .avatar {
vertical-align: middle;
width: 128px;
height: 128px;
border-radius: 50%;
} */
.avatar img {
object-fit: cover;
border-radius: 50%;
}
.author {
margin-top: 25px;
display: flex;
}
.inner-meta {
margin-left: 20px;
display: -webkit-flex; /* Safari */
-webkit-justify-content: space-around; /* Safari 6.1+ */
display: flex;
flex-direction: column;
justify-content: space-around;
}
.created-by {
text-transform: uppercase;
text-decoration: none;
font-weight: 700;
color: var(--main-color);
}
.created-at {
color: grey;
}
.entry-summary {
position: relative;
font-size: 18px;
padding-bottom: 55px;
margin-bottom: 35px;
color: #000;
font-weight: 300;
line-height: 1.55;
font-style: italic;
}
.entry-summary:after {
content: "..........................................";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
letter-spacing: 4px;
color: var(--main-color);
overflow: hidden;
}
.article-source {
font-size: 18px;
}
.article-source a {
color: #1890ff;
}
.share {
padding-bottom: 20px;
}
.entry-footer {
padding: 50px var(--side-padding);
}
.entry-footer .entry-tags a {
margin-right: 8px;
color: #757575;
font-weight: 700;
text-decoration: none;
text-transform: uppercase;
}
.entry-footer .entry-tags a:before {
content: "#";
padding-right: 1px;
}
.links-meta{
text-transform: uppercase;
font-weight: 900;
}
.nl-process {
padding-top: 30px;
}
.process-list {
display: table;
table-layout: fixed;
width: 100%;
counter-reset: process-count;
height: 54px;
}
.complete-hint {
display: none;
width: 54px;
height: 54px;
background: #69be38;
border-radius: 50%;
text-align: center;
position: absolute;
left: calc(50% - 24px);
top: 23px;
z-index: 3;
}
.complete-hint i {
line-height: 54px;
color: #fff;
font-size: 28px;
}
.complete-hint.is-show {
display: block;
-webkit-animation: scale0to1 160ms forwards;
animation: scale0to1 160ms forwards;
}
.complete-hint.is-hide {
display: none;
}
.process-item {
display: table-cell;
text-align: center;
}
.process-item:first-child {
pointer-events: none;
}
.process-item:first-child .process-content:before {
display: none;
}
.process-item:last-child .process-content:after {
display: none;
}
.process-item:last-child .process-active-bar {
display: none !important;
}
.process-content {
position: relative;
}
.process-content .process-active-bar, .process-content:before, .process-content:after {
content: '';
position: absolute;
background: #e5e5e6;
border-radius: 2px;
height: 4px;
top: 12px;
-webkit-transition: all 120ms ease-in;
transition: all 120ms ease-in;
}
.process-content .process-active-bar {
position: absolute;
background: green;
z-index: 2;
left: calc(50% + 20px);
right: calc(100% - 20px);
-webkit-transition: all 300ms ease-out;
transition: all 300ms ease-out;
}
.process-content:before {
right: calc(50% + 20px);
left: -2px;
}
.process-content:after {
left: calc(50% + 20px);
right: 0;
z-index: 1;
}
.process-content .circle {
position: relative;
background: #e5e5e6;
display: inline-block;
border-radius: 50%;
width: 28px;
height: 28px;
line-height: 28px;
text-align: center;
-webkit-transition: all 300ms ease-in;
transition: all 300ms ease-in;
}
.process-content .circle span {
color: #999;
}
.process-content .circle span:before {
counter-increment: process-count;
content: counter(process-count);
}
.process-content .des {
padding-top: 5px;
padding: 5px 10px;
box-sizing: border-box;
}
.process-content .des span {
color: #f4f4f4;
-webkit-transition: color 120ms ease-in;
transition: color 120ms ease-in;
}
.process-item.is-active .process-content .process-active-bar {
display: block;
right: calc(-50% + 20px);
}
.process-item.is-active .process-content .circle {
background: green;
}
.process-item.is-active .process-content .circle span {
color: #fff;
display: inline-block;
-webkit-animation: scale0to1 300ms forwards;
animation: scale0to1 300ms forwards;
}
.process-item.is-active .process-content .circle span:before {
content: "\f00c";
font: normal normal normal 14px/1 FontAwesome;
}
.process-item.is-active .process-content .des span {
color: #6f6f6f;
}
.process-item.is-current .process-content .circle {
background: #ff9c23;
}
.process-item.is-current .process-content .circle span {
color: #fff;
}
.process-item.is-current .process-content .des span {
color: #6f6f6f;
}
.process-item.all-complete .process-content .process-active-bar, .process-item.all-complete .process-content:before, .process-item.all-complete .process-content:after,
.process-item.all-complete .process-content .des {
width: 0;
opacity: 0;
}
.process-item.all-complete .process-content .circle {
-webkit-transform: scale(0);
transform: scale(0);
}
.footer {
text-align: center;
padding-top: 50px;
}
.footer .footer-btn {
font-size: 24px;
color: #fff;
padding: 15px 80px;
background: #ff9c23;
border: 0;
border-radius: 4px;
-webkit-transition: background 120ms ease-in;
transition: background 120ms ease-in;
cursor: pointer;
display: inline-block;
}
.footer .footer-btn.is-ghost {
background: transparent;
color: #ff9c23;
box-shadow: inset 0 0 0 2px #ff9c23;
}
.footer .footer-btn:hover {
background: #ffa73d;
color: #fff;
}
.footer .footer-btn:active {
background: #ff910a;
}
.footer .footer-btn.is-show {
display: inline-block;
}
.footer .footer-btn.is-hide {
display: none;
}
.footer .footer-btn.is-slidedown {
-webkit-animation: slideDown 120ms forwards;
animation: slideDown 120ms forwards;
}
.footer .footer-btn.is-slideup {
-webkit-animation: slideUp 120ms forwards;
animation: slideUp 120ms forwards;
}
@-webkit-keyframes scale0to1 {
0% {
-webkit-transform: scale(0);
transform: scale(0);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
@keyframes scale0to1 {
0% {
-webkit-transform: scale(0);
transform: scale(0);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
@-webkit-keyframes slideDown {
0% {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
opacity: 1;
}
100% {
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
opacity: 0;
}
}
@keyframes slideDown {
0% {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
opacity: 1;
}
100% {
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
opacity: 0;
}
}
@-webkit-keyframes slideUp {
0% {
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
opacity: 0;
}
100% {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
opacity: 1;
}
}
@keyframes slideUp {
0% {
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
opacity: 0;
}
100% {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
opacity: 1;
}
}
label {
width: 100%;
}
.card-input-element {
display: none;
}
.card-input {
margin: 10px;
padding: 00px;
}
.card-input:hover {
cursor: pointer;
}
.card-input-element:checked + .card-input {
box-shadow: 0 0 1px 1px #2ecc71;
}
[type="checkbox"]:checked,
[type="checkbox"]:not(:checked) {
position: absolute;
left: -9999px;
}
[type="checkbox"]:checked + label,
[type="checkbox"]:not(:checked) + label
{
position: relative;
padding-left: 28px;
cursor: pointer;
line-height: 20px;
display: inline-block;
color: #666;
}
[type="checkbox"]:checked + label:before,
[type="checkbox"]:not(:checked) + label:before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 18px;
height: 18px;
border: 1px solid #ddd;
background: #fff;
}
[type="checkbox"]:checked + label:after,
[type="checkbox"]:not(:checked) + label:after {
content: '';
width: 8px;
height: 8px;
background: #00a69c;
position: absolute;
top: 6px;
left: 6px;
-webkit-transition: all 0.2s ease;
transition: all 0.2s ease;
}
[type="checkbox"]:not(:checked) + label:after {
opacity: 0;
-webkit-transform: scale(0);
transform: scale(0);
}
[type="checkbox"]:checked + label:after {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
input {
border: 2px solid #333;
border-radius: 5px;
color: #333;
font-size: 32px;
margin: 0 0 20px;
padding: .5rem 1rem;
width: 100%;
}
.button-step {
background: #fff;
border: 2px solid #333;
border-radius: 5px;
color: #333;
font-size: 16px;
font-weight: bold;
padding: 1rem;
}
.button-step:hover {
background: #333;
border: 2px solid #333;
color: #fff;
}
</style>
{% endblock %}
{% block userblog_body %}
<div class="list-step-souscription" id="step-one-souscription">
<div style="background: #90acd1; min-height: 260px;">
<div class="container nl-process">
<div class="complete-hint"><i class="fa fa-check"></i></div>
<ul class="process-list">
<li class="process-item">
<div class="process-content">
<div class="process-active-bar"></div>
<div class="circle" style="background: green;">
<span style="color: #fff!important;"></span>
</div>
<div class="des" style="color: #fff;">
<strong>Type d'investissement</strong>
</div>
</div>
</li>
<li class="process-item">
<div class="process-content">
<div class="process-active-bar"></div>
<div class="circle">
<span></span>
</div>
<div class="des">
<span>Chantier favoris</span>
</div>
</div>
</li>
<li class="process-item">
<div class="process-content">
<div class="process-active-bar"></div>
<div class="circle">
<span></span>
</div>
<div class="des">
<span>Propriétaire</span>
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="container-fluid article-content">
<div class="article-header site-main">
<h1 class="entry-title">Placez votre investissement sur un projet sûr.</h1>
</div>
<div class="site-main article-text-wrap">
<div class="entry-summary"><span class="fa fa-info-circle"></span> {{ site }} se charge d'étudier chaque projet dans tous les angles afin de s'assurer que seul les projets à grand potentiel de croissance ne vous parviennent.</div>
<form method="" action="" class="submit_step_one">
<h1>Sur quel type de projet souhaitez-vous investir ?</h1>
<div><span class="fa fa-info-circle"></span> Cette information détermine le temps requis pour un retour sur investissement</div>
<div class="row">
{% for type in liste_business %}
<div class="col-md-4 col-lg-4 col-sm-4">
<label>
<input type="radio" name="typeproduct" class="card-input-element" value="{{ type.id }}"/>
<div class="panel panel-default card-input">
<div class="panel-heading">{{ type.nom }}</div>
<div class="panel-body">
<div style="font-weight: normal;">{{ type.description }}</div>
</div>
</div>
<a href="{{ path('produit_produit_listes_produit_user', {'id': type.id }) }}" style="margin-left: 10px;">En savoir plus <span class="fa fa-angle-right"></span></a>
</label>
</div>
{% else %}
<div class="col-md-12">
<div class="text-center" style="height: 250px; padding-top: 100px; background: #fff; display: block; width: 100%!important; border: 1px solid #f4f4f4; border-radius: 5px;">
<span class="fa fa-frown-o"></span> Aucune données disponible pour cette requête.</br>
<hr style="width: 100px; border-bottom: 1px solid red;"/>
</div>
</div>
{% endfor %}
</div>
<h1>Quelle plage d'investissement est-elle approprié pour vous ?</h1>
<div><span class="fa fa-info-circle"></span> Cette information détermine vos privilèges dans l'entreprise pour laquelle vous investissez</div>
<div class="row">
{% for type in type_investisseur %}
<div class="col-md-4 col-lg-4 col-sm-4">
<label>
<input type="radio" name="typeinvestisseur" class="card-input-element" value="{{ type.id }}"/>
<div class="panel panel-default card-input">
<div class="panel-heading">{{ type.nom }}</div>
<div class="panel-body">
<div style="font-weight: normal;">{{ type.description }}</div>
<div><span class="label label-info">Entre: {{ type.minimum }} - {{ type.maximum }} {{ devise }}</span></div>
</div>
</div>
<a href="" style="margin-left: 10px;">En savoir plus <span class="fa fa-angle-right"></span></a>
</label>
</div>
{% else %}
<div class="col-md-12">
<div class="text-center" style="height: 250px; padding-top: 100px; background: #fff; display: block; width: 100%!important; border: 1px solid #f4f4f4; border-radius: 5px;">
<span class="fa fa-frown-o"></span> Aucune données disponible pour cette requête.</br>
<hr style="width: 100px; border-bottom: 1px solid red;"/>
</div>
</div>
{% endfor %}
</div>
<h1>Conditions élémentaires d'investissement</h1>
<div class="row">
<div class="col-md-12">
<p>
<input type="checkbox" id="valide_experience" name="agevalide"/>
<label for="valide_experience">J'ai plus de 22 ans</label>
</p>
<p>
<input type="checkbox" id="valide_approche" name="approchevalide"/>
<label for="valide_approche">J'aime l'innovation et je suis engagé pour l'employabilité des jeunes en Afrique</label>
</p>
</div>
</div>
<div class="row" style="margin-top: 20px; margin-bottom: 20px;">
<div class="col-md-12">
<hr/>
</div>
<div class="col-md-6">
<a href="#!" class="btn btn-default">Précédent</a>
</div>
<div class="col-md-6 text-right">
<button class="button-step btn-primary">Suivant <span class="fa fa-arrow-circle-right"></span></button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="list-step-souscription" id="step-two-souscription" style="display: none;">
</div>
<div class="list-step-souscription" id="step-three-souscription" style="display: none;">
</div>
{% endblock %}
{% block javascripttemplate %}
$('form.submit_step_one').on('submit',function(){
if($('#valide_experience').prop("checked") && $('#valide_approche').prop("checked"))
{
var typeprojet = $("input[name='typeproduct']:checked").val();
var typeinvest = $("input[name='typeinvestisseur']:checked").val();
if(typeprojet === undefined){
resetNotif();
alertify.alert("Echec, veuillez choisir le type de projet sur lequel vous souhaitez investir.");
}else if(typeinvest === undefined){
resetNotif();
alertify.alert("Echec, veuillez choisir le type d'investissement que vous souhaitez effectué.");
}else{
var height = ($(window).height() + $(window).scrollTop());
var width = $(window).width() + 100;
var scrolltop = $(window).scrollTop();
$('.panel-result-action-factory-user').show();
$('.content-alert-action-factory-user').show();
$('.content-alert-action-factory-user').html('<div style="position: fixed; top: 0px; margin-bottom: '+scrolltop+'px; left: 0px; z-index: 9000; width: '+width+'px; height: '+height+'px; background: rgba(0,0,0,0.5);"></div>');
$.post('{{ path('produit_produit_ajouter_product_panier', {'position': 'product'}) }}',{typeprojet: typeprojet, typeinvest: typeinvest },function(data){
$('.panel-result-action-factory-user').hide();
$('.content-alert-action-factory-user').hide();
if(data == 0)
{
resetNotif();
alertify.alert("Echec, Toutes les données n'ont pas été reçu");
}else if(data == 2){
resetNotif();
alertify.alert("Echec, Nous n'avons pas pu récupérer les choix que vous avez effectués !");
}else{
$('#step-two-souscription').html(data);
$('.list-step-souscription').hide();
$('#step-two-souscription').show();
}
});
}
}else{
resetNotif();
alertify.alert("Echec, Vous devez d'abord accepter que vous avez l'âge requise pour invertir sur un projet et que vous êtes pationner de l'innovation.");
}
return false;
});
{% endblock %}