"Form wizard (using tabs)"
Bootstrap 3.3.0 Snippet by martinfrancisco

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <section> <div class="wizard"> <div class="wizard-inner"> <div class="connecting-line"></div> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"> <a href="#step1" data-toggle="tab" aria-controls="step1" role="tab" title="Paso 1"> <span class="round-tab"> <i class="glyphicon glyphicon-folder-open"></i> </span> </a> </li> <li role="presentation" class="disabled"> <a href="#step2" data-toggle="tab" aria-controls="step2" role="tab" title="Paso 2"> <span class="round-tab"> <i class="glyphicon glyphicon-pencil"></i> </span> </a> </li> <li role="presentation" class="disabled"> <a href="#step3" data-toggle="tab" aria-controls="step3" role="tab" title="Paso 3"> <span class="round-tab"> <i class="glyphicon glyphicon-picture"></i> </span> </a> </li> <li role="presentation" class="disabled"> <a href="#complete" data-toggle="tab" aria-controls="complete" role="tab" title="Proceso Completo"> <span class="round-tab"> <i class="glyphicon glyphicon-ok"></i> </span> </a> </li> </ul> </div> <form role="form"> <div class="tab-content"> <div class="tab-pane active" role="tabpanel" id="step1"> <h3>Indicaciones:</h3> <p>Requisitos para la Incripcion Consular:</p> Estas son las indicaciones para tu solicitud de <ul class="list-inline pull-right"> <li><button type="button" class="btn btn-primary next-step">Continuar</button></li> </ul> </div> <div class="tab-pane" role="tabpanel" id="step2"> <form class="form-horizontal"> <fieldset> <!-- Form Name --> <legend>Datos Personales:</legend> <div class="col-md-4"> <div class="form-group"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="form-group"> <label class="control-label" for="firstname" style="font-size: 12px;">Lugar de Nacimiento:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> </div> <div class="col-md-4"> <div class="form-group"> <label class="control-label" for="firstname" style="font-size: 12px;">Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="form-group"> <div class="col-xs-8"> <label class="control-label" for="firstname" style="font-size: 12px;">Fecha de Nacimiento:</label> <input type="date" class="form-control" placeholder="Edad"> </div> <div class="col-xs-4"> <label class="control-label" for="firstname" style="font-size: 12px;">Edad:</label> <input type="text" class="form-control" placeholder="Edad"> </div> </div> </div> <div class="col-md-4"> <!-- Text input--> <div class="form-group"> <label class="control-label" for="gender" style="font-size: 12px;">Sexo:</label> <select id="location" name="location" class="form-control"> <option value="">Seleccione...</option> <option value="Masculino">Masculino</option> <option value="Femenino">Femenino</option> </select> </div> <div class="form-group"> <div class="col-xs-6"> <label class="control-label" for="firstname" style="font-size: 12px;">Estado Civil en Paraguay:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-6"> <label class="control-label" for="firstname" style="font-size: 12px;">Estado Civil en lugar de Residencia:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> </div> </div> <legend>Documentos Personales:</legend> <div class="col-md-2"> <div class="form-group"> <label class="control-label" for="firstname" style="font-size: 12px;">Cedula de Identidad:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> </div> <div class="col-md-10"> <div class="col-xs-3"> <label class="control-label" for="firstname" style="font-size: 12px;">Tipo de Pasaporte:</label> <select id="location" name="location" class="form-control"> <option value="">Seleccione...</option> <option value="Policial">Policial</option> <option value="Consular">Consular</option> </select> </div> <div class="col-xs-3"> <label class="control-label" for="firstname" style="font-size: 12px;">N° de Pasaporte:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Pas Valido Hasta:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Validez de Visa:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Cuando vez:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> </div> <legend>Domicilio Actual:</legend> <div class="col-md-12"> <div class="col-xs-3"> <label class="control-label" for="firstname" style="font-size: 12px;">Codigo Postal:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-3"> <label class="control-label" for="firstname" style="font-size: 12px;">Codigo Postal:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-3"> <label class="control-label" for="firstname" style="font-size: 12px;">Codigo Postal:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-3"> <label class="control-label" for="firstname" style="font-size: 12px;">Codigo Postal:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> </div> <div class="col-md-12"> <label class="control-label" for="firstname" style="font-size: 12px;">Dirrecion:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-md-3"> <br /> <legend >Formas de Contactar:</legend> <label class="control-label" for="firstname" style="font-size: 12px;">Linea Baja:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> <label class="control-label" for="firstname" style="font-size: 12px;">E-mail:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> <label class="control-label" for="firstname" style="font-size: 12px;">Celular:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> <label class="control-label" for="firstname" style="font-size: 12px;">E-mail del Celular:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> <br /> </div> <div class="col-md-9"> <br /> <legend>Informacion Laboral:</legend> <div class="col-xs-4"> <label class="control-label" for="firstname" style="font-size: 12px;">Profesion en Paraguay:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-4"> <label class="control-label" for="firstname" style="font-size: 12px;">Ocupacion Actual:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-4"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombre de Firma Laboral:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-4"> <label class="control-label" for="firstname" style="font-size: 12px;">Linea Baja:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-8"> <label class="control-label" for="firstname" style="font-size: 12px;">Domicilio Laboral: (Detallar hasta el Barrio)</label> <textarea id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""></textarea> </div> </div> <br /> <legend>Contactos de Emergencia Residentes en el mismo Pais:</legend> <div class="row"> <div class="col-xs-4"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> </div> <div class="row"> <div class="col-xs-4"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> </div> <br /> <legend>Hijos:</legend> <div class="row"> <div class="col-xs-4"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> </div> <br /> <legend>Familiar Residente en Paraguay:</legend> <div class="row"> <div class="col-xs-4"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> <div class="col-xs-2"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <input id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""> </div> </div> <div class="row"> <div class="col-xs-12"> <label class="control-label" for="firstname" style="font-size: 12px;">Nombres y Apellidos:</label> <textarea id="firstname" name="firstname" type="text" placeholder="Unknown" class="form-control input-md" required=""></textarea> </div> </div> </fieldset> </form> <br /> <ul class="list-inline pull-right"> <li><button type="button" class="btn btn-default prev-step">Regresar</button></li> <li><button type="button" class="btn btn-primary next-step">Guardar y Continuar</button></li> </ul> </div> <div class="tab-pane" role="tabpanel" id="step3"> <h3>Subir Documentos:</h3> <p>Todas las Imagenes</p> <ul class="list-inline pull-right"> <li><button type="button" class="btn btn-default prev-step">Regresar</button></li> <li><button type="button" class="btn btn-default next-step">Skip</button></li> <li><button type="button" class="btn btn-primary btn-info-full next-step">Guardar y Continuar</button></li> </ul> </div> <div class="tab-pane" role="tabpanel" id="complete"> <h3>Registro Completo</h3> <p>Has completado con exito el proceso de registro ahora.</p> <p>En el trascurso de los siguientes dias recibiras por correo el estado de tu peticion.</p> </div> <div class="clearfix"></div> </div> </form> </div> </section> </div> </div>
.wizard { margin: 20px auto; background: #fff; } .wizard .nav-tabs { position: relative; margin: 40px auto; margin-bottom: 0; border-bottom-color: #e0e0e0; } .wizard > div.wizard-inner { position: relative; } .connecting-line { height: 2px; background: #e0e0e0; position: absolute; width: 80%; margin: 0 auto; left: 0; right: 0; top: 50%; z-index: 1; } .wizard .nav-tabs > li.active > a, .wizard .nav-tabs > li.active > a:hover, .wizard .nav-tabs > li.active > a:focus { color: #555555; cursor: default; border: 0; border-bottom-color: transparent; } span.round-tab { width: 70px; height: 70px; line-height: 70px; display: inline-block; border-radius: 100px; background: #fff; border: 2px solid #e0e0e0; z-index: 2; position: absolute; left: 0; text-align: center; font-size: 25px; } span.round-tab i{ color:#555555; } .wizard li.active span.round-tab { background: #fff; border: 2px solid #5bc0de; } .wizard li.active span.round-tab i{ color: #5bc0de; } span.round-tab:hover { color: #333; border: 2px solid #333; } .wizard .nav-tabs > li { width: 25%; } .wizard li:after { content: " "; position: absolute; left: 46%; opacity: 0; margin: 0 auto; bottom: 0px; border: 5px solid transparent; border-bottom-color: #5bc0de; transition: 0.1s ease-in-out; } .wizard li.active:after { content: " "; position: absolute; left: 46%; opacity: 1; margin: 0 auto; bottom: 0px; border: 10px solid transparent; border-bottom-color: #5bc0de; } .wizard .nav-tabs > li a { width: 70px; height: 70px; margin: 20px auto; border-radius: 100%; padding: 0; } .wizard .nav-tabs > li a:hover { background: transparent; } .wizard .tab-pane { position: relative; padding-top: 50px; } .wizard h3 { margin-top: 0; } @media( max-width : 585px ) { .wizard { width: 90%; height: auto !important; } span.round-tab { font-size: 16px; width: 50px; height: 50px; line-height: 50px; } .wizard .nav-tabs > li a { width: 50px; height: 50px; line-height: 50px; } .wizard li.active:after { content: " "; position: absolute; left: 35%; } }
$(document).ready(function () { //Initialize tooltips $('.nav-tabs > li a[title]').tooltip(); //Wizard $('a[data-toggle="tab"]').on('show.bs.tab', function (e) { var $target = $(e.target); if ($target.parent().hasClass('disabled')) { return false; } }); $(".next-step").click(function (e) { var $active = $('.wizard .nav-tabs li.active'); $active.next().removeClass('disabled'); nextTab($active); }); $(".prev-step").click(function (e) { var $active = $('.wizard .nav-tabs li.active'); prevTab($active); }); }); function nextTab(elem) { $(elem).next().find('a[data-toggle="tab"]').click(); } function prevTab(elem) { $(elem).prev().find('a[data-toggle="tab"]').click(); }

Related: See More


Questions / Comments: