Commit 4dd27b91 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1740329: Adding all/none selector for suspended users page"

parents ae6c3fd9 bb74d1e8
......@@ -157,6 +157,22 @@ jQuery(function ($) {
});
show_buttons('$type');
var wireselectall = function() {
$("#selectall").click(function(e) {
e.preventDefault();
$("#suspendedlist :checkbox").prop("checked", true);
});
};
var wireselectnone = function() {
$("#selectnone").click(function(e) {
e.preventDefault();
$("#suspendedlist :checkbox").prop("checked", false);
});
};
wireselectall();
wireselectnone();
});
EOF
);
......
{include file="header.tpl"}
{$typeform|safe}
<div class="panel panel-default panel-body view-container">
<div class="panel panel-default panel-body view-container table-responsive">
{$buttonformopen|safe}
{$buttonform|safe}
<table id="suspendedlist" class="table fullwidth pull-left view-container">
<table id="suspendedlist" class="table table-striped fullwidth listing">
<thead>
<tr>
<th>{str tag=fullname}</th>
......@@ -13,7 +13,12 @@
<th>{str tag=suspendingadmin section=admin}</th>
<th>{str tag=suspensionreason section=admin}</th>
<th>{str tag=expired section=admin}</th>
<th>{str tag=select}</th>
<th><div class="headhtml allnone-toggles">
<div class="btn-group" role="group">
<a class="btn btn-xs btn-default" href="" id="selectall">{str tag='All'}</a>&nbsp;<a class="btn active btn-xs btn-default" href="" id="selectnone">{str tag='none'}</a>
</div>
</div>
</th>
</tr>
</thead>
<tbody>
......
{include file="header.tpl"}
{$typeform|safe}
<div class="panel panel-default panel-body view-container">
<div class="panel panel-default panel-body view-container table-responsive">
{$buttonformopen|safe}
{$buttonform|safe}
<table id="suspendedlist" class="table fullwidth pull-left view-container">
<table id="suspendedlist" class="table table-striped fullwidth listing">
<thead>
<tr>
<th>{str tag=fullname}</th>
......@@ -13,7 +13,12 @@
<th>{str tag=suspendingadmin section=admin}</th>
<th>{str tag=suspensionreason section=admin}</th>
<th>{str tag=expired section=admin}</th>
<th>{str tag=select}</th>
<th><div class="headhtml allnone-toggles">
<div class="btn-group" role="group">
<a class="btn btn-xs btn-default" href="" id="selectall">{str tag='All'}</a>&nbsp;<a class="btn active btn-xs btn-default" href="" id="selectnone">{str tag='none'}</a>
</div>
</div>
</th>
</tr>
</thead>
<tbody>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment