{% extends 'base_front.html.twig' %}
{% block style %}
<style>
.multisteps-form__progress {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
.multisteps-form__progress-btn {
-webkit-transition-property: all;
transition-property: all;
-webkit-transition-duration: 0.15s;
transition-duration: 0.15s;
-webkit-transition-timing-function: linear;
transition-timing-function: linear;
-webkit-transition-delay: 0s;
transition-delay: 0s;
position: relative;
padding-top: 20px;
color: rgba(108, 117, 125, 0.7);
text-indent: -9999px;
border: none;
background-color: transparent;
outline: none !important;
cursor: pointer;
}
@media (min-width: 500px) {
.multisteps-form__progress-btn {
text-indent: 0;
}
}
.multisteps-form__progress-btn:before {
position: absolute;
top: 0;
left: 50%;
display: block;
width: 13px;
height: 13px;
content: '';
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
-webkit-transition: all 0.15s linear 0s, -webkit-transform 0.15s cubic-bezier(0.05, 1.09, 0.16, 1.4) 0s;
transition: all 0.15s linear 0s, -webkit-transform 0.15s cubic-bezier(0.05, 1.09, 0.16, 1.4) 0s;
transition: all 0.15s linear 0s, transform 0.15s cubic-bezier(0.05, 1.09, 0.16, 1.4) 0s;
transition: all 0.15s linear 0s, transform 0.15s cubic-bezier(0.05, 1.09, 0.16, 1.4) 0s, -webkit-transform 0.15s cubic-bezier(0.05, 1.09, 0.16, 1.4) 0s;
border: 2px solid currentColor;
border-radius: 50%;
background-color: #fff;
box-sizing: border-box;
z-index: 3;
}
.multisteps-form__progress-btn:after {
position: absolute;
top: 5px;
left: calc(-50% - 13px / 2);
-webkit-transition-property: all;
transition-property: all;
-webkit-transition-duration: 0.15s;
transition-duration: 0.15s;
-webkit-transition-timing-function: linear;
transition-timing-function: linear;
-webkit-transition-delay: 0s;
transition-delay: 0s;
display: block;
width: 100%;
height: 2px;
content: '';
background-color: currentColor;
z-index: 1;
}
.multisteps-form__progress-btn:first-child:after {
display: none;
}
.multisteps-form__progress-btn.js-active {
color: #FF839E;
}
.multisteps-form__progress-btn.js-active:before {
-webkit-transform: translateX(-50%) scale(1.2);
transform: translateX(-50%) scale(1.2);
background-color: currentColor;
}
</style>
{% endblock %}
{% block body %}
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Conditions Générales de vente</h5>
<a href="#" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</a>
</div>
<div class="modal-body">
<p>{{ cgv ? cgv.text|raw : "" }}</p>
</div>
<div class="modal-footer">
<a href="#" class="btn btn-secondary" data-dismiss="modal">Fermer</a>
</div>
</div>
</div>
</div>
<div class=" vendor-form">
<div class="container">
<div class="row ">
<div class="offset-xl-1 col-xl-10 offset-lg-1 col-lg-10 col-md-12 col-sm-12 col-12 ">
<!-- vendor head -->
<div class="vendor-head">
<a href="{{ path('front_home') }}"><img src="{{ asset('images/logo noir.png') }}" alt="logo Providders" style="width:25%"></a>
</div>
<!-- /.vendor head -->
<div class="st-tab">
<ul class="nav nav-tabs nav-justified" id="Mytabs" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="tab-1" data-toggle="tab" href="#tab1" role="tab" aria-controls="tab-1" aria-selected="true">Inscription étape 1</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="tab1" role="tabpanel" aria-labelledby="tab-1">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 ">
<div class="col-12 col-lg-8 ml-auto mr-auto mb-4">
<div class="multisteps-form__progress">
<button class="multisteps-form__progress-btn js-active" type="button" title="User Info">Informations</button>
<!-- <button class="multisteps-form__progress-btn" type="button" title="Address">Produit</button> -->
<button class="multisteps-form__progress-btn" type="button" title="Order Info">Confirmation</button>
</div>
</div>
<!-- vendor title -->
{% for message in app.flashes('success') %}
<div class="alert alert-success">
{{ message }}
</div>
{% endfor %}
{% for message in app.flashes('danger') %}
<div class="alert alert-success">
{{ message }}
</div>
{% endfor %}
<!-- register-form -->
{{ form_start(form, {'attr': {'novalidate': 'novalidate', 'id': 'form-subscription'}}) }}
{% if type == constant('App\\Entity\\Company::COMPANY_TYPE_ENTREPRISE') %}
<h4 class="mt-5">Informations sur l'entreprise</h4>
{% else %}
<h4 class="mt-5">Votre localisation</h4>
{% endif %}
{% if type == constant('App\\Entity\\Company::COMPANY_TYPE_ENTREPRISE') %}
<div class="row mb-3">
<div class="col-md-4">
<!-- Text input-->
{{ form_widget(form.companyName) }}
<small style="color:red">{{ form_errors(form.companyName) }}</small>
</div>
<div class="col-md-8">
<!-- Text input-->
{{ form_widget(form.siren) }}
<small style="color:red">{{ form_errors(form.siren) }}</small>
</div>
</div>
{% endif %}
<div class="row">
<div class="col-md-4">
<!-- Text input-->
{{ form_widget(form.adress) }}
<small style="color:red">{{ form_errors(form.adress) }}</small>
</div>
<div class="col-md-4">
<!-- Text input-->
{{ form_widget(form.zipCode) }}
<small style="color:red">{{ form_errors(form.zipCode) }}</small>
</div>
<div class="col-md-4">
<!-- Text input-->
{{ form_widget(form.city) }}
<small style="color:red">{{ form_errors(form.city) }}</small>
</div>
</div>
<div class="row mt-3">
<div class="col-md-6">
<!-- Text input-->
{{ form_widget(form.country, {'attr': {'class': 'w-100'}}) }}
<small style="color:red">{{ form_errors(form.country) }}</small>
</div>
</div>
<hr>
<h4 class="mt-5">Contact</h4>
<div class="row">
<div class="col-md-4">
<!-- Text input-->
{{ form_widget(form.contactName) }}
<small style="color:red">{{ form_errors(form.contactName) }}</small>
</div>
<div class="col-md-4">
<!-- Text input-->
{{ form_widget(form.firstName) }}
<small style="color:red">{{ form_errors(form.firstName) }}</small>
</div>
<div class="col-md-4">
<!-- Text input-->
{{ form_widget(form.contactBirthday) }}
<small style="color:red">{{ form_errors(form.contactBirthday) }}</small>
</div>
</div>
<div class="row mt-3">
<div class="col-md-4">
<!-- Text input-->
{{ form_widget(form.contactPhone) }}
<small style="color:red">{{ form_errors(form.contactPhone) }}</small>
</div>
</div>
<hr>
<h4 class="mt-5">Informations de connexion</h4>
<div class="row">
<div class="col-md-4">
<!-- Text input-->
{{ form_widget(form.email) }}
<small style="color:red">{{ form_errors(form.email) }}</small>
</div>
<div class="col-md-4">
<!-- Text input-->
{{ form_widget(form.password.first, {'attr': {'placeholder': 'Mot de passe'}}) }}
<small style="color:red">{{ form_errors(form.password.first) }}</small>
</div>
<div class="col-md-4">
<!-- Text input-->
{{ form_widget(form.password.second, {'attr': {'placeholder': 'Confirmation mot de passe'}}) }}
<small style="color:red">{{ form_errors(form.password.second) }}</small>
</div>
</div>
<hr>
<h4 class="mt-5 mb-3">Prestations</h4>
<div class="row">
<div class="col-md-12">
{{ form_label(form.type) }}
</div>
<div class="col-md-4 ml-0">
<!-- Text input-->
{% for type in form.type %}
{{ form_widget(type) }}
{{ form_label(type) }}<br>
{% endfor %}
<small style="color:red">{{ form_errors(form.type) }}</small>
</div>
</div>
<hr>
<div class="row mt-3">
<div class="col-md-12">
<!-- Text input-->
<label for="company_isAcceptCondition">
{{ form_widget(form.isAcceptCondition) }}
<span class="ml-2">J'accepte les <a href="#" class="link-modal" data-toggle="modal" data-target="#exampleModal">
Conditions Générales
</a> de Providders</span>
</label>
<small style="color:red">{{ form_errors(form.isAcceptCondition) }}</small>
</div>
{{ form_rest(form) }}
<!-- Button -->
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 mt-2">
<button type="submit" name="singlebutton" class="btn btn-default">Etape suivante</button>
</div>
</div>
<input type="hidden" name="token-account" id="token-account">
<input type="hidden" name="token-person" id="token-person">
{{ form_end(form) }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascript %}
{{ parent() }}
<script>
$("#company_contactBirthday").datepicker({
maxDate: "-18Y",
clearText: 'Effacer', clearStatus: '',
closeText: 'Fermer', closeStatus: 'Fermer sans modifier',
prevText: '<Préc', prevStatus: 'Voir le mois précédent',
nextText: 'Suiv>', nextStatus: 'Voir le mois suivant',
currentText: 'Courant', currentStatus: 'Voir le mois courant',
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun',
'Jul','Aoû','Sep','Oct','Nov','Déc'],
monthStatus: 'Voir un autre mois', yearStatus: 'Voir un autre année',
weekHeader: 'Sm', weekStatus: '',
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'],
dayStatus: 'Utiliser DD comme premier jour de la semaine', dateStatus: 'Choisir le DD, MM d',
dateFormat: 'dd-mm-yy', firstDay: 0,
initStatus: 'Choisir la date', isRTL: false
});
$("#company_individual_contactBirthday").datepicker({
maxDate: "-18Y",
clearText: 'Effacer', clearStatus: '',
closeText: 'Fermer', closeStatus: 'Fermer sans modifier',
prevText: '<Préc', prevStatus: 'Voir le mois précédent',
nextText: 'Suiv>', nextStatus: 'Voir le mois suivant',
currentText: 'Courant', currentStatus: 'Voir le mois courant',
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun',
'Jul','Aoû','Sep','Oct','Nov','Déc'],
monthStatus: 'Voir un autre mois', yearStatus: 'Voir un autre année',
weekHeader: 'Sm', weekStatus: '',
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'],
dayStatus: 'Utiliser DD comme premier jour de la semaine', dateStatus: 'Choisir le DD, MM d',
dateFormat: 'dd-mm-yy', firstDay: 0,
initStatus: 'Choisir la date', isRTL: false
});
</script>
{% endblock %}