QoL 55: one copy icon and one show icon everywhere, text-dark dropped from the 30 menu items that had it, light badges as text-bg-light, and the network IP list's Selected button named Bulk Action like every other list

This commit is contained in:
johnnyq
2026-11-21 01:16:24 -05:00
parent 14990ac931
commit 4265db34b6
72 changed files with 110 additions and 109 deletions

View File

@@ -219,7 +219,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
- Tickets: the first technician to reply to a ticket nobody is assigned to - with a public note, an email reply or a text reply - is assigned it, as Assign to me would, and the message after sending says so. An internal note doesn't assign it, so a ticket can be looked into, or someone @mentioned on it, without taking it, and a ticket already assigned keeps its technician. Admin > Settings > Tickets > Assigning switches it off - for a shop where someone answers new tickets before handing them on.
- Dates: every date reads one way - Nov 13, 2026, with times as 2:30 PM and the day of the week as Fri, Nov 13 where it shows. The invoice, quote, recurring invoice, expense, income, trip and transaction lists and pages, an asset's and a license's dates, certificates, domains, invoice and quote PDFs, statements and the guest invoice and quote pages showed 2026-11-13; some times read 2:30pm or 14:30, and some emails put the day first, 13 Nov. Pointing at a "3 days ago" shows the date and time the same way. Date fields, exports and file names keep 2026-11-13.
- Windows and buttons: a window that makes something new is called New ... and its button says Create, and an edit window is called Edit ..., with the record's name after it in lighter text, and its button says Save - the titles read Editing contact:, Tag:, Creating note: and so on, and the buttons said Add, Add Income, Add Expense, Log Trip, Set Up, Make Draft, Create Client, Save changes and the like. On list pages the button that opens it says New, as New Provider, New Model, New Instance and New Item had said Add. A window that adds to the record it's on - Add Tickets on an invoice, Add keys on a license - still says Add. Field labels sit the same distance above their fields in every window, the extensions on a new client, applying a project template and adding ticket templates to one have their icon in front like every other field, invoices have one icon everywhere, and deleting a client is a normal window with Delete at the bottom, turned on once the client's name is typed.
- Menus, icons and questions: every More menu has the same ⋮ button, and Delete, Restore and Export each have one icon everywhere. The required-field star sits the same way on every form, and Incident response has the usual dark window with its warning in red. A question before an action names it on its button - Delete, Remove, Archive - rather than Yes. Resetting a ticket's timer, removing an approval request, redacting with nothing selected and a window that fails to open now use ITFlow's own question and message rather than the browser's. Every list's search box reads Search ..., with what it looks in shown when you point at it.
- Menus, icons and questions: every More menu has the same ⋮ button, and Delete, Restore, Export, Copy and Show each have one icon everywhere, and a network's IP list says Bulk Action like every other list. The required-field star sits the same way on every form, and Incident response has the usual dark window with its warning in red. A question before an action names it on its button - Delete, Remove, Archive - rather than Yes. Resetting a ticket's timer, removing an approval request, redacting with nothing selected and a window that fails to open now use ITFlow's own question and message rather than the browser's. Every list's search box reads Search ..., with what it looks in shown when you point at it.
- Dropdowns: the empty first choice reads the same way everywhere - - Select a client -, - Select an account - and so on where you pick one, - Any client -, - Any status - where a list is filtered, and - None -, - No contact -, - Nobody - where it can be left blank. They had said - Select Client -, - Pick a role -, - Which account -, - How it was paid -, - All Clients -, Not Assigned and the like.
- Capitals: page and window titles, menu items and buttons are in Title Case - New Ticket, Mark Reviewed, Back Up Now, Turn Off Portal Access - and field labels, section headings, tabs and help are in sentence case - Postal code, Tax rate, Physical location - in the agent pages, Admin and the client portal alike. The settings pages in the menu are now Company Details, Invoices and Billing, Purchase Orders, Client Portal and Single Sign-on.
- Lists: the first click on a column you aren't sorting by sorts names A-Z and dates, money and counts newest or largest first, and a second click flips it. It used to go the opposite way to the column you were on, so the first click could go either way.
@@ -454,6 +454,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
- Tab titles: `includes/page_title.php` takes a report's title from `reportCatalog()`, a settings page's from `settingsPages()` and a few others from a short list, and makes the rest from the file name with its acronyms in capitals. `$page_title` is no longer HTML-escaped there - the footer writes it with `json_encode()` and `emptyStateHtml()` escapes it.
- Bootstrap 5 classes: `fw-bold` in place of the `text-bold` shim, `text-body-secondary` in place of `text-muted`, and `fas` as the icon prefix in place of Font Awesome 5's `fa` alias, everywhere. The user menu's buttons are `btn-light border`. `css/itflow_custom.css` loses the shims for `text-bold`, `text-xs`, `btn-default`, `btn-flat`, `bg-olive`, `bg-pink` and `bg-purple` and the unused `.small-box` styles. The `data-bs-toggle="tooltip"` on the menu counts did nothing - their `title` still shows - and is gone.
- Messages: `flashAlert()` and `itflowToast()` are called with 'success', 'info', 'warning' and 'error' only - the 'danger' and 'alert' callers now say 'error' (both are still understood), and the unused 'errpr' alias is gone. Column headings are sentence case like field labels.
- Menus: 30 menu items carried `text-dark`, which no other menu item has; it's gone.
## [26.11.8]

View File

@@ -215,7 +215,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit
</a>
<a class="dropdown-item" href="post.php?copy_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>" title="<?= $owner_id ? 'A new shared response starting from this one' : 'A new response starting from this one' ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i><?= $owner_id ? 'Copy as shared' : 'Copy' ?>
<i class="far fa-fw fa-copy text-secondary me-2"></i><?= $owner_id ? 'Copy as shared' : 'Copy' ?>
</a>
<a class="dropdown-item" href="post.php?export_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>" title="A file of it, to import into another ITFlow">
<i class="fas fa-fw fa-download text-secondary me-2"></i>Export

View File

