"NNK wizard"
Bootstrap 3.3.0 Snippet by Misiak4

<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 form-group"> <div class="col-xs-12"> <ul class="nav nav-pills nav-justified thumbnail setup-panel"> <li class="active"><a href="#step-1"> <h4 class="list-group-item-heading">Údaje dlžníka</h4> <p class="list-group-item-text">Zadanie údajov o dlžníkovi</p> </a></li> <li class="disabled"><a href="#step-2"> <h4 class="list-group-item-heading">Pohľadávky</h4> <p class="list-group-item-text">Vloženie pohľdávok</p> </a></li> <li class="disabled"><a href="#step-3"> <h4 class="list-group-item-heading">Rekapitulácia</h4> <p class="list-group-item-text">Kontrola zadaných údajov</p> </a></li> <li class="disabled"><a href="#step-3"> <h4 class="list-group-item-heading">Generovanie upomienky</h4> <p class="list-group-item-text">Odoslanie upomienky dlžníkov</p> </a></li> </ul> </div> </div> <div class="row setup-content" id="step-1"> <div class="col-xs-12"> <div class="col-xs-12 well text-center"> <h3>Údaje dlžníka</h3> <p>Zadajte IČO dlžníka. Jeho údaje budú automaticky načítané z OR.</p> <div class="col-xs-2 col-xs-offset-4"> <div class="input-group"> <input type="text" placeholder="IČO" name="ico" class="form-control" required=""> <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span> </div> </div> <div class="input-group"> <button id="nacitaj-udaje" class="btn btn-info">Načítať údaje</button> </div> </div> <button id="activate-step-2" class="btn btn-primary btn-lg pull-right">Pokračuj</button> </div> </div> </div> <div class="row setup-content" id="step-2"> <div class="col-xs-12"> <div class="col-md-12 well text-center"> <h3>Zadanie pohľadávok</h3> <div id="pohladavky"> <div class="col-xs-8 col-xs-offset-2"> <div class="form-group"> <div class="col-xs-3"> <div class="input-group"> <input type="text" placeholder="Faktúra" name="ico" class="form-control" required=""> <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span> </div> </div> <div class="col-xs-3"> <div class="input-group"> <input type="text" placeholder="VS" name="ico" class="form-control" required=""> <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span> </div> </div> <div class="col-xs-3"> <div class="input-group"> <input type="text" placeholder="Dátum splatnosti" name="ico" class="form-control" required=""> <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span> </div> </div> <div class="col-xs-3"> <div class="input-group"> <input type="text" placeholder="Suma" name="ico" class="form-control" required=""> <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span> </div> </div> </div> </div> </div> <button id="pridaj-pohladavku" class="btn btn-primary pull-right">Pridaj dalsiu pohladavku</button> </div> </div> </div> <div class="row setup-content" id="step-3"> <div class="col-xs-12"> <div class="col-md-12 well"> <h1 class="text-center"> STEP 3</h1> </div> </div> </div> </div>
body{ margin-top:20px; }
$(document).ready(function() { var navListItems = $('ul.setup-panel li a'), allWells = $('.setup-content'); allWells.hide(); navListItems.click(function(e) { e.preventDefault(); var $target = $($(this).attr('href')), $item = $(this).closest('li'); if (!$item.hasClass('disabled')) { navListItems.closest('li').removeClass('active'); $item.addClass('active'); allWells.hide(); $target.show(); } }); $('ul.setup-panel li.active a').trigger('click'); // DEMO ONLY // $('#activate-step-2').on('click', function(e) { $('ul.setup-panel li:eq(1)').removeClass('disabled'); $('ul.setup-panel li a[href="#step-2"]').trigger('click'); $(this).remove(); }) $('#pridaj-pohladavku').click(function(){ $('#pohladavky').append('<div class="col-xs-8 col-xs-offset-2"><div class="form-group"><div class="col-xs-3"><div class="input-group"><input type="text" placeholder="Faktúra" name="ico" class="form-control" required=""><span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span></div></div><div class="col-xs-3"><div class="input-group"><input type="text" placeholder="VS" name="ico" class="form-control" required=""><span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span></div></div><div class="col-xs-3"><div class="input-group"><input type="text" placeholder="Dátum splatnosti" name="ico" class="form-control" required=""><span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span></div></div><div class="col-xs-3"><div class="input-group"><input type="text" placeholder="Suma" name="ico" class="form-control" required=""><span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span></div></div></div></div>'); }); });

Related: See More


Questions / Comments: