diff options
author | Camil Staps | 2015-02-10 10:54:11 +0100 |
---|---|---|
committer | Camil Staps | 2015-02-10 10:54:11 +0100 |
commit | be28e3580e315aeb149acacb9e43a454b0376f7f (patch) | |
tree | e4d2da7e4d504c59e1fdaaa4e9737cb51891dfbe /include/clients-overview.php | |
parent | updated docs (diff) |
sorting also for clients and contacts
Diffstat (limited to 'include/clients-overview.php')
-rw-r--r-- | include/clients-overview.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/clients-overview.php b/include/clients-overview.php index 523aeef..a238ab1 100644 --- a/include/clients-overview.php +++ b/include/clients-overview.php @@ -22,11 +22,11 @@ <div class="panel panel-default"> <div class="panel-heading">Overview</div> <div class="panel-body table-responsive"> - <table class="table table-bordered table-striped"> + <table class="table table-bordered table-striped mixitup" id="overview-clients"> <thead> <tr> - <th>#</th> - <th>Name</th> + <th class="mixitup-sort" data-sort="mixerOrderId:asc">#</th> + <th class="mixitup-sort" data-sort="mixerOrderName:asc">Name</th> <th>Tools</th> </tr> </thead> @@ -34,7 +34,9 @@ <?php $clients = BusinessAdmin::getClients($_pdo); foreach ($clients as $client) { - echo "<tr> + echo "<tr class='mix' + data-mixer-order-id='{$client->getId()}' + data-mixer-order-name='{$client->getName()}'> <td class='col-min-width'>{$client->getId()}</td> <td class='col-max-width'> <a href='#' class='editable' id='editable-client-{$client->getId()}-name' data-type='text' data-pk='{$client->getId()}' data-url='".constants::url_external."clients/edit' data-title='Enter new name'> |