templates/security/subscription_company_step1.html.twig line 1

Open in your IDE?
  1. {% extends 'base_front.html.twig' %}
  2. {% block style %}
  3.     <style>
  4.         .multisteps-form__progress {
  5.             display: grid;
  6.             grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  7.         }
  8.         .multisteps-form__progress-btn {
  9.             -webkit-transition-property: all;
  10.             transition-property: all;
  11.             -webkit-transition-duration: 0.15s;
  12.             transition-duration: 0.15s;
  13.             -webkit-transition-timing-function: linear;
  14.             transition-timing-function: linear;
  15.             -webkit-transition-delay: 0s;
  16.             transition-delay: 0s;
  17.             position: relative;
  18.             padding-top: 20px;
  19.             color: rgba(108, 117, 125, 0.7);
  20.             text-indent: -9999px;
  21.             border: none;
  22.             background-color: transparent;
  23.             outline: none !important;
  24.             cursor: pointer;
  25.         }
  26.         @media (min-width: 500px) {
  27.             .multisteps-form__progress-btn {
  28.                 text-indent: 0;
  29.             }
  30.         }
  31.         .multisteps-form__progress-btn:before {
  32.             position: absolute;
  33.             top: 0;
  34.             left: 50%;
  35.             display: block;
  36.             width: 13px;
  37.             height: 13px;
  38.             content: '';
  39.             -webkit-transform: translateX(-50%);
  40.             transform: translateX(-50%);
  41.             -webkit-transition: all 0.15s linear 0s, -webkit-transform 0.15s cubic-bezier(0.05, 1.09, 0.16, 1.4) 0s;
  42.             transition: all 0.15s linear 0s, -webkit-transform 0.15s cubic-bezier(0.05, 1.09, 0.16, 1.4) 0s;
  43.             transition: all 0.15s linear 0s, transform 0.15s cubic-bezier(0.05, 1.09, 0.16, 1.4) 0s;
  44.             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;
  45.             border: 2px solid currentColor;
  46.             border-radius: 50%;
  47.             background-color: #fff;
  48.             box-sizing: border-box;
  49.             z-index: 3;
  50.         }
  51.         .multisteps-form__progress-btn:after {
  52.             position: absolute;
  53.             top: 5px;
  54.             left: calc(-50% - 13px / 2);
  55.             -webkit-transition-property: all;
  56.             transition-property: all;
  57.             -webkit-transition-duration: 0.15s;
  58.             transition-duration: 0.15s;
  59.             -webkit-transition-timing-function: linear;
  60.             transition-timing-function: linear;
  61.             -webkit-transition-delay: 0s;
  62.             transition-delay: 0s;
  63.             display: block;
  64.             width: 100%;
  65.             height: 2px;
  66.             content: '';
  67.             background-color: currentColor;
  68.             z-index: 1;
  69.         }
  70.         .multisteps-form__progress-btn:first-child:after {
  71.             display: none;
  72.         }
  73.         .multisteps-form__progress-btn.js-active {
  74.             color: #FF839E;
  75.         }
  76.         .multisteps-form__progress-btn.js-active:before {
  77.             -webkit-transform: translateX(-50%) scale(1.2);
  78.             transform: translateX(-50%) scale(1.2);
  79.             background-color: currentColor;
  80.         }
  81.     </style>
  82. {% endblock %}
  83. {% block body %}
  84.     <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
  85.         <div class="modal-dialog modal-lg" role="document">
  86.             <div class="modal-content">
  87.                 <div class="modal-header">
  88.                     <h5 class="modal-title" id="exampleModalLabel">Conditions Générales de vente</h5>
  89.                     <a href="#" class="close" data-dismiss="modal" aria-label="Close">
  90.                         <span aria-hidden="true">×</span>
  91.                     </a>
  92.                 </div>
  93.                 <div class="modal-body">
  94.                     <p>{{ cgv ? cgv.text|raw : "" }}</p>
  95.                 </div>
  96.                 <div class="modal-footer">
  97.                     <a href="#" class="btn btn-secondary" data-dismiss="modal">Fermer</a>
  98.                 </div>
  99.             </div>
  100.         </div>
  101.     </div>
  102.     <div class=" vendor-form">
  103.         <div class="container">
  104.             <div class="row ">
  105.                 <div class="offset-xl-1 col-xl-10 offset-lg-1 col-lg-10 col-md-12 col-sm-12 col-12  ">
  106.                     <!-- vendor head -->
  107.                     <div class="vendor-head">
  108.                         <a href="{{ path('front_home') }}"><img src="{{ asset('images/logo noir.png') }}" alt="logo Providders" style="width:25%"></a>
  109.                     </div>
  110.                     <!-- /.vendor head -->
  111.                     <div class="st-tab">
  112.                         <ul class="nav nav-tabs nav-justified" id="Mytabs" role="tablist">
  113.                             <li class="nav-item">
  114.                                 <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>
  115.                             </li>
  116.                         </ul>
  117.                         <div class="tab-content" id="myTabContent">
  118.                             <div class="tab-pane fade show active" id="tab1" role="tabpanel" aria-labelledby="tab-1">
  119.                                 <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 ">
  120.                                     <div class="col-12 col-lg-8 ml-auto mr-auto mb-4">
  121.                                         <div class="multisteps-form__progress">
  122.                                             <button class="multisteps-form__progress-btn js-active" type="button" title="User Info">Informations</button>
  123.                                            <!-- <button class="multisteps-form__progress-btn" type="button" title="Address">Produit</button> -->
  124.                                             <button class="multisteps-form__progress-btn" type="button" title="Order Info">Confirmation</button>
  125.                                         </div>
  126.                                     </div>
  127.                                     <!-- vendor title -->
  128.                                     {% for message in app.flashes('success') %}
  129.                                         <div class="alert alert-success">
  130.                                             {{ message }}
  131.                                         </div>
  132.                                     {% endfor %}
  133.                                     {% for message in app.flashes('danger') %}
  134.                                         <div class="alert alert-success">
  135.                                             {{ message }}
  136.                                         </div>
  137.                                     {% endfor %}
  138.                                     <!-- register-form -->
  139.                                     {{ form_start(form, {'attr': {'novalidate': 'novalidate', 'id': 'form-subscription'}}) }}
  140.                                     {% if type == constant('App\\Entity\\Company::COMPANY_TYPE_ENTREPRISE') %}
  141.                                     <h4 class="mt-5">Informations sur l'entreprise</h4>
  142.                                     {% else %}
  143.                                     <h4 class="mt-5">Votre localisation</h4>
  144.                                     {% endif %}
  145.                                     {% if type == constant('App\\Entity\\Company::COMPANY_TYPE_ENTREPRISE') %}
  146.                                     <div class="row mb-3">
  147.                                         <div class="col-md-4">
  148.                                             <!-- Text input-->
  149.                                             {{ form_widget(form.companyName) }}
  150.                                             <small style="color:red">{{ form_errors(form.companyName) }}</small>
  151.                                         </div>
  152.                                         <div class="col-md-8">
  153.                                             <!-- Text input-->
  154.                                             {{ form_widget(form.siren) }}
  155.                                             <small style="color:red">{{ form_errors(form.siren) }}</small>
  156.                                         </div>
  157.                                     </div>
  158.                                     {% endif %}
  159.                                     <div class="row">
  160.                                         <div class="col-md-4">
  161.                                             <!-- Text input-->
  162.                                             {{ form_widget(form.adress) }}
  163.                                             <small style="color:red">{{ form_errors(form.adress) }}</small>
  164.                                         </div>
  165.                                         <div class="col-md-4">
  166.                                             <!-- Text input-->
  167.                                             {{ form_widget(form.zipCode) }}
  168.                                             <small style="color:red">{{ form_errors(form.zipCode) }}</small>
  169.                                         </div>
  170.                                         <div class="col-md-4">
  171.                                             <!-- Text input-->
  172.                                             {{ form_widget(form.city) }}
  173.                                             <small style="color:red">{{ form_errors(form.city) }}</small>
  174.                                         </div>
  175.                                     </div>
  176.                                     <div class="row mt-3">
  177.                                         <div class="col-md-6">
  178.                                             <!-- Text input-->
  179.                                             {{ form_widget(form.country, {'attr': {'class': 'w-100'}}) }}
  180.                                             <small style="color:red">{{ form_errors(form.country) }}</small>
  181.                                         </div>
  182.                                     </div>
  183.                                     <hr>
  184.                                     <h4 class="mt-5">Contact</h4>
  185.                                     <div class="row">
  186.                                         <div class="col-md-4">
  187.                                             <!-- Text input-->
  188.                                             {{ form_widget(form.contactName) }}
  189.                                             <small style="color:red">{{ form_errors(form.contactName) }}</small>
  190.                                         </div>
  191.                                         <div class="col-md-4">
  192.                                             <!-- Text input-->
  193.                                             {{ form_widget(form.firstName) }}
  194.                                             <small style="color:red">{{ form_errors(form.firstName) }}</small>
  195.                                         </div>
  196.                                         <div class="col-md-4">
  197.                                             <!-- Text input-->
  198.                                             {{ form_widget(form.contactBirthday) }}
  199.                                             <small style="color:red">{{ form_errors(form.contactBirthday) }}</small>
  200.                                         </div>
  201.                                     </div>
  202.                                     <div class="row mt-3">
  203.                                         <div class="col-md-4">
  204.                                             <!-- Text input-->
  205.                                             {{ form_widget(form.contactPhone) }}
  206.                                             <small style="color:red">{{ form_errors(form.contactPhone) }}</small>
  207.                                         </div>
  208.                                     </div>
  209.                                     <hr>
  210.                                     <h4 class="mt-5">Informations de connexion</h4>
  211.                                     <div class="row">
  212.                                         <div class="col-md-4">
  213.                                             <!-- Text input-->
  214.                                             {{ form_widget(form.email) }}
  215.                                             <small style="color:red">{{ form_errors(form.email) }}</small>
  216.                                         </div>
  217.                                         <div class="col-md-4">
  218.                                             <!-- Text input-->
  219.                                             {{ form_widget(form.password.first, {'attr': {'placeholder': 'Mot de passe'}}) }}
  220.                                             <small style="color:red">{{ form_errors(form.password.first) }}</small>
  221.                                         </div>
  222.                                         <div class="col-md-4">
  223.                                             <!-- Text input-->
  224.                                             {{ form_widget(form.password.second, {'attr': {'placeholder': 'Confirmation mot de passe'}}) }}
  225.                                             <small style="color:red">{{ form_errors(form.password.second) }}</small>
  226.                                         </div>
  227.                                     </div>
  228.                                     <hr>
  229.                                     <h4 class="mt-5 mb-3">Prestations</h4>
  230.                                     <div class="row">
  231.                                         <div class="col-md-12">
  232.                                             {{ form_label(form.type) }}
  233.                                         </div>
  234.                                         <div class="col-md-4 ml-0">
  235.                                             <!-- Text input-->
  236.                                             {% for type in form.type %}
  237.                                                 {{ form_widget(type) }}
  238.                                                 {{ form_label(type) }}<br>
  239.                                             {% endfor %}
  240.                                             <small style="color:red">{{ form_errors(form.type) }}</small>
  241.                                         </div>
  242.                                     </div>
  243.                                     <hr>
  244.                                     <div class="row mt-3">
  245.                                         <div class="col-md-12">
  246.                                             <!-- Text input-->
  247.                                             <label for="company_isAcceptCondition">
  248.                                                 {{ form_widget(form.isAcceptCondition) }}
  249.                                                 <span class="ml-2">J'accepte les <a href="#" class="link-modal" data-toggle="modal" data-target="#exampleModal">
  250.                                                             Conditions Générales
  251.                                                         </a> de Providders</span>
  252.                                             </label>
  253.                                             <small style="color:red">{{ form_errors(form.isAcceptCondition) }}</small>
  254.                                         </div>
  255.                                         {{ form_rest(form) }}
  256.                                         <!-- Button -->
  257.                                         <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 mt-2">
  258.                                             <button type="submit" name="singlebutton" class="btn btn-default">Etape suivante</button>
  259.                                         </div>
  260.                                     </div>
  261.                                     <input type="hidden" name="token-account" id="token-account">
  262.                                     <input type="hidden" name="token-person" id="token-person">
  263.                                     {{ form_end(form) }}
  264.                                 </div>
  265.                             </div>
  266.                         </div>
  267.                     </div>
  268.                 </div>
  269.             </div>
  270.         </div>
  271.     </div>
  272. {% endblock %}
  273. {% block javascript %}
  274. {{ parent() }}
  275. <script>
  276. $("#company_contactBirthday").datepicker({
  277.     maxDate: "-18Y",
  278.     clearText: 'Effacer', clearStatus: '',
  279.     closeText: 'Fermer', closeStatus: 'Fermer sans modifier',
  280.     prevText: '<Préc', prevStatus: 'Voir le mois précédent',
  281.     nextText: 'Suiv>', nextStatus: 'Voir le mois suivant',
  282.     currentText: 'Courant', currentStatus: 'Voir le mois courant',
  283.     monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
  284.         'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
  285.     monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun',
  286.         'Jul','Aoû','Sep','Oct','Nov','Déc'],
  287.     monthStatus: 'Voir un autre mois', yearStatus: 'Voir un autre année',
  288.     weekHeader: 'Sm', weekStatus: '',
  289.     dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
  290.     dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
  291.     dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'],
  292.     dayStatus: 'Utiliser DD comme premier jour de la semaine', dateStatus: 'Choisir le DD, MM d',
  293.     dateFormat: 'dd-mm-yy', firstDay: 0,
  294.     initStatus: 'Choisir la date', isRTL: false
  295. });
  296. $("#company_individual_contactBirthday").datepicker({
  297.     maxDate: "-18Y",
  298.     clearText: 'Effacer', clearStatus: '',
  299.     closeText: 'Fermer', closeStatus: 'Fermer sans modifier',
  300.     prevText: '<Préc', prevStatus: 'Voir le mois précédent',
  301.     nextText: 'Suiv>', nextStatus: 'Voir le mois suivant',
  302.     currentText: 'Courant', currentStatus: 'Voir le mois courant',
  303.     monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
  304.         'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
  305.     monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun',
  306.         'Jul','Aoû','Sep','Oct','Nov','Déc'],
  307.     monthStatus: 'Voir un autre mois', yearStatus: 'Voir un autre année',
  308.     weekHeader: 'Sm', weekStatus: '',
  309.     dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
  310.     dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
  311.     dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'],
  312.     dayStatus: 'Utiliser DD comme premier jour de la semaine', dateStatus: 'Choisir le DD, MM d',
  313.     dateFormat: 'dd-mm-yy', firstDay: 0,
  314.     initStatus: 'Choisir la date', isRTL: false
  315. });
  316. </script>
  317. {% endblock %}