"Dropdown userlist plus administration fully responsive"
Bootstrap 3.0.0 Snippet by blueconcept

<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"> </div> <div class="col-xs-8 col-sm-9 col-md-10 col-lg-10"> <strong>Introduction to Programming</strong><br> <span class="text-muted">Introduces the design and implementation of computer programs. Includes an introduction to program structure, data types, and object-oriented design.</span> </div> <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 dropdown-user" data-for=".cyruxx"> <i class="glyphicon glyphicon-chevron-down text-muted"></i> </div> </div> <div class="row user-infos cyruxx"> <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">Course information</h3> </div> <div class="panel-body"> <div class="row"> <div class="col-md-3 col-lg-3 hidden-xs hidden-sm"> </div> <div class="col-xs-2 col-sm-2 hidden-md hidden-lg"> </div> <div class=" col-md-9 col-lg-9 hidden-xs hidden-sm"> <br> <table class="table table-user-information"> <tbody> <tr> <td>Credits: </td> <td>5</td> </tr> <tr> <td>Time: </td> <td>1020-1230</td> </tr> <tr> <td>Days: </td> <td>MW</td> </tr> <tr> <td>Year: </td> <td>2014</td> </tr> <tr> <td>Quarter: </td> <td>Summer</td> </tr> <tr> <td>Room Number: </td> <td>CP106</td> </tr> <tr> <td>Instructor: </td> <td>Alan Turing</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 instructor"><i class="glyphicon glyphicon-envelope"></i></button> <span class="pull-right"> <button class="btn btn-sm btn-danger" type="button" data-toggle="tooltip" data-original-title="Drop this Class"><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("Do you wish to drop this course?"); }); });

Related: See More


Questions / Comments: