mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 21:04:50 +00:00
Another Update to client header it does take little more space than the last one but it is collapsable, uncollapsed by default
This commit is contained in:
@@ -1,79 +1,111 @@
|
|||||||
<div class="card d-print-none">
|
<div class="card d-print-none">
|
||||||
<div class="card-body py-2">
|
<div class="card-body py-2">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md">
|
<div class="col">
|
||||||
<h4 class="text-secondary"><strong><?php echo $client_name; ?></strong></h4>
|
<a href="#" data-toggle="collapse" data-target="#Collapse"><h4 class="text-secondary"><strong><?php echo $client_name; ?></strong></h4></a>
|
||||||
<?php if (!empty($location_address)) { ?>
|
</div>
|
||||||
<div>
|
<div class="col">
|
||||||
<a href="//maps.<?php echo $session_map_source; ?>.com/?q=<?php echo "$location_address $location_zip"; ?>" target="_blank">
|
<?php if ($session_user_role == 3) { ?>
|
||||||
<i class="fa fa-fw fa-map-marker-alt text-secondary ml-1 mr-2"></i><?php echo $location_address; ?>
|
<div class="dropdown dropleft text-center">
|
||||||
<div class="ml-4"><?php echo "$location_city $location_state $location_zip"; ?></div>
|
<button class="btn btn-dark btn-sm float-right" type="button" data-toggle="dropdown">
|
||||||
|
<i class="fas fa-fw fa-ellipsis-v"></i>
|
||||||
|
</button>
|
||||||
|
<div class="dropdown-menu">
|
||||||
|
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editClientModal<?php echo $client_id; ?>">
|
||||||
|
<i class="fas fa-fw fa-edit mr-2"></i>Edit Client
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#exportClientPDFModal">
|
||||||
|
<i class="fas fa-fw fa-file-pdf mr-2"></i>Export Data
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item text-danger" href="post.php?archive_client=<?php echo $client_id; ?>">
|
||||||
|
<i class="fas fa-fw fa-archive mr-2"></i>Archive Client
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item text-danger text-bold" href="#" data-toggle="modal" data-target="#deleteClientModal<?php echo $client_id; ?>">
|
||||||
|
<i class="fas fa-fw fa-trash mr-2"></i>Delete Client
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
</div>
|
||||||
|
|
||||||
if (!empty($location_phone)) { ?>
|
|
||||||
<div class="mt-1">
|
|
||||||
<i class="fa fa-fw fa-phone text-secondary ml-1 mr-2"></i><a href="tel:<?php echo $location_phone?>"><?php echo $location_phone; ?></a>
|
|
||||||
</div>
|
|
||||||
<?php }
|
|
||||||
|
|
||||||
if (!empty($client_website)) { ?>
|
|
||||||
<div class="mt-1">
|
|
||||||
<i class="fa fa-fw fa-globe text-secondary ml-1 mr-2"></i><a target="_blank" href="//<?php echo $client_website; ?>"><?php echo $client_website; ?></a>
|
|
||||||
</div>
|
|
||||||
<?php }
|
|
||||||
|
|
||||||
if (!empty($client_tag_name_display_array)) { ?>
|
|
||||||
<div class="mt-1">
|
|
||||||
<?php echo $client_tags_display; ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md border-left">
|
</div>
|
||||||
<h4 class="text-secondary">Primary Contact</h4>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
if (!empty($contact_name)) { ?>
|
|
||||||
<div>
|
|
||||||
<i class="fa fa-fw fa-user text-secondary ml-1 mr-2"></i> <?php echo $contact_name; ?>
|
|
||||||
</div>
|
|
||||||
<?php }
|
|
||||||
|
|
||||||
if (!empty($contact_email)) { ?>
|
<div class="collapse show" id="Collapse">
|
||||||
<div class="mt-1">
|
<div class="row">
|
||||||
<i class="fa fa-fw fa-envelope text-secondary ml-1 mr-2"></i>
|
|
||||||
<a href="mailto:<?php echo $contact_email; ?>"> <?php echo $contact_email; ?></a>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($contact_phone)) { ?>
|
<div class="col-md">
|
||||||
<div class="mt-1">
|
<h5 class="text-secondary">Primary Location</h5>
|
||||||
<i class="fa fa-fw fa-phone text-secondary ml-1 mr-2"></i>
|
<?php if (!empty($location_address)) { ?>
|
||||||
<a href="tel:<?php echo $contact_phone; ?>"><?php echo $contact_phone; ?></a>
|
<div>
|
||||||
|
<a href="//maps.<?php echo $session_map_source; ?>.com/?q=<?php echo "$location_address $location_zip"; ?>" target="_blank">
|
||||||
|
<i class="fa fa-fw fa-map-marker-alt text-secondary ml-1 mr-2"></i><?php echo $location_address; ?>
|
||||||
|
<div class="ml-4"><?php echo "$location_city $location_state $location_zip"; ?></div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<?php }
|
||||||
|
|
||||||
<?php
|
if (!empty($location_phone)) { ?>
|
||||||
if (!empty($contact_extension)) {
|
<div class="mt-1">
|
||||||
echo "<small>x$contact_extension</small>";
|
<i class="fa fa-fw fa-phone text-secondary ml-1 mr-2"></i><a href="tel:<?php echo $location_phone?>"><?php echo $location_phone; ?></a>
|
||||||
}
|
</div>
|
||||||
?>
|
<hr class="my-2">
|
||||||
</div>
|
<?php }
|
||||||
<?php
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($contact_mobile)) { ?>
|
if (!empty($client_website)) { ?>
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<i class="fa fa-fw fa-mobile-alt text-secondary ml-1 mr-2"></i>
|
<i class="fa fa-fw fa-globe text-secondary ml-1 mr-2"></i><a target="_blank" href="//<?php echo $client_website; ?>"><?php echo $client_website; ?></a>
|
||||||
<a href="tel:<?php echo $contact_mobile; ?>"><?php echo $contact_mobile; ?></a>
|
</div>
|
||||||
</div>
|
<?php } ?>
|
||||||
<?php } ?>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
<?php if ($session_user_role == 1 || $session_user_role == 3 && $config_module_enable_accounting == 1) { ?>
|
|
||||||
<div class="col-md border-left">
|
<div class="col-md border-left">
|
||||||
<h4 class="text-secondary">Billing</h4>
|
<h5 class="text-secondary">Primary Contact</h5>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if (!empty($contact_name)) { ?>
|
||||||
|
<div>
|
||||||
|
<i class="fa fa-fw fa-user text-secondary ml-1 mr-2"></i> <?php echo $contact_name; ?>
|
||||||
|
</div>
|
||||||
|
<?php }
|
||||||
|
|
||||||
|
if (!empty($contact_email)) { ?>
|
||||||
|
<div class="mt-1">
|
||||||
|
<i class="fa fa-fw fa-envelope text-secondary ml-1 mr-2"></i>
|
||||||
|
<a href="mailto:<?php echo $contact_email; ?>"> <?php echo $contact_email; ?></a>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($contact_phone)) { ?>
|
||||||
|
<div class="mt-1">
|
||||||
|
<i class="fa fa-fw fa-phone text-secondary ml-1 mr-2"></i>
|
||||||
|
<a href="tel:<?php echo $contact_phone; ?>"><?php echo $contact_phone; ?></a>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (!empty($contact_extension)) {
|
||||||
|
echo "<small>x$contact_extension</small>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($contact_mobile)) { ?>
|
||||||
|
<div class="mt-1">
|
||||||
|
<i class="fa fa-fw fa-mobile-alt text-secondary ml-1 mr-2"></i>
|
||||||
|
<a href="tel:<?php echo $contact_mobile; ?>"><?php echo $contact_mobile; ?></a>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php if ($session_user_role == 1 || $session_user_role == 3 && $config_module_enable_accounting == 1) { ?>
|
||||||
|
<div class="col-md border-left">
|
||||||
|
<h5 class="text-secondary">Billing</h5>
|
||||||
<div class="ml-1 text-secondary">Hourly Rate
|
<div class="ml-1 text-secondary">Hourly Rate
|
||||||
<span class="text-dark float-right"> <?php echo numfmt_format_currency($currency_format, $client_rate, $client_currency_code); ?></span>
|
<span class="text-dark float-right"> <?php echo numfmt_format_currency($currency_format, $client_rate, $client_currency_code); ?></span>
|
||||||
</div>
|
</div>
|
||||||
@@ -95,42 +127,24 @@
|
|||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
<?php if ($config_module_enable_ticketing == 1) { ?>
|
|
||||||
<div class="col-md border-left">
|
<div class="col-md border-left">
|
||||||
<h4 class="text-secondary">Support</h4>
|
<h5 class="text-secondary">Support</h5>
|
||||||
<div class="ml-1 text-secondary">Open Tickets
|
<div class="ml-1 text-secondary">Open Tickets
|
||||||
<span class="text-dark float-right"><?php echo $num_active_tickets; ?></span>
|
<span class="text-dark float-right"><?php echo $num_active_tickets; ?></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="ml-1 text-secondary mt-1">Closed Tickets
|
||||||
<?php } ?>
|
<span class="text-dark float-right"><?php echo $num_closed_tickets; ?></span>
|
||||||
|
|
||||||
<div class="col-md-1 border-left">
|
|
||||||
<?php if ($session_user_role == 3) { ?>
|
|
||||||
<div class="dropdown dropleft text-center">
|
|
||||||
<button class="btn btn-dark btn-sm float-right" type="button" data-toggle="dropdown">
|
|
||||||
<i class="fas fa-fw fa-ellipsis-v"></i>
|
|
||||||
</button>
|
|
||||||
<div class="dropdown-menu">
|
|
||||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editClientModal<?php echo $client_id; ?>">
|
|
||||||
<i class="fas fa-fw fa-edit mr-2"></i>Edit Client
|
|
||||||
</a>
|
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#exportClientPDFModal">
|
|
||||||
<i class="fas fa-fw fa-file-pdf mr-2"></i>Export Data
|
|
||||||
</a>
|
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<a class="dropdown-item text-danger" href="post.php?archive_client=<?php echo $client_id; ?>">
|
|
||||||
<i class="fas fa-fw fa-archive mr-2"></i>Archive Client
|
|
||||||
</a>
|
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<a class="dropdown-item text-danger text-bold" href="#" data-toggle="modal" data-target="#deleteClientModal<?php echo $client_id; ?>">
|
|
||||||
<i class="fas fa-fw fa-trash mr-2"></i>Delete Client
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php
|
||||||
|
if (!empty($client_tag_name_display_array)) { ?>
|
||||||
|
<hr>
|
||||||
|
<?php echo $client_tags_display; ?>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user