Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Liste des restaurateurs"
Bootstrap 3.0.0 Snippet by
Clette
3.0.0
jQuery
Preview
HTML
CSS
JS
View Full Screen
Forked from
Fork
Fork this
Parent
862
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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 ----------> <br><br> <div class="container"> <div class="well col-xs-8 col-sm-8 col-md-8 col-lg-8 col-xs-offset-2 col-sm-offset-2 col-md-offset-2 col-lg-offset-2"> <div class="row user-row"> <div class="col-xs-3 col-sm-2 col-md-1 col-lg-1"> <img class="img-circle" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=50" alt="User Pic"> </div> <div class="col-xs-8 col-sm-9 col-md-10 col-lg-10"> <strong>Restaurateur 1</strong><br> <span class="text-muted">Nom des restaurants</span> </div> <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 dropdown-user" data-for=".cyruxx"> <!-- A remplacer --> <i class="glyphicon glyphicon-chevron-down text-muted"></i> </div> </div> <div class="row user-infos cyruxx"> <!-- A remplacer --> <div class="col-xs-12 col-sm-12 col-md-10 col-lg-10 col-xs-offset-0 col-sm-offset-0 col-md-offset-1 col-lg-offset-1"> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title">Informations</h3> </div> <div class="panel-body"> <div class="row"> <div class="col-md-3 col-lg-3 hidden-xs hidden-sm"> <img class="img-circle" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=100" alt="User Pic"> </div> <div class="col-xs-2 col-sm-2 hidden-md hidden-lg"> <img class="img-circle" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=50" alt="User Pic"> </div> <div class=" col-md-9 col-lg-9 hidden-xs hidden-sm"> <strong>Restaurateur 1</strong><br> <table class="table table-user-information"> <tbody> <tr> <td>Restaurateur</td> </tr> <tr> <td>Inscrit depuis :</td> <td>11/12/2013</td> </tr> <tr> <td>Restaurants :</td> <td>liste de ses restaurants</td> </tr> <tr> <td>Adresse :</td> <td>10 rue des roses</td> </tr> <tr> <td>Téléphone :</td> <td>5145625343</td> </tr> <tr> <td>Adresse e-mail :</td> <td>restaurateur1@gmail.com</td> </tr> </tbody> </table> </div> </div> </div> <div class="panel-footer"> <button class="btn btn-sm btn-primary" type="button" data-toggle="tooltip" data-original-title="Send message to user"><i class="glyphicon glyphicon-envelope"></i></button> <span class="pull-right"> <button class="btn btn-sm btn-warning" type="button" data-toggle="tooltip" data-original-title="Edit this user"><i class="glyphicon glyphicon-edit"></i></button> <button class="btn btn-sm btn-danger" type="button" data-toggle="tooltip" data-original-title="Remove this user"><i class="glyphicon glyphicon-remove"></i></button> </span> </div> </div> </div> </div> <div class="row user-row"> <div class="col-xs-3 col-sm-2 col-md-1 col-lg-1"> <img class="img-circle" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=50" alt="User Pic"> </div> <div class="col-xs-8 col-sm-9 col-md-10 col-lg-10"> <strong>Restaurateur 2</strong><br> <span class="text-muted">Nom des restaurants</span> </div> <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 dropdown-user" data-for=".user2"> <!-- A remplacer --> <i class="glyphicon glyphicon-chevron-down text-muted"></i> </div> </div> <div class="row user-infos user2"> <!-- A remplacer --> <div class="col-xs-12 col-sm-12 col-md-10 col-lg-10 col-xs-offset-0 col-sm-offset-0 col-md-offset-1 col-lg-offset-1"> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title">Informations</h3> </div> <div class="panel-body"> <div class="row"> <div class="col-md-3 col-lg-3 hidden-xs hidden-sm"> <img class="img-circle" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=100" alt="User Pic"> </div> <div class="col-xs-2 col-sm-2 hidden-md hidden-lg"> <img class="img-circle" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=50" alt="User Pic"> </div> <div class=" col-md-9 col-lg-9 hidden-xs hidden-sm"> <strong>Restaurateur 2</strong><br> <table class="table table-user-information"> <tbody> <tr> <td>Restaurateur</td> </tr> <tr> <td>Inscrit depuis :</td> <td>11/12/2013</td> </tr> <tr> <td>Restaurants :</td> <td>liste de ses restaurants</td> </tr> <tr> <td>Adresse :</td> <td>10 rue des roses</td> </tr> <tr> <td>Téléphone :</td> <td>5145625343</td> </tr> <tr> <td>Adresse e-mail :</td> <td>restaurateur2@gmail.com</td> </tr> </tbody> </table> </div> </div> </div> <div class="panel-footer"> <button class="btn btn-sm btn-primary" type="button" data-toggle="tooltip" data-original-title="Send message to user"><i class="glyphicon glyphicon-envelope"></i></button> <span class="pull-right"> <button class="btn btn-sm btn-warning" type="button" data-toggle="tooltip" data-original-title="Edit this user"><i class="glyphicon glyphicon-edit"></i></button> <button class="btn btn-sm btn-danger" type="button" data-toggle="tooltip" data-original-title="Remove this user"><i class="glyphicon glyphicon-remove"></i></button> </span> </div> </div> </div> </div> <div class="row user-row"> <div class="col-xs-3 col-sm-2 col-md-1 col-lg-1"> <img class="img-circle" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=50" alt="User Pic"> </div> <div class="col-xs-8 col-sm-9 col-md-10 col-lg-10"> <strong>Restaurateur 3</strong><br> <span class="text-muted">Nom des restaurants</span> </div> <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 dropdown-user" data-for=".user3"> <!-- A remplacer --> <i class="glyphicon glyphicon-chevron-down text-muted"></i> </div> </div> <div class="row user-infos user3"> <!-- A remplacer --> <div class="col-xs-12 col-sm-12 col-md-10 col-lg-10 col-xs-offset-0 col-sm-offset-0 col-md-offset-1 col-lg-offset-1"> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title">Informations</h3> </div> <div class="panel-body"> <div class="row"> <div class="col-md-3 col-lg-3 hidden-xs hidden-sm"> <img class="img-circle" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=100" alt="User Pic"> </div> <div class="col-xs-2 col-sm-2 hidden-md hidden-lg"> <img class="img-circle" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=50" alt="User Pic"> </div> <div class=" col-md-9 col-lg-9 hidden-xs hidden-sm"> <strong>Restaurateur 3</strong><br> <table class="table table-user-information"> <tbody> <tr> <td>Restaurateur</td> </tr> <tr> <td>Inscrit depuis :</td> <td>11/12/2013</td> </tr> <tr> <td>Restaurants :</td> <td>liste de ses restaurants</td> </tr> <tr> <td>Adresse :</td> <td>10 rue des roses</td> </tr> <tr> <td>Téléphone :</td> <td>5145625343</td> </tr> <tr> <td>Adresse e-mail :</td> <td>restaurateur3@gmail.com</td> </tr> </tbody> </table> </div> </div> </div> <div class="panel-footer"> <button class="btn btn-sm btn-primary" type="button" data-toggle="tooltip" data-original-title="Send message to user"><i class="glyphicon glyphicon-envelope"></i></button> <span class="pull-right"> <button class="btn btn-sm btn-warning" type="button" data-toggle="tooltip" data-original-title="Edit this user"><i class="glyphicon glyphicon-edit"></i></button> <button class="btn btn-sm btn-danger" type="button" data-toggle="tooltip" data-original-title="Remove this user"><i class="glyphicon glyphicon-remove"></i></button> </span> </div> </div> </div> </div> </div> </div>
.user-row { margin-bottom: 14px; } .user-row:last-child { margin-bottom: 0; } .dropdown-user { margin: 13px 0; padding: 5px; height: 100%; } .dropdown-user:hover { cursor: pointer; } .table-user-information > tbody > tr { border-top: 1px solid rgb(221, 221, 221); } .table-user-information > tbody > tr:first-child { border-top: 0; } .table-user-information > tbody > tr > td { border-top: 0; }
$(document).ready(function() { var panels = $('.user-infos'); var panelsButton = $('.dropdown-user'); panels.hide(); //Click dropdown panelsButton.click(function() { //get data-for attribute var dataFor = $(this).attr('data-for'); var idFor = $(dataFor); //current button var currentButton = $(this); idFor.slideToggle(400, function() { //Completed slidetoggle if(idFor.is(':visible')) { currentButton.html('<i class="glyphicon glyphicon-chevron-up text-muted"></i>'); } else { currentButton.html('<i class="glyphicon glyphicon-chevron-down text-muted"></i>'); } }) }); $('[data-toggle="tooltip"]').tooltip(); $('button').click(function(e) { e.preventDefault(); alert("This is a demo.\n :-)"); }); });
Related:
See More
Template
Paper Dashboard Pro Angular
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76