mirror of
https://github.com/itflow-org/itflow
synced 2026-09-20 21:51:16 +00:00
Initial migration from AdminLTE 3 to 4, bootstrap 4 to 5
This commit is contained in:
@@ -3,57 +3,57 @@
|
||||
<div class="card d-print-none">
|
||||
<div class="card-header pb-1 pt-2 px-3">
|
||||
<div class="card-title">
|
||||
<a href="#" data-toggle="collapse" data-target="#clientHeader"><h4 class="text-dark" data-toggle="tooltip" data-placement="right" title="Client ID: <?= $client_id ?>"><strong><?= $client_name ?></strong> <?php if ($client_archived_at) { echo "(archived)"; } ?></h4></a>
|
||||
<a href="#" data-bs-toggle="collapse" data-bs-target="#clientHeader"><h4 class="text-dark" data-bs-toggle="tooltip" data-bs-placement="right" title="Client ID: <?= $client_id ?>"><strong><?= $client_name ?></strong> <?php if ($client_archived_at) { echo "(archived)"; } ?></h4></a>
|
||||
</div>
|
||||
<?php if (!empty($client_tag_name_display_array)) { ?><div class="card-title ml-2"><?= $client_tags_display ?></div> <?php } ?>
|
||||
<?php if (!empty($client_tag_name_display_array)) { ?><div class="card-title ms-2"><?= $client_tags_display ?></div> <?php } ?>
|
||||
<?php if (lookupUserPermission("module_client") >= 2) { ?>
|
||||
<div class="card-tools">
|
||||
<div class="dropdown dropleft text-center">
|
||||
<button class="btn btn-dark btn-sm" type="button" data-toggle="dropdown">
|
||||
<div class="dropdown dropstart text-center">
|
||||
<button class="btn btn-dark btn-sm" type="button" data-bs-toggle="dropdown">
|
||||
<i class="fas fa-fw fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<?php if (lookupUserPermission("module_support") >= 2) { ?>
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/ticket/ticket_add.php?client_id=<?= $client_id ?>" data-modal-size="lg">
|
||||
<i class="fas fa-fw fa-life-ring mr-2"></i>New Ticket
|
||||
<i class="fas fa-fw fa-life-ring me-2"></i>New Ticket
|
||||
</a>
|
||||
<?php } ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-url="modals/client/client_edit.php?id=<?= $client_id ?>">
|
||||
<i class="fas fa-fw fa-edit mr-2"></i>Edit Client
|
||||
<i class="fas fa-fw fa-edit me-2"></i>Edit Client
|
||||
</a>
|
||||
<?php if (lookupUserPermission("module_billing") >= 2) { ?>
|
||||
<?php if ($show_add_credit) { ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#addCreditModal">
|
||||
<i class="fas fa-fw fa-wallet mr-2"></i>Add Credit
|
||||
<a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#addCreditModal">
|
||||
<i class="fas fa-fw fa-wallet me-2"></i>Add Credit
|
||||
</a>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php if (lookupUserPermission("module_client") >= 1) { ?>
|
||||
<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 class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#exportClientPDFModal">
|
||||
<i class="fas fa-fw fa-file-pdf me-2"></i>Export Data
|
||||
</a>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (empty($client_archived_at)) { ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-danger confirm-link" href="post.php?archive_client=<?= $client_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
|
||||
<i class="fas fa-fw fa-archive mr-2"></i>Archive Client
|
||||
<i class="fas fa-fw fa-archive me-2"></i>Archive Client
|
||||
</a>
|
||||
<?php } else { ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-primary confirm-link" href="post.php?restore_client=<?= $client_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
|
||||
<i class="fas fa-fw fa-archive mr-2"></i>Restore Client
|
||||
<i class="fas fa-fw fa-archive me-2"></i>Restore Client
|
||||
</a>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (lookupUserPermission("module_client") >= 3 && $client_archived_at) { ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-danger text-bold" href="#" data-toggle="modal" data-target="#deleteClientModal<?= $client_id ?>">
|
||||
<i class="fas fa-fw fa-trash mr-2"></i>Delete Client
|
||||
<a class="dropdown-item text-danger text-bold" href="#" data-bs-toggle="modal" data-bs-target="#deleteClientModal<?= $client_id ?>">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete Client
|
||||
</a>
|
||||
<?php } ?>
|
||||
|
||||
@@ -72,12 +72,12 @@
|
||||
<?php if (!empty($location_address)) { ?>
|
||||
<div>
|
||||
<a href="//maps.<?= $session_map_source ?>.com/?q=<?= "$location_address $location_zip" ?>" target="_blank">
|
||||
<i class="fa fa-fw fa-map-marker-alt text-secondary ml-1 mr-2"></i><?= $location_address ?>
|
||||
<i class="fa fa-fw fa-map-marker-alt text-secondary ms-1 me-2"></i><?= $location_address ?>
|
||||
<div>
|
||||
<i class="fa fa-fw ml-1 mr-2"></i><?= formatAddress('', $location_city, $location_state, $location_zip, '', ' ') ?>
|
||||
<i class="fa fa-fw ms-1 me-2"></i><?= formatAddress('', $location_city, $location_state, $location_zip, '', ' ') ?>
|
||||
</div>
|
||||
<div>
|
||||
<i class="fa fa-fw ml-1 mr-2"></i><small><?= $location_country ?></small>
|
||||
<i class="fa fa-fw ms-1 me-2"></i><small><?= $location_country ?></small>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
@@ -85,14 +85,14 @@
|
||||
|
||||
if (!empty($location_phone)) { ?>
|
||||
<div>
|
||||
<i class="fa fa-fw fa-phone text-secondary ml-1 mr-2"></i><a href="tel:<?= $location_phone ?>"><?= $location_phone ?></a>
|
||||
<i class="fa fa-fw fa-phone text-secondary ms-1 me-2"></i><a href="tel:<?= $location_phone ?>"><?= $location_phone ?></a>
|
||||
</div>
|
||||
<hr class="my-2">
|
||||
<?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="//<?= $client_website ?>"><?= $client_website ?></a>
|
||||
<i class="fa fa-fw fa-globe text-secondary ms-1 me-2"></i><a target="_blank" href="//<?= $client_website ?>"><?= $client_website ?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -103,20 +103,20 @@
|
||||
|
||||
if (!empty($contact_name)) { ?>
|
||||
<div>
|
||||
<i class="fa fa-fw fa-user text-secondary ml-1 mr-2"></i><?= $contact_name ?>
|
||||
<i class="fa fa-fw fa-user text-secondary ms-1 me-2"></i><?= $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:<?= $contact_email ?>"><?= $contact_email ?></a>
|
||||
<i class="fa fa-fw fa-envelope text-secondary ms-1 me-2"></i><a href="mailto:<?= $contact_email ?>"><?= $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:<?= $contact_phone ?>"><?= $contact_phone ?></a>
|
||||
<i class="fa fa-fw fa-phone text-secondary ms-1 me-2"></i><a href="tel:<?= $contact_phone ?>"><?= $contact_phone ?></a>
|
||||
|
||||
<?php
|
||||
if (!empty($contact_extension)) {
|
||||
@@ -129,7 +129,7 @@
|
||||
|
||||
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:<?= $contact_mobile ?>"><?= $contact_mobile ?></a>
|
||||
<i class="fa fa-fw fa-mobile-alt text-secondary ms-1 me-2"></i><a href="tel:<?= $contact_mobile ?>"><?= $contact_mobile ?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -138,36 +138,36 @@
|
||||
|
||||
<div class="card card-body px-3 py-2">
|
||||
<h5>Billing</h5>
|
||||
<div class="ml-1 text-secondary">Hourly Rate
|
||||
<span class="text-dark float-right"> <?= numfmt_format_currency($currency_format, $client_rate, $client_currency_code) ?></span>
|
||||
<div class="ms-1 text-secondary">Hourly Rate
|
||||
<span class="text-dark float-end"> <?= numfmt_format_currency($currency_format, $client_rate, $client_currency_code) ?></span>
|
||||
</div>
|
||||
<div class="ml-1 mt-1 text-secondary">Paid
|
||||
<span class="text-dark float-right"> <?= numfmt_format_currency($currency_format, $amount_paid, $client_currency_code) ?></span>
|
||||
<div class="ms-1 mt-1 text-secondary">Paid
|
||||
<span class="text-dark float-end"> <?= numfmt_format_currency($currency_format, $amount_paid, $client_currency_code) ?></span>
|
||||
</div>
|
||||
<div class="ml-1 mt-1 text-secondary">Balance
|
||||
<span class="<?php if ($balance > 0) { echo "text-danger"; }else{ echo "text-dark"; } ?> float-right"> <?= numfmt_format_currency($currency_format, $balance, $client_currency_code) ?></span>
|
||||
<div class="ms-1 mt-1 text-secondary">Balance
|
||||
<span class="<?php if ($balance > 0) { echo "text-danger"; }else{ echo "text-dark"; } ?> float-end"> <?= numfmt_format_currency($currency_format, $balance, $client_currency_code) ?></span>
|
||||
</div>
|
||||
<?php /* Credit Not Ready 2025-08-27 JQ
|
||||
if ($credit_balance) { ?>
|
||||
<div class="ml-1 mt-1 text-secondary">Credit
|
||||
<span class="text-success float-right"><?php echo numfmt_format_currency($currency_format, $credit_balance, $client_currency_code); ?></span>
|
||||
<div class="ms-1 mt-1 text-secondary">Credit
|
||||
<span class="text-success float-end"><?php echo numfmt_format_currency($currency_format, $credit_balance, $client_currency_code); ?></span>
|
||||
</div>
|
||||
<?php } */?>
|
||||
<div class="ml-1 mt-1 text-secondary">Monthly Recurring
|
||||
<span class="text-dark float-right"> <?= numfmt_format_currency($currency_format, $recurring_monthly, $client_currency_code) ?></span>
|
||||
<div class="ms-1 mt-1 text-secondary">Monthly Recurring
|
||||
<span class="text-dark float-end"> <?= numfmt_format_currency($currency_format, $recurring_monthly, $client_currency_code) ?></span>
|
||||
</div>
|
||||
<div class="ml-1 mt-1 text-secondary">Net Terms
|
||||
<span class="text-dark float-right">
|
||||
<div class="ms-1 mt-1 text-secondary">Net Terms
|
||||
<span class="text-dark float-end">
|
||||
<?php if ($client_net_terms) { ?>
|
||||
<?= $client_net_terms; ?><small class="text-secondary ml-1">Days</small>
|
||||
<?= $client_net_terms; ?><small class="text-secondary ms-1">Days</small>
|
||||
<?php } else { ?>
|
||||
On Receipt
|
||||
<?php } ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php if(!empty($client_tax_id_number)) { ?>
|
||||
<div class="ml-1 mt-1 text-secondary">Tax ID
|
||||
<span class="text-dark float-right text-monospace"><?= $client_tax_id_number ?></span>
|
||||
<div class="ms-1 mt-1 text-secondary">Tax ID
|
||||
<span class="text-dark float-end font-monospace"><?= $client_tax_id_number ?></span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -176,11 +176,11 @@
|
||||
<?php if (lookupUserPermission("module_support") >= 1 && $config_module_enable_ticketing == 1) { ?>
|
||||
<div class="card card-body px-3 py-2">
|
||||
<h5>Support</h5>
|
||||
<div class="ml-1 text-secondary">Open Tickets
|
||||
<span class="text-dark float-right"><?= $num_active_tickets ?></span>
|
||||
<div class="ms-1 text-secondary">Open Tickets
|
||||
<span class="text-dark float-end"><?= $num_active_tickets ?></span>
|
||||
</div>
|
||||
<div class="ml-1 text-secondary mt-1">Closed Tickets
|
||||
<span class="text-dark float-right"><?= $num_closed_tickets ?></span>
|
||||
<div class="ms-1 text-secondary mt-1">Closed Tickets
|
||||
<span class="text-dark float-end"><?= $num_closed_tickets ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user