text: $(".tab-wizard").steps({
      headerTag: "h6",
      bodyTag: "section",
      transitionEffect: "none",
      titleTemplate: '<span class="step">#index#</span> #title#',
      labels: {
          finish: "Enregistrer"
      },
      onFinished: function (event, currentIndex) {
  
          $('.form-create').submit();
          $(this).$("a").removeAttr('href');
      }
  });
  
  var form = $(".validation-wizard").show();
  
  $(".validation-wizard").steps({
          headerTag: "h6",
          bodyTag: "section",
          transitionEffect: "none",
          titleTemplate: '<span class="step">#index#</span> #title#',
          labels: {
              finish: "Submit"
          },
          onStepChanging: function (event, currentIndex, newIndex) {
              return (
                  currentIndex > newIndex ||
                  (!(3 === newIndex && Number($("#age-2").val()) < 18) &&
                      (currentIndex < newIndex &&
                          (form
                              .find(".body:eq(" + newIndex + ") label.error")
                              .remove(),
                              form
                              .find(".body:eq(" + newIndex + ") .error")
                              .removeClass("error")),
                          (form.validate().settings.ignore = ":disabled,:hidden"),
                          form.valid()))
              );
          },
          onFinishing: function (event, currentIndex) {
              return (form.validate().settings.ignore = ":disabled"), form.valid();
          },
          onFinished: function (event, currentIndex) {
              swal(
                  "Your Form Submitted!",
                  "Sed dignissim lacinia nunc. Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. Maecenas mattis. Sed convallis tristique sem. Proin ut ligula vel nunc egestas porttitor."
              );
          }
      }),
      $(".validation-wizard").validate({
          ignore: "input[type=hidden]",
          errorClass: "text-danger",
          successClass: "text-success",
          highlight: function (element, errorClass) {
              $(element).removeClass(errorClass);
          },
          unhighlight: function (element, errorClass) {
              $(element).removeClass(errorClass);
          },
          errorPlacement: function (error, element) {
              error.insertAfter(element);
          },
          rules: {
              email: {
                  email: !0
              }
          }
      });
  