Recipients Selector
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/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">
<h3>Recipients Selector w/ jQuery Checkbox Buttons<br />
<small>Choose your recipients, and display the results below!</small>
</h3>
<p><code>NOTE: These elements are not hooked together - like many other samples on bootsnipp.com, this is a framework sample.</code></p>
<br />
<div class="panel panel-default recipients">
<div class="panel-heading">
<span class="button-checkbox">
<button type="button" class="btn btn-sm" data-color="default">All Guests</button>
<input type="checkbox" id="showall" class="hidden" checked />
</span>
<span class="button-checkbox">
<button type="button" class="btn btn-sm" data-color="default">Not Yet Invited</button>
<input type="checkbox" id="showall" class="hidden" />
</span>
<span class="button-checkbox">
<button type="button" class="btn btn-sm" data-color="default">Yes RSVP</button>
<input type="checkbox" id="showall" class="hidden" />
</span>
<span class="button-checkbox">
<button type="button" class="btn btn-sm" data-color="default">No RSVP</button>
<input type="checkbox" id="showall" class="hidden" />
</span>
<span class="button-checkbox">
<button type="button" class="btn btn-sm" data-color="default">Maybe RSVP</button>
<input type="checkbox" id="showall" class="hidden" />
</span>
<span class="button-checkbox">
<button type="button" class="btn btn-sm" data-color="default">Not Yet Replied</button>
<input type="checkbox" id="showall" class="hidden" />
</span>
</div>
<div class="panel-body">
<div class="recipient" title="Travis Wilson
[email protected]">
<img src="http://placehold.it/50x50" /> Travis Wilson <div class="email">
[email protected]</div>
</div>
<div class="recipient" title="Marshall Hitt
[email protected]">
<img src="http://placehold.it/50x50" /> Marshall Hitt <div class="email">
[email protected]</div>
</div>
<div class="recipient" title="Joe Cadena
[email protected]">
<img src="http://placehold.it/50x50" /> Joe Cadena <div class="email">
[email protected]</div>
</div>
<div class="recipient" title="Mike McBride
[email protected]">
<img src="http://placehold.it/50x50" /> Mike McBride <div class="email">
[email protected]</div>
</div>
<div class="clearfix"></div>
</div>
<div class="panel-footer">
<span class="text-muted">4 guest(s) selected</span>
</div>
</div>
</div>
.recipients .panel-body {
overflow: auto;
max-height: 200px;
}
.recipients .recipient {
display: block;
float: left;
width: 140px;
margin: 0 5px 5px 0;
font-size: 0.85em;
overflow: hidden;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
}
.recipients .recipient img {
float: left;
height: 28px;
margin-right: 5px;
}
.recipients .recipient .email {
font-size: 0.9em;
color: #999;
overflow: hidden;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
}
The HTML-code is invalid. You are not allowed to use an ID more than 1 time. Why anyway use so many ids? You can do nearly all with classes.,We have some similar features for choosing users to be assigned to a development ticket but not this cool.,this seems broken,How so? ,I agree with sd. When I click on the checkboxes nothing happens with the recipients. It just seems like recipients are supposed to change in some way. And I can’t select more or less recipients.,It’s html.. It’s up to you to figure out what should happen :),Looks great btw!,I can add this functionality, but it seemed to be outside the scope of a Bootstrap snippet. I’ll look into adding this.,The author is travislaynewilson

Loading...