@@ -171,7 +171,7 @@ $csrf = $_SESSION['csrf_token'];
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $edit_url ?>"><i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit</a>
<a class="dropdown-item" href="post.php?copy_contract_template=<?= $id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy</a>
<a class="dropdown-item" href="post.php?copy_contract_template=<?= $id ?>&csrf_token=<?= $csrf ?>"><i class="far fa-fw fa-copy text-secondary me-2"></i>Copy</a>
<div class="dropdown-divider"></div>
<?php if ($archived) { ?>
<a class="dropdown-item" href="post.php?restore_contract_template=<?= $id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore</a>

View File

@@ -169,7 +169,7 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php } ?>
<a class="dropdown-item" href="post.php?copy_custom_link=<?= $custom_link_id ?>&csrf_token=<?= $csrf ?>" title="The same link again - to put it in another menu too">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<?php if ($can_reorder) { ?>
<?php if ($position > 0) { ?>

View File

@@ -78,7 +78,7 @@ $action_link = function (array $item, $class) {
<h3 class="card-title mt-1"><i class="fas fa-fw fa-bug me-2"></i>Debug</h3>
<div class="card-tools">
<button type="button" class="btn btn-outline-light clipboardjs" data-clipboard-target="#debugReport" title="Everything here as plain text, for a forum post or a support email - without host names, paths or keys" data-debug-copy>
<i class="fas fa-fw fa-copy"></i><span class="d-none d-md-inline ms-2">Copy for Support</span>
<i class="far fa-fw fa-copy"></i><span class="d-none d-md-inline ms-2">Copy for Support</span>
</button>
<a href="debug.php<?= $exact ? '?exact=1' : '' ?>" class="btn btn-outline-light ms-1" title="Check everything again">
<i class="fas fa-fw fa-redo-alt"></i><span class="d-none d-md-inline ms-2">Check Again</span>

View File

@@ -87,7 +87,7 @@ $required_url = "modals/document_template/document_template_required.php?id=$doc
<button type="button" class="btn btn-primary ajax-modal" data-modal-size="lg" data-modal-url="<?= $use_url ?>"><i class="fas fa-fw fa-plus me-2"></i>New Document for a Client</button>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-label="More ways to make one"></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>"><i class="fas fa-fw fa-copy me-2"></i>For Several Clients</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>"><i class="far fa-fw fa-copy me-2"></i>For Several Clients</a>
<?php if ($coverage && $coverage['missing']) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>&missing=1"><i class="fas fa-fw fa-clipboard-check me-2"></i>For <?= $missing_text ?></a>
<?php } ?>
@@ -98,7 +98,7 @@ $required_url = "modals/document_template/document_template_required.php?id=$doc
<div class="dropdown">
<button class="btn btn-outline-secondary" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item" href="post.php?copy_document_template=<?= $document_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-copy me-2"></i>Copy</a>
<a class="dropdown-item" href="post.php?copy_document_template=<?= $document_template_id ?>&csrf_token=<?= $csrf ?>"><i class="far fa-fw fa-copy me-2"></i>Copy</a>
<a class="dropdown-item" href="post.php?export_document_template=<?= $document_template_id ?>&csrf_token=<?= $csrf ?>" title="A file to import into another ITFlow"><i class="fas fa-fw fa-download me-2"></i>Export</a>
<a class="dropdown-item" href="#" onclick="window.print(); return false;"><i class="fas fa-fw fa-print me-2"></i>Print</a>
<?php if ($archived) { ?>
@@ -165,7 +165,7 @@ $required_url = "modals/document_template/document_template_required.php?id=$doc
<?php if (count($coverage['missing']) > $list_limit) { ?>
<div class="small text-secondary mb-2">and <?= count($coverage['missing']) - $list_limit ?> more</div>
<?php } ?>
<button type="button" class="btn btn-sm btn-outline-primary ajax-modal" data-modal-size="lg" data-modal-url="<?= $several_url ?>&missing=1"><i class="fas fa-copy me-1"></i>Make for <?= $missing_text ?></button>
<button type="button" class="btn btn-sm btn-outline-primary ajax-modal" data-modal-size="lg" data-modal-url="<?= $several_url ?>&missing=1"><i class="far fa-copy me-1"></i>Make for <?= $missing_text ?></button>
<?php } elseif ($coverage['clients']) { ?>
<div class="small text-success"><i class="fas fa-fw fa-check me-1"></i>Every one of them has one.</div>
<?php } else { ?>

View File

@@ -208,14 +208,14 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-plus text-secondary me-2"></i>New Document for a Client
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/document_template/document_template_use_several.php?id=<?= $template_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>For Several Clients
<i class="far fa-fw fa-copy text-secondary me-2"></i>For Several Clients
</a>
<?php } ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/document_template/document_template_required.php?id=<?= $template_id ?>">
<i class="fas fa-fw fa-clipboard-check text-secondary me-2"></i>Who Should Have One
</a>
<a class="dropdown-item" href="post.php?copy_document_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="A new template starting from this one">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<div class="dropdown-divider"></div>
<?php if ($row['document_template_archived_at']) { ?>

View File

@@ -28,7 +28,7 @@ $gs_backup_on = settingsChecked('backup_enabled', true);
<div class="input-group">
<span class="input-group-text"><i class="fas fa-fw fa-lock"></i></span>
<input type="password" class="form-control font-monospace" value="<?= escapeHtml($gs_key) ?>" id="gsBackupKey" aria-label="Backup key" readonly data-gs-secret>
<button type="button" class="btn btn-outline-secondary" data-gs-show="gsBackupKey" title="Show"><i class="far fa-eye"></i></button>
<button type="button" class="btn btn-outline-secondary" data-gs-show="gsBackupKey" title="Show"><i class="fas fa-eye"></i></button>
<button type="button" class="btn btn-outline-secondary clipboardjs" data-clipboard-text="<?= escapeHtml($gs_key) ?>" title="Copy"><i class="far fa-copy"></i></button>
</div>
</div>

View File

@@ -36,7 +36,7 @@ echo settingsPageStart('identity');
<div class="input-group">
<span class="input-group-text"><i class="fas fa-fw fa-link"></i></span>
<input type="text" class="form-control font-monospace" id="settingsRedirectUri" value="<?= escapeHtml($redirect_uri) ?>" readonly data-sso-redirect>
<button type="button" class="btn btn-outline-secondary clipboardjs" data-clipboard-target="#settingsRedirectUri" title="Copy"><i class="fas fa-fw fa-copy"></i></button>
<button type="button" class="btn btn-outline-secondary clipboardjs" data-clipboard-target="#settingsRedirectUri" title="Copy"><i class="far fa-fw fa-copy"></i></button>
</div>
<div class="form-text">Under Authentication in the app registration, as a Web platform.</div>
</div>

View File

@@ -255,7 +255,7 @@ function starterPickHtml($pack, array $items, $form = '', $open = false) {
</label>
<?php if ($previews) { ?>
<button type="button" class="btn btn-link btn-sm text-decoration-none flex-shrink-0 ms-auto py-0" data-starter-preview="<?= escapeHtml($pack) ?>" data-starter-key="<?= escapeHtml($item['key']) ?>"
title="See all of <?= escapeHtml($item['name']) ?>"><i class="far fa-eye me-1"></i>Preview</button>
title="See all of <?= escapeHtml($item['name']) ?>"><i class="fas fa-eye me-1"></i>Preview</button>
<?php } ?>
</div>
<?php } ?>

View File

@@ -17,7 +17,7 @@ ob_start();
if (!$template || $template['document_template_archived_at']) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-copy me-2"></i>New Documents</h5>
<h5 class="modal-title"><i class="far fa-fw fa-copy me-2"></i>New Documents</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That document template is gone or archived.</div>
@@ -34,7 +34,7 @@ if (!$template || $template['document_template_archived_at']) { ?>
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-copy me-2"></i>New documents from <strong><?= escapeHtml($template['document_template_name']) ?></strong></h5>
<h5 class="modal-title text-truncate"><i class="far fa-fw fa-copy me-2"></i>New documents from <strong><?= escapeHtml($template['document_template_name']) ?></strong></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off">

View File

@@ -30,7 +30,7 @@ ob_start();
<div class="modal-body">
<?php if ($copy_of) { ?>
<div class="alert alert-secondary small py-2"><i class="fas fa-fw fa-copy me-1"></i>A new role, starting from <?= escapeHtml($copy_of['role_name']) ?>'s access - its agents keep theirs.</div>
<div class="alert alert-secondary small py-2"><i class="far fa-fw fa-copy me-1"></i>A new role, starting from <?= escapeHtml($copy_of['role_name']) ?>'s access - its agents keep theirs.</div>
<?php } ?>
<?php require __DIR__ . '/role_form.php'; ?>
</div>

View File

@@ -19,7 +19,7 @@ ob_start();
if (!$template || $template['software_template_archived_at']) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-copy me-2"></i>New Licenses</h5>
<h5 class="modal-title"><i class="far fa-fw fa-copy me-2"></i>New Licenses</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That license template is gone or archived.</div>
@@ -44,7 +44,7 @@ if (!$template || $template['software_template_archived_at']) { ?>
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-copy me-2"></i>New licenses from <strong><?= escapeHtml($template['software_template_name']) ?></strong></h5>
<h5 class="modal-title text-truncate"><i class="far fa-fw fa-copy me-2"></i>New licenses from <strong><?= escapeHtml($template['software_template_name']) ?></strong></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off">

View File

@@ -80,7 +80,7 @@ $archived = !empty($template['project_template_archived_at']);
<button class="btn btn-outline-secondary" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item" href="post.php?duplicate_project_template=<?= $project_template_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Duplicate
<i class="far fa-fw fa-copy text-secondary me-2"></i>Duplicate
</a>
<div class="dropdown-divider"></div>
<?php if ($archived) { ?>

View File

@@ -111,7 +111,7 @@ $counts = mysqli_fetch_row(mysqli_query($mysqli, "SELECT COALESCE(SUM(project_te
<i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit
</a>
<a class="dropdown-item" href="post.php?duplicate_project_template=<?= $project_template_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Duplicate
<i class="far fa-fw fa-copy text-secondary me-2"></i>Duplicate
</a>
<div class="dropdown-divider"></div>
<?php if ($row['project_template_archived_at']) { ?>

View File

@@ -151,7 +151,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/role/role_add.php?copy=<?= $role_id ?>" title="A new role starting from this one">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<?php if ($agent_count) { ?>
<a class="dropdown-item" href="users.php?role=<?= $role_id ?>">

View File

@@ -314,7 +314,7 @@ if (!$config_module_enable_ticketing) {
<div class="input-group">
<span class="input-group-text"><i class="fas fa-fw fa-link"></i></span>
<input type="text" class="form-control font-monospace" id="mailOauthRedirect" value="<?= escapeHtml($mail_oauth_callback_uri) ?>" readonly>
<button type="button" class="btn btn-outline-secondary clipboardjs" data-clipboard-target="#mailOauthRedirect" title="Copy"><i class="fas fa-fw fa-copy"></i></button>
<button type="button" class="btn btn-outline-secondary clipboardjs" data-clipboard-target="#mailOauthRedirect" title="Copy"><i class="far fa-fw fa-copy"></i></button>
</div>
<div class="form-text">Under Authentication in the app registration, as a Web platform.</div>
<button type="submit" name="oauth_connect_microsoft_mail" class="btn btn-outline-primary mt-3">

View File

@@ -121,7 +121,7 @@ $facts = array_filter([
<button type="button" class="btn btn-primary ajax-modal" data-modal-size="lg" data-modal-url="<?= $use_url ?>"><i class="fas fa-fw fa-plus me-2"></i>New License for a Client</button>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-label="More ways to make one"></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>"><i class="fas fa-fw fa-copy me-2"></i>For Several Clients</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>"><i class="far fa-fw fa-copy me-2"></i>For Several Clients</a>
<?php if ($coverage && $coverage['missing']) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>&missing=1"><i class="fas fa-fw fa-clipboard-check me-2"></i>For <?= $missing_text ?></a>
<?php } ?>
@@ -133,7 +133,7 @@ $facts = array_filter([
<button class="btn btn-outline-secondary" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $required_url ?>"><i class="fas fa-fw fa-clipboard-check me-2"></i>Who Should Have It</a>
<a class="dropdown-item" href="post.php?copy_software_template=<?= $software_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-copy me-2"></i>Copy</a>
<a class="dropdown-item" href="post.php?copy_software_template=<?= $software_template_id ?>&csrf_token=<?= $csrf ?>"><i class="far fa-fw fa-copy me-2"></i>Copy</a>
<a class="dropdown-item" href="post.php?export_software_template=<?= $software_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-download me-2"></i>Export</a>
<?php if ($archived) { ?>
<a class="dropdown-item" href="post.php?restore_software_template=<?= $software_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-redo me-2"></i>Restore</a>
@@ -338,7 +338,7 @@ $facts = array_filter([
<?php if (count($coverage['missing']) > $list_limit) { ?>
<div class="small text-secondary mb-2">and <?= count($coverage['missing']) - $list_limit ?> more</div>
<?php } ?>
<button type="button" class="btn btn-sm btn-outline-primary ajax-modal" data-modal-size="lg" data-modal-url="<?= $several_url ?>&missing=1"><i class="fas fa-copy me-1"></i>Make for <?= $missing_text ?></button>
<button type="button" class="btn btn-sm btn-outline-primary ajax-modal" data-modal-size="lg" data-modal-url="<?= $several_url ?>&missing=1"><i class="far fa-copy me-1"></i>Make for <?= $missing_text ?></button>
<?php } elseif ($coverage['clients']) { ?>
<div class="small text-success"><i class="fas fa-fw fa-check me-1"></i>Every one of them has it.</div>
<?php } else { ?>

View File

@@ -237,14 +237,14 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-plus text-secondary me-2"></i>New License for a Client
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/software_template/software_template_use_several.php?id=<?= $template_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>For Several Clients
<i class="far fa-fw fa-copy text-secondary me-2"></i>For Several Clients
</a>
<?php } ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/software_template/software_template_required.php?id=<?= $template_id ?>">
<i class="fas fa-fw fa-clipboard-check text-secondary me-2"></i>Who Should Have It
</a>
<a class="dropdown-item" href="post.php?copy_software_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="A new template starting from this one">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<a class="dropdown-item" href="post.php?export_software_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="A file to import into another ITFlow">
<i class="fas fa-fw fa-download text-secondary me-2"></i>Export

View File

@@ -130,7 +130,7 @@ $edit_url = "modals/ticket_template/ticket_template_edit.php?id=$ticket_template
<div class="dropdown">
<button class="btn btn-outline-secondary" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item" href="post.php?copy_ticket_template=<?= $ticket_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-copy me-2"></i>Copy</a>
<a class="dropdown-item" href="post.php?copy_ticket_template=<?= $ticket_template_id ?>&csrf_token=<?= $csrf ?>"><i class="far fa-fw fa-copy me-2"></i>Copy</a>
<a class="dropdown-item" href="post.php?export_ticket_template=<?= $ticket_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-download me-2"></i>Export</a>
<?php if ($archived) { ?>
<a class="dropdown-item" href="post.php?restore_ticket_template=<?= $ticket_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-redo me-2"></i>Restore</a>

View File

@@ -212,7 +212,7 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php } ?>
<a class="dropdown-item" href="post.php?copy_ticket_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="A new template starting from this one">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<div class="dropdown-divider"></div>
<?php if ($row['ticket_template_archived_at']) { ?>

View File

@@ -159,7 +159,7 @@ foreach (vendorTemplateFieldLabels() as $field) {
<button class="btn btn-outline-secondary" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $required_url ?>"><i class="fas fa-fw fa-clipboard-check me-2"></i>Who Should Have It</a>
<a class="dropdown-item" href="post.php?copy_vendor_template=<?= $vendor_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-copy me-2"></i>Copy</a>
<a class="dropdown-item" href="post.php?copy_vendor_template=<?= $vendor_template_id ?>&csrf_token=<?= $csrf ?>"><i class="far fa-fw fa-copy me-2"></i>Copy</a>
<a class="dropdown-item" href="post.php?export_vendor_template=<?= $vendor_template_id ?>&csrf_token=<?= $csrf ?>" title="A file to import into another ITFlow - without account numbers or PINs"><i class="fas fa-fw fa-download me-2"></i>Export</a>
<a class="dropdown-item" href="/agent/reports/vendor_templates.php" title="Reports > Vendor Templates"><i class="fas fa-fw fa-chart-bar me-2"></i>How they are used</a>
<?php if ($archived) { ?>

View File

@@ -276,7 +276,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-clipboard-check text-secondary me-2"></i>Who Should Have It
</a>
<a class="dropdown-item" href="post.php?copy_vendor_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="A new template starting from this one">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<a class="dropdown-item" href="post.php?export_vendor_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="A file to import into another ITFlow - without account numbers or PINs">
<i class="fas fa-fw fa-download text-secondary me-2"></i>Export

View File

@@ -2282,9 +2282,9 @@ if (isset($_GET['asset_duplicate_check'])) {
if ($row) {
$what = $field === 'mac' ? 'This MAC address' : 'This serial number';
$message = hasClientAccess($row['asset_client_id'])
? "<i class='fas fa-fw fa-copy me-2'></i>$what is already on <a href='asset.php?client_id=" . intval($row['asset_client_id']) . "&asset_id=" . intval($row['asset_id']) . "' target='_blank'>" . escapeHtml($row['asset_name']) . "</a>"
? "<i class='far fa-fw fa-copy me-2'></i>$what is already on <a href='asset.php?client_id=" . intval($row['asset_client_id']) . "&asset_id=" . intval($row['asset_id']) . "' target='_blank'>" . escapeHtml($row['asset_name']) . "</a>"
. " at " . escapeHtml($row['client_name']) . ($row['asset_archived_at'] ? ' (archived)' : '')
: "<i class='fas fa-fw fa-copy me-2'></i>$what is already on an asset of a client you cannot open.";
: "<i class='far fa-fw fa-copy me-2'></i>$what is already on an asset of a client you cannot open.";
}
}
@@ -2312,8 +2312,8 @@ if (isset($_GET['client_duplicate_check'])) {
while ($row = mysqli_fetch_assoc($sql_clients)) {
// Named only to an agent who can open it - otherwise typing names would list the clients they can't see
$response['message'] = hasClientAccess($row['client_id'])
? "<i class='fas fa-fw fa-copy me-2'></i> Potential duplicate: <i>" . escapeHtml($row['client_name']) . "</i> already exists."
: "<i class='fas fa-fw fa-copy me-2'></i> Potential duplicate: a client you cannot open has a name like this.";
? "<i class='far fa-fw fa-copy me-2'></i> Potential duplicate: <i>" . escapeHtml($row['client_name']) . "</i> already exists."
: "<i class='far fa-fw fa-copy me-2'></i> Potential duplicate: a client you cannot open has a name like this.";
}
}
}
@@ -2533,9 +2533,9 @@ if (isset($_GET['contact_email_check'])) {
WHERE contact_email = '$email' AND contact_id != $exclude_contact ORDER BY contact_archived_at IS NOT NULL, contact_id DESC LIMIT 1");
if ($row = mysqli_fetch_assoc($sql_contacts)) {
$response['message'] = hasClientAccess($row['contact_client_id'])
? "<i class='fas fa-fw fa-copy me-2'></i>Already on file: <a href='contact.php?client_id=" . intval($row['contact_client_id']) . "&contact_id=" . intval($row['contact_id']) . "' target='_blank'>" . escapeHtml($row['contact_name']) . "</a>"
? "<i class='far fa-fw fa-copy me-2'></i>Already on file: <a href='contact.php?client_id=" . intval($row['contact_client_id']) . "&contact_id=" . intval($row['contact_id']) . "' target='_blank'>" . escapeHtml($row['contact_name']) . "</a>"
. " at " . escapeHtml($row['client_name']) . ($row['contact_archived_at'] ? ' (archived)' : '')
: "<i class='fas fa-fw fa-copy me-2'></i>Already on file for a client you cannot open.";
: "<i class='far fa-fw fa-copy me-2'></i>Already on file for a client you cannot open.";
}
// 2. MX record check - said as well as the duplicate, not instead of it

View File

@@ -380,7 +380,7 @@ if (mysqli_num_rows($sql) == 0) {
</button>
<div class="dropdown-menu">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/asset/asset_copy.php?id=<?= $asset_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<div class="dropdown-divider"></div>
<?php if ($asset_archived_at) { ?>

View File

@@ -232,7 +232,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown"></button>
<div class="dropdown-menu">
<?php if ($client_url) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=assets">
<i class="fas fa-fw fa-upload me-2"></i>Import
</a>
@@ -241,7 +241,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
<?php if ($client_url) { ?>
<div class="dropdown-divider"></div>
<?php } ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-url="<?= buildExportModalUrl('modals/asset/asset_export.php', ['client_id', 'type', 'client', 'location', 'status', 'tags', 'expire_days', 'archived', 'q']) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>
@@ -741,7 +741,7 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
</a>
<?= tagMenuItem('asset', $asset_id) ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/asset/asset_copy.php?id=<?= $asset_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<div class="dropdown-divider"></div>
<?php if ($asset_archived_at) { ?>

View File

@@ -144,12 +144,12 @@ $export_extra = [
<button type="button" class="btn btn-primary dropdown-toggle <?= $can_edit ? 'dropdown-toggle-split' : '' ?>" data-bs-toggle="dropdown"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($can_edit && $client_url) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=certificates">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=certificates">
<i class="fas fa-fw fa-upload me-2"></i>Import
</a>
<?php } ?>
<?php if ($num_rows[0] > 0) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-url="<?= buildExportModalUrl('modals/certificate/certificate_export.php', ['client_id', 'client', 'expire_days', 'archived', 'q'], $export_extra) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>

View File

@@ -342,8 +342,8 @@ $total_leads = intval($row['leads']);
<div class="card-header bg-dark py-2">
<h3 class="card-title mt-2"><i class="fas fa-fw fa-user-friends me-2"></i>Clients
<small class="ms-3">
<a href="<?= clientsFilterUrl(['leads' => null, 'industry' => null, 'referral' => null]) ?>" class="badge rounded-pill p-1 <?= $leads_filter ? 'text-light' : 'bg-light text-dark' ?>"><strong><?= $total_clients ?></strong> Client<?= $total_clients === 1 ? '' : 's' ?></a> |
<a href="<?= clientsFilterUrl(['leads' => 1, 'industry' => null, 'referral' => null]) ?>" class="badge rounded-pill p-1 <?= $leads_filter ? 'bg-light text-dark' : 'text-light' ?>"><strong><?= $total_leads ?></strong> Lead<?= $total_leads === 1 ? '' : 's' ?></a>
<a href="<?= clientsFilterUrl(['leads' => null, 'industry' => null, 'referral' => null]) ?>" class="badge rounded-pill p-1 <?= $leads_filter ? 'text-light' : 'text-bg-light' ?>"><strong><?= $total_clients ?></strong> Client<?= $total_clients === 1 ? '' : 's' ?></a> |
<a href="<?= clientsFilterUrl(['leads' => 1, 'industry' => null, 'referral' => null]) ?>" class="badge rounded-pill p-1 <?= $leads_filter ? 'text-bg-light' : 'text-light' ?>"><strong><?= $total_leads ?></strong> Lead<?= $total_leads === 1 ? '' : 's' ?></a>
</small>
</h3>
<?php if ($can_edit) { ?>

View File

@@ -240,19 +240,19 @@ $search_title = $invites_view ? 'Email, name or client' : 'Name, title, email, p
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown"></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($client_url && $invites_on) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-url="modals/contact/contact_invite.php?<?= $client_url ?>">
<i class="fas fa-fw fa-user-plus me-2"></i>Invite to the Portal
</a>
<?php } ?>
<?php if ($client_url) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=contacts">
<i class="fas fa-fw fa-upload me-2"></i>Import
</a>
<div class="dropdown-divider"></div>
<?php } ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-url="<?= buildExportModalUrl('modals/contact/contact_export.php', ['client_id', 'client', 'location', 'tags', 'archived', 'q']) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>

View File

@@ -152,7 +152,7 @@ if (!$contract || ($client_url && intval($contract['contract_client_id']) !== in
<?php if ($can_hours && !$show_hours) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/contract/contract_hours_add.php?id=<?= $contract_id ?>"><i class="fas fa-fw fa-hourglass-half text-secondary me-2"></i>Add Prepaid Hours</a>
<?php } ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/contract/contract_add.php?client_id=<?= $client_id ?>&copy=<?= $contract_id ?>"><i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/contract/contract_add.php?client_id=<?= $client_id ?>&copy=<?= $contract_id ?>"><i class="far fa-fw fa-copy text-secondary me-2"></i>Copy</a>
<?php if ($status === 'Active') { ?>
<a class="dropdown-item text-danger ajax-modal" href="#" data-modal-url="modals/contract/contract_cancel.php?id=<?= $contract_id ?>"><i class="fas fa-fw fa-ban me-2"></i>Cancel</a>
<?php } ?>

View File

@@ -167,23 +167,23 @@ $filter_url = function ($changes) use ($client_url) {
<button type="button" class="btn btn-primary dropdown-toggle <?= $can_edit ? 'dropdown-toggle-split' : '' ?>" data-bs-toggle="dropdown"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($can_request) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-url="modals/share/share_add.php?type=Request&amp;client_id=<?= intval($client_id) ?>">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/share/share_add.php?type=Request&amp;client_id=<?= intval($client_id) ?>">
<i class="fas fa-fw fa-inbox me-2"></i>Ask the Client for a Login
</a>
<?php } ?>
<?php if ($client_url && $can_edit) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=credentials">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=credentials">
<i class="fas fa-fw fa-upload me-2"></i>Import
</a>
<?php } ?>
<?php if ($num_rows[0] > 0) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-url="<?= buildExportModalUrl('modals/credential/credential_export.php', ['client_id', 'client', 'tags', 'archived', 'q']) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>
<?php } ?>
<?php if (reportCanOpen('credential_rotation')) { ?>
<a class="dropdown-item text-dark" href="reports/credential_rotation.php<?= $client_url ? '?client_id=' . intval($client_id) : '' ?>">
<a class="dropdown-item" href="reports/credential_rotation.php<?= $client_url ? '?client_id=' . intval($client_id) : '' ?>">
<i class="fas fa-fw fa-history me-2"></i>Rotation Report
</a>
<?php } ?>

View File

@@ -133,7 +133,7 @@ $page_title = $row['document_name'];
<?php if (!$document_archived) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/document/document_rename.php?id=<?= $document_id ?>"><i class="fas fa-fw fa-pen me-2"></i>Rename</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/document/document_move.php?id=<?= $document_id ?>"><i class="fas fa-fw fa-folder-open me-2"></i>Move</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/document/document_copy.php?id=<?= $document_id ?>" title="For this client or another"><i class="fas fa-fw fa-copy me-2"></i>Copy</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/document/document_copy.php?id=<?= $document_id ?>" title="For this client or another"><i class="far fa-fw fa-copy me-2"></i>Copy</a>
<?= linkPickerButton('document', $document_id, '', 'Link', 'dropdown-item', 'fas fa-fw fa-link me-2') ?>
<a class="dropdown-item" href="post.php?toggle_document_favorite=<?= $document_id ?>&csrf_token=<?= $csrf ?>" title="Favorites show on the client's overview"><i class="<?= intval($row['document_favorite']) ? 'far' : 'fas' ?> fa-fw fa-star me-2"></i><?= intval($row['document_favorite']) ? 'Unfavorite' : 'Favorite' ?></a>
<?php if ($config_client_portal_enable) { ?>

View File

@@ -149,12 +149,12 @@ $bulk_vendor_options = $can_edit ? domainVendorChoices($client_url ? $client_id
<button type="button" class="btn btn-primary dropdown-toggle <?= $can_edit ? 'dropdown-toggle-split' : '' ?>" data-bs-toggle="dropdown"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($can_edit && $client_url) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=domains">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=domains">
<i class="fas fa-fw fa-upload me-2"></i>Import
</a>
<?php } ?>
<?php if ($num_rows[0] > 0) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-url="<?= buildExportModalUrl('modals/domain/domain_export.php', ['client_id', 'client', 'expire_days', 'archived', 'q', 'tags', 'vendor']) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>

View File

@@ -419,7 +419,7 @@ $month_change = $stats['last_to_date'] > 0 ? round(($stats['month'] - $stats['la
<?php if ($can_edit) { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/expense/expense_edit.php?id=<?= $expense_id ?>"><i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/expense/expense_copy.php?id=<?= $expense_id ?>"><i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/expense/expense_copy.php?id=<?= $expense_id ?>"><i class="far fa-fw fa-copy text-secondary me-2"></i>Copy</a>
<?php if ($row_amount > 0) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/expense/expense_refund.php?id=<?= $expense_id ?>"><i class="fas fa-fw fa-undo-alt text-secondary me-2"></i>Refund</a>
<?php } ?>

View File

@@ -258,7 +258,7 @@ function filesItemMenu($item) {
$html .= "<a class=\"dropdown-item\" href=\"document_edit.php?client_id=$client_id&amp;document_id=$id\"><i class=\"fas fa-fw fa-edit me-2\"></i>Edit</a>";
$html .= tagMenuItem('document', $id, '');
$html .= "<a class=\"dropdown-item ajax-modal\" href=\"#\" data-modal-url=\"modals/document/document_rename.php?id=$id\"><i class=\"fas fa-fw fa-pen me-2\"></i>Rename</a>";
$html .= "<a class=\"dropdown-item ajax-modal\" href=\"#\" data-modal-url=\"modals/document/document_copy.php?id=$id\"><i class=\"fas fa-fw fa-copy me-2\"></i>Copy</a>";
$html .= "<a class=\"dropdown-item ajax-modal\" href=\"#\" data-modal-url=\"modals/document/document_copy.php?id=$id\"><i class=\"far fa-fw fa-copy me-2\"></i>Copy</a>";
$favorite = !empty($item['row']['document_favorite']);
$html .= "<a class=\"dropdown-item\" href=\"post.php?toggle_document_favorite=$id&amp;csrf_token=$csrf\" title=\"Favorites show on the client's overview\"><i class=\"" . ($favorite ? 'far' : 'fas') . " fa-fw fa-star me-2\"></i>" . ($favorite ? 'Unfavorite' : 'Favorite') . "</a>";
$html .= "<a class=\"dropdown-item ajax-modal\" href=\"#\" data-modal-url=\"modals/document/document_move.php?id=$id\"><i class=\"fas fa-fw fa-folder-open me-2\"></i>Move</a>";

View File

@@ -388,7 +388,7 @@ $invoices_url = 'invoices.php?' . ($client_page ? "client_id=$client_id&" : '')
<?php if ($can_edit) { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/revenue/revenue_edit.php?id=<?= $income_id ?>"><i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/revenue/revenue_copy.php?id=<?= $income_id ?>"><i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/revenue/revenue_copy.php?id=<?= $income_id ?>"><i class="far fa-fw fa-copy text-secondary me-2"></i>Copy</a>
<?php } ?>
<?php if ($can_delete) { ?>
<div class="dropdown-divider"></div>

View File

@@ -256,7 +256,7 @@ echo agentBannersHtml($client_id);
<?php } ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/invoice/invoice_copy.php?id=<?= $invoice_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/invoice/invoice_recurring_add.php?invoice_id=<?= $invoice_id ?>">
<i class="fas fa-fw fa-redo-alt text-secondary me-2"></i>Make Recurring

View File

@@ -453,7 +453,7 @@ $stat_money = function ($amount) use ($session_company_currency) {
<i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/invoice/invoice_copy.php?id=<?= $invoice_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<?php } ?>
<?php if ($can_delete) { ?>

View File

@@ -129,7 +129,7 @@ $page_title = $row['kb_article_title'];
<?php if ($review) { ?>
<a class="dropdown-item" href="post.php?mark_kb_article_reviewed=<?= $kb_article_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-calendar-check me-2"></i>Mark Reviewed</a>
<?php } ?>
<a class="dropdown-item" href="post.php?copy_kb_article=<?= $kb_article_id ?>&csrf_token=<?= $csrf ?>" title="A new draft starting from this one"><i class="fas fa-fw fa-copy me-2"></i>Copy</a>
<a class="dropdown-item" href="post.php?copy_kb_article=<?= $kb_article_id ?>&csrf_token=<?= $csrf ?>" title="A new draft starting from this one"><i class="far fa-fw fa-copy me-2"></i>Copy</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger" href="post.php?archive_kb_article=<?= $kb_article_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-archive me-2"></i>Archive</a>
<?php } else { ?>

View File

@@ -116,14 +116,14 @@ $locations_counts = locationCounts(array_keys($locations));
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown"></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($client_url) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=locations">
<i class="fas fa-fw fa-upload me-2"></i>Import
</a>
<?php } ?>
<?php if ($num_rows[0] > 0) { ?>
<?php if ($client_url) { ?><div class="dropdown-divider"></div><?php } ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-url="<?= buildExportModalUrl('modals/location/location_export.php', ['client_id', 'client', 'tags', 'archived', 'q']) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>

View File

@@ -61,7 +61,7 @@ ob_start();
<i class="fas fa-fw fa-file-alt me-2"></i>Save as a Document
</button>
<?php } ?>
<button type="button" class="btn btn-light border" data-ai-briefing-copy disabled><i class="fas fa-fw fa-copy me-2"></i>Copy</button>
<button type="button" class="btn btn-light border" data-ai-briefing-copy disabled><i class="far fa-fw fa-copy me-2"></i>Copy</button>
<button type="button" class="btn btn-light border" data-ai-briefing-again disabled><i class="fas fa-fw fa-redo me-2"></i>Again</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Close</button>
</div>

View File

@@ -89,7 +89,7 @@ ob_start();
<div class="d-flex flex-wrap align-items-center gap-2 mt-3 small text-body-secondary">
<?= credentialAgePill($age) ?>
<?php if ($last_viewed) { ?>
<span title="<?= formatDateTime($last_viewed['log_created_at']) ?>"><i class="far fa-eye me-1"></i>Last looked at by <?= escapeHtml($last_viewed['user_name'] ?: 'someone') ?>, <?= timeAgo($last_viewed['log_created_at']) ?></span>
<span title="<?= formatDateTime($last_viewed['log_created_at']) ?>"><i class="fas fa-eye me-1"></i>Last looked at by <?= escapeHtml($last_viewed['user_name'] ?: 'someone') ?>, <?= timeAgo($last_viewed['log_created_at']) ?></span>
<?php } ?>
<?php if ($tags) { ?><span><?= tagPills('credential', $credential_id, $tags, "credentials.php?client_id=$client_id&", false) ?></span><?php } ?>
</div>

View File

@@ -25,7 +25,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-copy me-2"></i>Copy <strong><?= escapeHtml($row['document_name']) ?></strong></h5>
<h5 class="modal-title text-truncate"><i class="far fa-fw fa-copy me-2"></i>Copy <strong><?= escapeHtml($row['document_name']) ?></strong></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off" data-document-copy="<?= $client_id ?>">
@@ -75,7 +75,7 @@ ob_start();
</div>
<div class="modal-footer">
<button type="submit" name="copy_document" class="btn btn-primary fw-bold"><i class="fas fa-copy me-2"></i>Copy</button>
<button type="submit" name="copy_document" class="btn btn-primary fw-bold"><i class="far fa-copy me-2"></i>Copy</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
</div>
</form>

View File

@@ -274,7 +274,7 @@ ob_start();
<?php if ($can_edit && !$is_transfer) { ?>
<button type="button" class="btn btn-primary fw-bold ajax-modal" data-modal-size="lg" data-modal-url="modals/expense/expense_edit.php?id=<?= $expense_id ?>"><i class="fas fa-edit me-2"></i>Edit</button>
<div class="btn-group">
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="lg" data-modal-url="modals/expense/expense_copy.php?id=<?= $expense_id ?>"><i class="fas fa-copy me-2"></i>Copy</button>
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="lg" data-modal-url="modals/expense/expense_copy.php?id=<?= $expense_id ?>"><i class="far fa-copy me-2"></i>Copy</button>
<?php if ($amount > 0) { ?>
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="lg" data-modal-url="modals/expense/expense_refund.php?id=<?= $expense_id ?>"><i class="fas fa-undo-alt me-2"></i>Refund</button>
<?php } ?>

View File

@@ -20,7 +20,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-copy me-2"></i>Copy Expense <span class="fw-normal text-white-50 ms-1"><?= escapeHtml(expenseLabel($form_row)) ?></span></h5>
<h5 class="modal-title text-truncate"><i class="far fa-fw fa-copy me-2"></i>Copy Expense <span class="fw-normal text-white-50 ms-1"><?= escapeHtml(expenseLabel($form_row)) ?></span></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" enctype="multipart/form-data" autocomplete="off">

View File

@@ -28,7 +28,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-copy me-2"></i>Copy Invoice <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($doc_number) ?> &middot; <?= escapeHtml($doc['client_name']) ?></span></h5>
<h5 class="modal-title"><i class="far fa-fw fa-copy me-2"></i>Copy Invoice <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($doc_number) ?> &middot; <?= escapeHtml($doc['client_name']) ?></span></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off">
@@ -45,7 +45,7 @@ ob_start();
<div class="form-text"><?= $terms ? "Due $terms days after it" : 'Due on receipt' ?> - <?= escapeHtml($terms_from) ?> terms.</div>
</div>
<div class="modal-footer">
<button type="submit" name="add_invoice_copy" class="btn btn-primary fw-bold"><i class="fas fa-copy me-2"></i>Copy</button>
<button type="submit" name="add_invoice_copy" class="btn btn-primary fw-bold"><i class="far fa-copy me-2"></i>Copy</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
</div>
</form>

View File

@@ -30,7 +30,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-copy me-2"></i>Copy Quote <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($doc_number) ?> &middot; <?= escapeHtml($doc['client_name']) ?></span></h5>
<h5 class="modal-title"><i class="far fa-fw fa-copy me-2"></i>Copy Quote <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($doc_number) ?> &middot; <?= escapeHtml($doc['client_name']) ?></span></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off">
@@ -68,7 +68,7 @@ ob_start();
</div>
</div>
<div class="modal-footer">
<button type="submit" name="add_quote_copy" class="btn btn-primary fw-bold"><i class="fas fa-copy me-2"></i>Copy</button>
<button type="submit" name="add_quote_copy" class="btn btn-primary fw-bold"><i class="far fa-copy me-2"></i>Copy</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
</div>
</form>

View File

@@ -36,7 +36,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-copy me-2"></i>Copy to Another Client <span class="fw-normal text-white-50 ms-1"><?= escapeHtml(billingNumber('recurring', $doc)) ?> &middot; <?= escapeHtml($doc['client_name']) ?></span></h5>
<h5 class="modal-title"><i class="far fa-fw fa-copy me-2"></i>Copy to Another Client <span class="fw-normal text-white-50 ms-1"><?= escapeHtml(billingNumber('recurring', $doc)) ?> &middot; <?= escapeHtml($doc['client_name']) ?></span></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off">
@@ -70,7 +70,7 @@ ob_start();
<div class="form-text">The day its first invoice is made - the runs after follow on from it.</div>
</div>
<div class="modal-footer">
<button type="submit" name="copy_recurring_invoice" class="btn btn-primary fw-bold"><i class="fas fa-copy me-2"></i>Copy</button>
<button type="submit" name="copy_recurring_invoice" class="btn btn-primary fw-bold"><i class="far fa-copy me-2"></i>Copy</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
</div>
</form>

View File

@@ -122,7 +122,7 @@ ob_start();
<div class="modal-footer">
<?php if ($can_edit) { ?>
<button type="button" class="btn btn-primary fw-bold ajax-modal" data-modal-size="lg" data-modal-url="modals/revenue/revenue_edit.php?id=<?= $revenue_id ?>"><i class="fas fa-edit me-2"></i>Edit</button>
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="lg" data-modal-url="modals/revenue/revenue_copy.php?id=<?= $revenue_id ?>"><i class="fas fa-copy me-2"></i>Copy</button>
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="lg" data-modal-url="modals/revenue/revenue_copy.php?id=<?= $revenue_id ?>"><i class="far fa-copy me-2"></i>Copy</button>
<?php } ?>
<?php if ($can_delete && $cleared) { ?>
<?= reconcileLockedButtonHtml($cleared) ?>

View File

@@ -16,7 +16,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-copy me-2"></i>Copy Income</h5>
<h5 class="modal-title text-truncate"><i class="far fa-fw fa-copy me-2"></i>Copy Income</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off">

View File

@@ -46,7 +46,7 @@ ob_start();
<i class="fas fa-fw fa-sticky-note me-2"></i>Save as a Note
</button>
<?php } ?>
<button type="button" class="btn btn-light border" data-ai-summary-copy disabled><i class="fas fa-fw fa-copy me-2"></i>Copy</button>
<button type="button" class="btn btn-light border" data-ai-summary-copy disabled><i class="far fa-fw fa-copy me-2"></i>Copy</button>
<button type="button" class="btn btn-light border" data-ai-summary-again disabled><i class="fas fa-fw fa-redo me-2"></i>Again</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Close</button>
</div>

View File

@@ -187,7 +187,7 @@ ob_start();
<?php } ?>
<div class="btn-group">
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="lg" data-modal-url="modals/trip/trip_copy.php?id=<?= $trip_id ?>&amp;return=1"><i class="fas fa-undo-alt me-2"></i>Return Trip</button>
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="lg" data-modal-url="modals/trip/trip_copy.php?id=<?= $trip_id ?>"><i class="fas fa-copy me-2"></i>Copy</button>
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="lg" data-modal-url="modals/trip/trip_copy.php?id=<?= $trip_id ?>"><i class="far fa-copy me-2"></i>Copy</button>
</div>
<?php if ($can_delete) { ?>
<a class="btn btn-outline-danger confirm-link" href="post.php?delete_trip=<?= $trip_id ?>&amp;csrf_token=<?= $_SESSION['csrf_token'] ?>"

View File

@@ -345,7 +345,7 @@ if (!$network || ($client_url && intval($network['network_client_id']) !== intva
<?php if ($can_edit) { ?>
<div class="dropdown ms-auto" id="bulkActionButton" hidden>
<button class="btn btn-sm btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown">
<i class="fas fa-fw fa-layer-group me-1"></i>Selected (<span id="selectedCount">0</span>)
<i class="fas fa-fw fa-layer-group me-1"></i>Bulk Action (<span id="selectedCount">0</span>)
</button>
<div class="dropdown-menu dropdown-menu-end">
<h6 class="dropdown-header">Make them</h6>

View File

@@ -162,12 +162,12 @@ $csrf = $_SESSION['csrf_token'];
<button type="button" class="btn btn-primary dropdown-toggle <?= $can_edit ? 'dropdown-toggle-split' : '' ?>" data-bs-toggle="dropdown"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($num_rows[0] > 0) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-url="<?= buildExportModalUrl('modals/network/network_export.php', ['client_id', 'client', 'location', 'type', 'tags', 'q'], ['archived' => $show === 'archived' ? 1 : null]) ?>">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= buildExportModalUrl('modals/network/network_export.php', ['client_id', 'client', 'location', 'type', 'tags', 'q'], ['archived' => $show === 'archived' ? 1 : null]) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>
<?php } ?>
<?php if ($can_edit && $client_url) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=networks">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=networks">
<i class="fas fa-fw fa-upload me-2"></i>Import
</a>
<?php } ?>

View File

@@ -157,7 +157,7 @@ if (!$product) {
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="post.php?copy_product=<?= $product_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<div class="dropdown-divider"></div>
<?php if ($archived_at) { ?>

View File

@@ -419,7 +419,7 @@ $add_type = in_array($view, ['product', 'hardware', 'stocked', 'reorder'], true)
</a>
<?php } ?>
<a class="dropdown-item" href="post.php?copy_product=<?= $product_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<div class="dropdown-divider"></div>
<?php if ($row['product_archived_at']) { ?>

View File

@@ -153,7 +153,7 @@ $hidden_filter_count = $date_filter_active ? 1 : 0;
<?php } ?>
<button type="button" class="btn btn-primary dropdown-toggle <?= $can_edit ? 'dropdown-toggle-split' : '' ?>" data-bs-toggle="dropdown"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-url="<?= buildExportModalUrl('modals/project/project_export.php', ['client_id', 'client', 'manager', 'show', 'q']) ?>">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= buildExportModalUrl('modals/project/project_export.php', ['client_id', 'client', 'manager', 'show', 'q']) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>
<?php if ($session_is_admin) { ?>

View File

@@ -201,7 +201,7 @@ echo agentBannersHtml($client_id);
<?php } ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/quote/quote_copy.php?id=<?= $quote_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<?php } ?>
<?php if ($can_delete) { ?>

View File

@@ -301,7 +301,7 @@ $stat_monthly = function ($amount) use ($stat_money) {
<i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/quote/quote_copy.php?id=<?= $quote_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<?php } ?>
<?php if ($can_delete) { ?>

View File

@@ -177,7 +177,7 @@ echo agentBannersHtml($client_id);
</a>
<?php if ($can_edit) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/recurring_invoice/recurring_invoice_copy.php?id=<?= $recurring_invoice_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy to Another Client
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy to Another Client
</a>
<?php } ?>
<?php if ($can_edit && $auto_send) { ?>

View File

@@ -334,7 +334,7 @@ $stat_money = function ($amount) use ($session_company_currency) {
<i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/recurring_invoice/recurring_invoice_copy.php?id=<?= $recurring_invoice_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy to Another Client
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy to Another Client
</a>
<?php } ?>
<?php if ($can_delete) { ?>

View File

@@ -161,7 +161,7 @@ $used_meter = function ($spent, $plan) {
<?php if ($has_prev_budget) { ?>
<button type="submit" name="copy_budget" value="1" class="btn btn-outline-secondary btn-sm confirm-link"
data-confirm-title="Copy <?= $year - 1 ?>'s budget?" data-confirm-text="Every amount in <?= $year ?> is replaced with <?= $year - 1 ?>'s, month for month." data-confirm-button="Copy it">
<i class="fas fa-fw fa-copy me-1"></i>Copy <?= $year - 1 ?>
<i class="far fa-fw fa-copy me-1"></i>Copy <?= $year - 1 ?>
</button>
<?php } ?>
</div>

View File

@@ -138,11 +138,11 @@ $link_icons = ['asset' => ['fa-desktop', 'asset', 'assets'], 'credential' => ['f
<button type="button" class="btn btn-primary dropdown-toggle <?= $can_edit ? 'dropdown-toggle-split' : '' ?>" data-bs-toggle="dropdown"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($can_edit && $client_url) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=services">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=services">
<i class="fas fa-fw fa-upload me-2"></i>Import
</a>
<?php } ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-url="<?= buildExportModalUrl('modals/service/service_export.php', ['client_id', 'client', 'show', 'importance', 'category', 'tags', 'q']) ?>">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= buildExportModalUrl('modals/service/service_export.php', ['client_id', 'client', 'show', 'importance', 'category', 'tags', 'q']) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>
</div>

View File

@@ -118,12 +118,12 @@ $filter_url = function ($changes) {
<button type="button" class="btn btn-primary dropdown-toggle <?= $can_note ? 'dropdown-toggle-split' : '' ?>" data-bs-toggle="dropdown"><?= $can_note ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($can_export) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/share/share_add.php?type=Export&amp;client_id=<?= intval($client_id) ?>">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/share/share_add.php?type=Export&amp;client_id=<?= intval($client_id) ?>">
<i class="fas fa-fw fa-book me-2"></i>Share the IT Documentation
</a>
<?php } ?>
<?php if ($can_request) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-url="modals/share/share_add.php?type=Request&amp;client_id=<?= intval($client_id) ?>">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/share/share_add.php?type=Request&amp;client_id=<?= intval($client_id) ?>">
<i class="fas fa-fw fa-inbox me-2"></i>Ask the Client for a Login
</a>
<?php } ?>

View File

@@ -196,18 +196,18 @@ while ($license_type_row = mysqli_fetch_row($sql_license_types)) {
</button>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown"></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-size="lg"
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg"
data-modal-url="modals/software/software_add_from_template.php?<?= $client_url ?>">
<i class="fas fa-fw fa-puzzle-piece me-2"></i>New from Template
</a>
<?php if ($client_url) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=licenses">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=licenses">
<i class="fas fa-fw fa-upload me-2"></i>Import
</a>
<?php } ?>
<?php if ($num_rows[0] > 0) { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-url="<?= buildExportModalUrl('modals/software/software_export.php', ['client_id', 'client', 'status', 'software_type', 'license_type', 'tags', 'expire_days', 'archived', 'q']) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>

View File

@@ -686,7 +686,7 @@ if (isset($_GET['ticket_id'])) {
<i class="fas fa-fw fa-people-carry me-2"></i>Move to Another Client
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/ticket/ticket_add.php?copy_ticket_id=<?= $ticket_id ?>" data-modal-size="lg">
<i class="fas fa-fw fa-copy me-2"></i>Copy as a New Ticket
<i class="far fa-fw fa-copy me-2"></i>Copy as a New Ticket
</a>
<?php if (!$ticket_is_closed) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/ticket/ticket_apply_template.php?ticket_id=<?= $ticket_id ?>" data-modal-size="lg">

View File

@@ -303,7 +303,7 @@ $export_extra = [
<a class="dropdown-item" href="recurring_tickets.php<?= $client_url ? '?' . rtrim($client_url, '&') : '' ?>">
<i class="fas fa-fw fa-redo-alt me-2"></i>Recurring Tickets
</a>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-url="<?= buildExportModalUrl('modals/ticket/ticket_export.php', ['client_id', 'client', 'status', 'billing', 'category', 'priority', 'assigned', 'sla', 'project', 'tags', 'q'], $export_extra) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>

View File

@@ -396,7 +396,7 @@ $add_url = 'modals/trip/trip_add.php' . ($client_page ? "?client_id=$client_id"
<?php if (tripCanEdit($row)) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/trip/trip_edit.php?id=<?= $trip_id ?>"><i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit</a>
<?php } ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/trip/trip_copy.php?id=<?= $trip_id ?>"><i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/trip/trip_copy.php?id=<?= $trip_id ?>"><i class="far fa-fw fa-copy text-secondary me-2"></i>Copy</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/trip/trip_copy.php?id=<?= $trip_id ?>&amp;return=1"><i class="fas fa-fw fa-undo-alt text-secondary me-2"></i>Return Trip</a>
<?php if ($pay_back && $can_manage && intval($row['trip_own_vehicle']) && !intval($row['trip_expense_id'])) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/trip/trip_claim.php?trip_ids[]=<?= $trip_id ?>"><i class="fas fa-fw fa-hand-holding-usd text-secondary me-2"></i>Pay Mileage</a>

View File

@@ -192,7 +192,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit
</a>
<a class="dropdown-item" href="post.php?copy_your_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>" title="A new one of yours starting from this one">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy
</a>
<?php if ($session_is_admin && !$row['canned_response_archived_at']) { ?>
<a class="dropdown-item confirm-link" href="/admin/post.php?share_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>"
@@ -216,7 +216,7 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php } else { ?>
<a class="dropdown-item" href="post.php?copy_canned_response_to_yours=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>" title="A new one of yours starting from this one, to change as you like">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy to Yours
<i class="far fa-fw fa-copy text-secondary me-2"></i>Copy to Yours
</a>
<?php } ?>
</div>

View File

@@ -137,23 +137,23 @@ $missing_templates = $view === 'client' && !$archived ? vendorTemplatesMissingFo
<button type="button" class="btn btn-primary dropdown-toggle <?= $can_edit ? 'dropdown-toggle-split' : '' ?>" data-bs-toggle="dropdown"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($can_edit && $has_templates) { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $add_url ?>&from_template=1">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $add_url ?>&from_template=1">
<i class="fas fa-fw fa-puzzle-piece me-2"></i>New from Template
</a>
<?php if ($view !== 'ours') { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-url="modals/vendor/vendor_template_clients.php">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/vendor/vendor_template_clients.php">
<i class="fas fa-fw fa-users me-2"></i>Add a Template to Clients
</a>
<?php } ?>
<?php } ?>
<?php if ($can_edit && $view !== 'clients') { ?>
<a class="dropdown-item text-dark ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=vendors">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/import/import.php?<?= $client_url ?>kind=vendors">
<i class="fas fa-fw fa-upload me-2"></i>Import
</a>
<?php } ?>
<?php if ($num_rows[0] > 0) { ?>
<?php if ($can_edit && ($has_templates || $view !== 'clients')) { ?><div class="dropdown-divider"></div><?php } ?>
<a class="dropdown-item text-dark ajax-modal" href="#"
<a class="dropdown-item ajax-modal" href="#"
data-modal-url="<?= buildExportModalUrl('modals/vendor/vendor_export.php', ['client_id', 'view', 'client', 'tags', 'archived', 'q']) ?>">
<i class="fas fa-fw fa-download me-2"></i>Export
</a>

View File

@@ -39,7 +39,7 @@
button.title = shown ? 'Show' : 'Hide';
var icon = button.querySelector('i');
if (icon) {
icon.className = shown ? 'far fa-eye' : 'far fa-eye-slash';
icon.className = shown ? 'fas fa-eye' : 'fas fa-eye-slash';
}
});
}

View File

@@ -207,7 +207,7 @@
root.classList.toggle('is-running', running > 0);
badge.hidden = count === 0;
badge.textContent = count;
badge.className = 'badge rounded-pill navbar-badge ' + (running ? 'bg-warning text-dark' : 'bg-light text-dark');
badge.className = 'badge rounded-pill navbar-badge ' + (running ? 'bg-warning text-dark' : 'text-bg-light');
const title = !count
? 'Timers'
: running