aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/assignments-overview.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/include/assignments-overview.php b/include/assignments-overview.php
index af201f9..4af041c 100644
--- a/include/assignments-overview.php
+++ b/include/assignments-overview.php
@@ -22,14 +22,14 @@
<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="assignments-overview">
<thead>
<tr>
- <th>#</th>
- <th>Offer</th>
+ <th class="mixitup-sort" data-sort="mixerOrderId:desc">#</th>
+ <th class="mixitup-sort" data-sort="mixerOrderOffer:desc">Offer</th>
<th>Briefing</th>
- <th>Time</th>
- <th>Price</th>
+ <th class="mixitup-sort" data-sort="mixerOrderTime:asc">Time</th>
+ <th class="mixitup-sort" data-sort="mixerOrderPrice:asc">Price</th>
<th>Tools</th>
</tr>
</thead>
@@ -37,7 +37,11 @@
<?php
$assignments = BusinessAdmin::getAssignments($_pdo);
foreach ($assignments as $assignment) {
- echo "<tr>
+ echo "<tr class='mix'
+ data-mixer-order-id='{$assignment->getId()}'
+ data-mixer-order-offer='{$assignment->getOffer()->getId()}'
+ data-mixer-order-time='{$assignment->getHours()}'
+ data-mixer-order-price='{$assignment->getPricePerHour()}'>
<td class='col-min-width'>{$assignment->getId()}</td>
<td class='col-min-width'>#{$assignment->getOffer()->getId()} to {$assignment->getOffer()->getContact()->getName()} ({$assignment->getOffer()->getContact()->getClient()->getName()})</td>
<td class='col-max-width'>