mirror of
https://github.com/itflow-org/itflow
synced 2026-03-07 22:34:52 +00:00
UI move client tags from the client side nav bar to client header under client name and website with a tag icon
This commit is contained in:
12
client.php
12
client.php
@@ -69,9 +69,9 @@ if(isset($_GET['client_id'])){
|
|||||||
}
|
}
|
||||||
|
|
||||||
$client_tag_id_array[] = $client_tag_id;
|
$client_tag_id_array[] = $client_tag_id;
|
||||||
$client_tag_name_display_array[] = "<div class='badge bg-$client_tag_color'><i class='fa fa-fw fa-$client_tag_icon'></i> $client_tag_name</div> ";
|
$client_tag_name_display_array[] = "$client_tag_name ";
|
||||||
}
|
}
|
||||||
$client_tags_display = implode('', $client_tag_name_display_array);
|
$client_tags_display = "<i class='fa fa-fw fa-tag text-secondary ml-1 mr-2 mb-2'></i> " . implode('', $client_tag_name_display_array);
|
||||||
|
|
||||||
//Add up all the payments for the invoice and get the total amount paid to the invoice
|
//Add up all the payments for the invoice and get the total amount paid to the invoice
|
||||||
$sql_invoice_amounts = mysqli_query($mysqli,"SELECT SUM(invoice_amount) AS invoice_amounts FROM invoices WHERE invoice_client_id = $client_id AND invoice_status NOT LIKE 'Draft' AND invoice_status NOT LIKE 'Cancelled'");
|
$sql_invoice_amounts = mysqli_query($mysqli,"SELECT SUM(invoice_amount) AS invoice_amounts FROM invoices WHERE invoice_client_id = $client_id AND invoice_status NOT LIKE 'Draft' AND invoice_status NOT LIKE 'Cancelled'");
|
||||||
@@ -186,6 +186,14 @@ $location_phone = formatPhoneNumber($location_phone);
|
|||||||
if(!empty($client_website)){
|
if(!empty($client_website)){
|
||||||
?>
|
?>
|
||||||
<i class="fa fa-fw fa-globe text-secondary ml-1 mr-2 mb-2"></i> <a target="_blank" href="//<?php echo $client_website; ?>"><?php echo $client_website; ?></a>
|
<i class="fa fa-fw fa-globe text-secondary ml-1 mr-2 mb-2"></i> <a target="_blank" href="//<?php echo $client_website; ?>"><?php echo $client_website; ?></a>
|
||||||
|
<br>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
if(!empty($client_tag_name_display_array)){
|
||||||
|
?>
|
||||||
|
<?php echo $client_tags_display; ?>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -13,11 +13,8 @@
|
|||||||
<p>Back | <strong><?php echo $client_name; ?></strong></p>
|
<p>Back | <strong><?php echo $client_name; ?></strong></p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div class="sidebar-custom mb-2">
|
|
||||||
<div class="text-wrap"><?php echo $client_tags_display; ?></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<li class="nav-item">
|
<li class="nav-item mt-3">
|
||||||
<a href="?client_id=<?php echo $client_id; ?>&tab=overview" class="nav-link <?php if($_GET['tab'] == "overview") { echo "active"; } ?>">
|
<a href="?client_id=<?php echo $client_id; ?>&tab=overview" class="nav-link <?php if($_GET['tab'] == "overview") { echo "active"; } ?>">
|
||||||
<i class="nav-icon fas fa-tachometer-alt"></i>
|
<i class="nav-icon fas fa-tachometer-alt"></i>
|
||||||
<p>Overview</p>
|
<p>Overview</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user