Skip to content

Commit

Permalink
Dev: Put check icon in own column (CintLink)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jul 27, 2016
1 parent f438dbe commit 549cbfd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions application/core/plugins/CintLink/css/cintlink.css
Expand Up @@ -17,3 +17,7 @@
.label {
font-size: 100%;
}

.cintlink-completed-check-column {
width: 20px;
}
8 changes: 7 additions & 1 deletion application/core/plugins/CintLink/views/dashboard.php
Expand Up @@ -22,6 +22,7 @@
<th><?php echo $plugin->gT('Created'); ?></th>
<th><?php echo $plugin->gT('Survey ID'); ?></th>
<th><?php echo $plugin->gT('Ordered by'); ?></th>
<th></th> <!-- Check icon column -->
<th><?php echo $plugin->gT('Status'); ?></th>
<th></th>
</thead>
Expand All @@ -35,14 +36,19 @@

<!-- Status column -->
<?php if ($order->status == 'live'): ?>
<td></td>
<td><span class='label label-success'><?php echo $plugin->gT(ucfirst($order->status)); ?></span></td>
<?php elseif ($order->status == 'denied'): ?>
<td></td>
<td><span class='label label-danger'><?php echo $plugin->gT(ucfirst($order->status)); ?></span></td>
<?php elseif ($order->status == 'new'): ?>
<td></td>
<td><?php echo $plugin->gT('Under review'); ?></td>
<?php elseif ($order->status == 'completed'): ?>
<td><span class='fa fa-check'></span>&nbsp;<?php echo $plugin->gT(ucfirst($order->status)); ?></td>
<td class='cintlink-completed-check-column'><span class='fa fa-check'></span></td>
<td><?php echo $plugin->gT(ucfirst($order->status)); ?></td>
<?php else: ?>
<td></td>
<td><?php echo $plugin->gT(ucfirst($order->status)); ?></td>
<?php endif; ?>

Expand Down

0 comments on commit 549cbfd

Please sign in to comment.