QoL 46: one More menu icon, one icon each for Delete Restore and Export, plain required stars, the incident response window in the standard header, itflowConfirm shared by confirm-link and script with the confirm button taking the link label, the app confirm and toast in place of browser confirm and alert, the timer reset no longer marking a running timer stopped on cancel, and list search boxes reading Search with field hints in the tooltip

This commit is contained in:
johnnyq
2026-11-21 00:43:26 -05:00
parent eb79252ca0
commit efcaedaa87
99 changed files with 203 additions and 165 deletions

View File

@@ -219,6 +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's button says Save - they 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.
### Bug Fixes
@@ -276,6 +277,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
- Dashboard: in Open and assigned to you, the SLA, status and last activity didn't line up from one ticket to the next - each row moved them by the width of its own status or time, and by whether it had an SLA. They now sit in columns down the card.
- Messages: archiving, restoring, deleting, favoriting or setting the category of several contacts, clients, assets or products said contact(s), client(s) and so on, an import of network IPs said IP(s), and the message after restoring clients started "You restored". They now say 1 contact, 3 contacts, with the number in bold, like the rest.
- Contacts: the button in the archive window read Arhive.
- Tickets: cancelling Reset the timer still marked the timer as stopped in that browser, so it showed as stopped after a reload while it was still counting.
### Developer Updates
@@ -439,6 +441,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
- Money: the 51 places that called `numfmt_format_currency($currency_format, ...)` themselves - client and vendor lists and pages, payment and credit messages, the client portal's home, the guest card payment page, and the report, dashboard and search helpers - call `billingMoney($amount, $currency)`, the one formatter. Left as they are: `billingMoney()` itself, `reportMoneyWhole()` (whole amounts), the trip rate (more decimals) and the localization settings' sample.
- Windows: submit buttons say Create on new-record windows and Save on edit windows; Add stays where a window adds existing things to the record it names. Every field `<label>` in `agent/modals`, `admin/modals` and `agent/user/modals` (and `agent/dispatch.php`, `inc_recurring_ticket_ahead.php`, `inc_ticket_tasks_section.php`) has `form-label` - Bootstrap 5 gives a bare label no bottom margin. `fa-file-invoice-dollar` is the invoice icon everywhere, the menus included; `fa-file-invoice` stays for statements. `agent/js/client_delete_confirm.js` toggles `disabled` on the Delete link.
- Code: `intval()` and `floatval()` in place of `(int)` and `(float)` casts, and `(string)` in place of `strval()`, as the rest of the code has them. `redirect()` in place of a raw `Location` header wherever `functions.php` is loaded - the sign-in check, the client portal's sign-up, join, reset and Microsoft 365 sign-in, the guest Knowledge Base and card payment pages and the tax package report. `redirect()`'s fallback for when output has already started writes the URL with `json_encode()` (tags, quotes and ampersands escaped) and `escapeHtml()` rather than `addslashes()` and a bare `htmlspecialchars()`. `escapeHtml()` replaces the last `htmlspecialchars()` on a page, and the plain-HTTP cookie notice goes through `flashAlert()` as a warning. Raw `mysqli_real_escape_string()` stays where HTML is stored (ticket details, replies, documents, signatures), since `escapeSql()` strips tags.
- Confirms: `itflowConfirm({title, text, button, icon, danger})` in `js/confirm_modal.js` asks the SweetAlert question from script and resolves true when confirmed; `confirm-link` goes through it, and with no `data-confirm-button` takes the link's own text (three words or fewer) for the button. `fa-ellipsis-v`, `fa-trash`, `fa-redo` and `fa-download` are the icons for More, Delete, Restore and Export - `fa-redo-alt` stays for recurring and `fa-undo` for restoring a backup or a version.
## [26.11.8]

View File

@@ -139,7 +139,7 @@ $ms_text = function ($ms) {
<div class="row g-2 align-items-center">
<div class="col-lg-4 col-md-12">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search AI usage" title="Model, provider, feature, who, client or what went wrong">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search AI usage..." title="Model, provider, feature, who, client or what went wrong">
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>
</div>

View File

@@ -98,7 +98,7 @@ $filters_url = function ($modal) use ($dtf, $dtt, $view, $category_filter) {
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-label="More"></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item text-danger ajax-modal" href="#" data-modal-url="<?= $filters_url('modals/app_log/app_log_clear.php') ?>" data-app-log-clear>
<i class="fas fa-fw fa-trash-alt me-2"></i>Clear
<i class="fas fa-fw fa-trash me-2"></i>Clear
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="settings_logs.php">
@@ -117,7 +117,7 @@ $filters_url = function ($modal) use ($dtf, $dtt, $view, $category_filter) {
<div class="row g-2 align-items-center">
<div class="col-lg-5 col-md-12">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search the app logs" title="The category or what it says">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search the app logs..." title="The category or what it says">
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>
</div>

View File

@@ -128,7 +128,7 @@ $view_empty = [
<div class="row g-2 align-items-center">
<div class="col-lg-4 col-md-6">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search the audit log" title="What was done, who did it, the client, the IP address or the browser">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search the audit log..." title="What was done, who did it, the client, the IP address or the browser">
<button class="btn btn-outline-secondary <?= $more_filters ? 'active' : '' ?>" title="More filters" type="button" data-bs-toggle="collapse" data-bs-target="#auditMoreFilters"><i class="fas fa-filter"></i></button>
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>

View File

@@ -111,7 +111,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-file-upload text-secondary me-2"></i>Import
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/canned_response/canned_response_export.php">
<i class="fas fa-fw fa-file-download text-secondary me-2"></i>Export
<i class="fas fa-fw fa-download text-secondary me-2"></i>Export
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/reports/canned_responses.php">
@@ -222,7 +222,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas 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-file-download text-secondary me-2"></i>Export
<i class="fas fa-fw fa-download text-secondary me-2"></i>Export
</a>
<?php if ($owner_id) { ?>
<a class="dropdown-item confirm-link" href="post.php?share_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>"
@@ -233,7 +233,7 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-divider"></div>
<?php if ($row['canned_response_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>" title="Not offered on tickets">

View File

@@ -142,7 +142,7 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php if ($show_archived) { ?>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_restore_categories">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</button>
<?php } else { ?>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_archive_categories">
@@ -244,7 +244,7 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-divider"></div>
<?php if ($row['category_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_category=<?= $category_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_category=<?= $category_id ?>&csrf_token=<?= $csrf ?>" title="It stays on its records, but isn't offered for new ones">

View File

@@ -178,7 +178,7 @@ $csrf = $_SESSION['csrf_token'];
<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>
<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-box-open text-secondary me-2"></i>Restore</a>
<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>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_contract_template=<?= $id ?>&csrf_token=<?= $csrf ?>" title="Kept, but not offered on a new contract"><i class="fas fa-fw fa-archive me-2"></i>Archive</a>
<?php } ?>

View File

@@ -190,7 +190,7 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-divider"></div>
<?php if ($row['custom_link_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_custom_link=<?= $custom_link_id ?>&csrf_token=<?= $csrf ?>" title="Back at the end of the <?= escapeHtml($location_config['label']) ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_custom_link=<?= $custom_link_id ?>&csrf_token=<?= $csrf ?>" title="Kept, but no longer shown">

View File

@@ -95,10 +95,10 @@ $required_url = "modals/document_template/document_template_required.php?id=$doc
<?php } ?>
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="xl" data-modal-url="<?= $edit_url ?>"><i class="fas fa-fw fa-edit me-2"></i>Edit</button>
<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-h"></i></button>
<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?export_document_template=<?= $document_template_id ?>&csrf_token=<?= $csrf ?>" title="A file to import into another ITFlow"><i class="fas fa-fw fa-file-download me-2"></i>Export</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) { ?>
<a class="dropdown-item" href="post.php?restore_document_template=<?= $document_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-redo me-2"></i>Restore</a>
@@ -270,7 +270,7 @@ $required_url = "modals/document_template/document_template_required.php?id=$doc
data-confirm-title="Reset <?= escapeHtml($fill_in['name']) ?>?" data-confirm-text="It is still in what it says, so it stays asked for - as plain, optional text." data-confirm-button="Reset"><i class="fas fa-fw fa-undo me-2"></i>Reset</a>
<?php } else { ?>
<a class="dropdown-item text-danger confirm-link" href="post.php?delete_document_template_fill_in=<?= $fill_in['id'] ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Remove <?= escapeHtml($fill_in['name']) ?>?" data-confirm-text="It is no longer asked for." data-confirm-button="Remove"><i class="fas fa-fw fa-trash-alt me-2"></i>Remove</a>
data-confirm-title="Remove <?= escapeHtml($fill_in['name']) ?>?" data-confirm-text="It is no longer asked for." data-confirm-button="Remove"><i class="fas fa-fw fa-trash me-2"></i>Remove</a>
<?php } ?>
<?php } ?>
</div>

View File

@@ -107,7 +107,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-file-upload text-secondary me-2"></i>Import
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/document_template/document_template_export.php">
<i class="fas fa-fw fa-file-download text-secondary me-2"></i>Export
<i class="fas fa-fw fa-download text-secondary me-2"></i>Export
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/reports/document_templates.php">
@@ -224,7 +224,7 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-divider"></div>
<?php if ($row['document_template_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_document_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_document_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="Not offered for new documents - the documents made from it stay">

View File

@@ -174,7 +174,7 @@ $size = function ($mb) {
<?php } ?>
<button type="button" class="btn btn-light ajax-modal" data-modal-url="modals/managed_instance/managed_instance_form.php?id=<?= $instance_id ?>"><i class="fas fa-fw fa-edit me-2"></i>Edit</button>
<div class="dropdown">
<button class="btn btn-light" type="button" data-bs-toggle="dropdown" title="More"><i class="fas fa-fw fa-ellipsis-h"></i></button>
<button class="btn btn-light" type="button" data-bs-toggle="dropdown" title="More"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($can_act) { ?>
<a class="dropdown-item" href="post.php?managed_command=check_updates&id=<?= $instance_id ?>&csrf_token=<?= $csrf ?>" title="It checks at its next check-in, and the answer comes with the one after"><i class="fas fa-fw fa-sync-alt text-secondary me-2"></i>Check for updates</a>

View File

@@ -28,7 +28,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-trash-alt me-2"></i>Clear App Logs</h5>
<h5 class="modal-title"><i class="fas fa-fw fa-trash me-2"></i>Clear App Logs</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
@@ -67,7 +67,7 @@ ob_start();
</div>
<div class="modal-footer">
<?php if ($total) { ?>
<button type="submit" name="clear_app_logs" class="btn btn-danger text-bold"><i class="fas fa-trash-alt me-2"></i>Clear</button>
<button type="submit" name="clear_app_logs" class="btn btn-danger text-bold"><i class="fas fa-trash me-2"></i>Clear</button>
<?php } ?>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
</div>

View File

@@ -17,7 +17,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-download me-2"></i>Export canned responses</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-download me-2"></i>Export canned responses</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

@@ -16,7 +16,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-download me-2"></i>Export document templates</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-download me-2"></i>Export document templates</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

@@ -116,7 +116,7 @@ if (!officesReady()) { ?>
</div>
<div class="modal-footer">
<?php if ($office) { ?>
<a href="post.php?remove_office=<?= $office_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" class="btn btn-outline-danger me-auto confirm-link" data-confirm-title="Remove this office?" data-confirm-text="Those who work there go back to the main office." data-confirm-button="Remove" data-office-remove><i class="fas fa-trash-alt me-2"></i>Remove</a>
<a href="post.php?remove_office=<?= $office_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" class="btn btn-outline-danger me-auto confirm-link" data-confirm-title="Remove this office?" data-confirm-text="Those who work there go back to the main office." data-confirm-button="Remove" data-office-remove><i class="fas fa-trash me-2"></i>Remove</a>
<?php } ?>
<button type="submit" name="save_office" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i><?= $office ? 'Save' : 'Create' ?></button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>

View File

@@ -16,7 +16,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-download me-2"></i>Export license templates</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-download me-2"></i>Export license templates</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

@@ -15,7 +15,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-download me-2"></i>Export ticket templates</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-download me-2"></i>Export ticket templates</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

@@ -120,7 +120,7 @@ ob_start();
<?php if ($is_self) { ?>
<a class="btn btn-primary" href="/agent/user/user_details.php"><i class="fas fa-user-cog me-2"></i>Your account</a>
<?php } elseif ($is_archived) { ?>
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/user/user_restore.php?id=<?= $user_id ?>"><i class="fas fa-redo-alt me-2"></i>Restore</button>
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/user/user_restore.php?id=<?= $user_id ?>"><i class="fas fa-redo me-2"></i>Restore</button>
<?php } else { ?>
<button type="button" class="btn btn-primary ajax-modal" data-modal-size="lg" data-modal-url="modals/user/user_edit.php?id=<?= $user_id ?>"><i class="fas fa-user-edit me-2"></i>Edit</button>
<?php } ?>

View File

@@ -13,15 +13,15 @@ $agent_count = intval(mysqli_fetch_row(mysqli_query($mysqli, "SELECT COUNT(*) FR
ob_start();
?>
<div class="modal-header bg-danger">
<h5 class="modal-title text-white"><i class="fas fa-fw fa-skull-crossbones me-2"></i>Incident response</h5>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-skull-crossbones me-2"></i>Incident response</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off">
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<div class="modal-body">
<p class="fw-semibold mb-2">Reset the password of every other agent - <?= $agent_count ?> of them.</p>
<div class="alert alert-danger fw-semibold">Reset the password of every other agent - <?= $agent_count ?> of them.</div>
<ul class="small mb-3 ps-3">
<li>Each gets a new password, shown to you once on the next page - give them out by phone, not email, and have them changed.</li>
<li>Their remembered browsers are forgotten, so anyone with MFA is asked for a code again.</li>

View File

@@ -18,7 +18,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-redo-alt me-2"></i>Restore <?= escapeHtml($name) ?></h5>
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-redo me-2"></i>Restore <?= escapeHtml($name) ?></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

@@ -17,7 +17,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-download me-2"></i>Export vendor templates</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-download me-2"></i>Export vendor templates</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="/admin/post.php" method="post" autocomplete="off" data-vendor-template-export>

View File

@@ -32,7 +32,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="row g-2 align-items-center">
<div class="col-md-4">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) {echo stripslashes(escapeHtml($q));} ?>" placeholder="Search Modules">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) {echo stripslashes(escapeHtml($q));} ?>" placeholder="Search modules...">
<button class="btn btn-primary" title="Search"><i class="fa fa-search"></i></button>
</div>
</div>

View File

@@ -207,7 +207,7 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-divider"></div>
<?php if ($archived) { ?>
<a class="dropdown-item" href="post.php?restore_payment_method=<?= $payment_method_id ?>&csrf_token=<?= $csrf ?>" title="Back in the pickers">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_payment_method=<?= $payment_method_id ?>&csrf_token=<?= $csrf ?>"

View File

@@ -83,7 +83,7 @@ $archived = !empty($template['project_template_archived_at']);
<div class="dropdown-divider"></div>
<?php if ($archived) { ?>
<a class="dropdown-item" href="post.php?restore_project_template=<?= $project_template_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_project_template=<?= $project_template_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">

View File

@@ -120,7 +120,7 @@ $sort_link = function ($column, $label) use ($url_query_strings_sort, $sort, $di
<div class="dropdown-divider"></div>
<?php if ($row['project_template_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_project_template=<?= $project_template_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_project_template=<?= $project_template_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">

View File

@@ -165,7 +165,7 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-divider"></div>
<?php if ($row['role_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_role=<?= $role_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } elseif ($archive_blocker !== '') { ?>
<span class="dropdown-item disabled" title="<?= escapeHtml($archive_blocker) ?>"><i class="fas fa-fw fa-archive me-2"></i>Archive</span>

View File

@@ -122,7 +122,7 @@ $signup_clients = $signup_ready ? portalSignupClients() : [];
<td class="small"><?= escapeHtml(implode(' ', $when)) ?><div class="text-secondary">Posted by <?= escapeHtml($row['user_name'] ?: 'someone') ?></div></td>
<td>
<div class="dropdown dropstart text-center">
<button class="btn btn-secondary btn-sm" title="More actions" data-bs-toggle="dropdown"><i class="fas fa-ellipsis-h"></i></button>
<button class="btn btn-secondary btn-sm" title="More actions" data-bs-toggle="dropdown"><i class="fas fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/portal_announcement/portal_announcement_edit.php?id=<?= $announcement_id ?>" data-modal-size="lg"><i class="fas fa-fw fa-edit me-2"></i>Edit</a>
<?php if ($row['announcement_archived_at']) { ?>

View File

@@ -87,7 +87,7 @@ echo settingsPageStart('company');
'Click it to ' . ($logo_url !== '' ? 'change it' : 'add one') . ' - a PNG or JPG. A wide one prints best, and a PNG keeps a see-through background.');
?>
<?php if ($logo_url !== '') { ?>
<a href="post.php?remove_company_logo&csrf_token=<?= $_SESSION['csrf_token'] ?>" class="btn btn-sm btn-outline-danger mt-2 confirm-link" data-settings-remove-logo><i class="fas fa-trash-alt me-2"></i>Take the logo off</a>
<a href="post.php?remove_company_logo&csrf_token=<?= $_SESSION['csrf_token'] ?>" class="btn btn-sm btn-outline-danger mt-2 confirm-link" data-settings-remove-logo><i class="fas fa-trash me-2"></i>Take the logo off</a>
<?php } ?>
<?= settingsSectionEnd() ?>

View File

@@ -181,7 +181,7 @@ $audit_url = function (array $query) use ($dates_query) {
<div class="row g-2 align-items-center">
<div class="col-lg-6 col-md-7">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Name, email or IP address">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search sign-ins..." title="Name, email or IP address">
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>
</div>

View File

@@ -396,7 +396,7 @@ $pill_url = function ($view) use ($on_days) {
<div class="dropdown-menu">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $edit_url ?>"><i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit</a>
<?php if ($sla['sla_archived_at']) { ?>
<a class="dropdown-item" href="post.php?unarchive_sla=<?= $sla_id ?>&amp;csrf_token=<?= $csrf ?>" data-sla-restore><i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore</a>
<a class="dropdown-item" href="post.php?unarchive_sla=<?= $sla_id ?>&amp;csrf_token=<?= $csrf ?>" data-sla-restore><i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore</a>
<?php } else { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger" href="post.php?archive_sla=<?= $sla_id ?>&amp;csrf_token=<?= $csrf ?>">

View File

@@ -130,11 +130,11 @@ $facts = array_filter([
<?php } ?>
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="lg" data-modal-url="<?= $edit_url ?>"><i class="fas fa-fw fa-edit me-2"></i>Edit</button>
<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-h"></i></button>
<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?export_software_template=<?= $software_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-file-download me-2"></i>Export</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>
<?php } else { ?>

View File

@@ -122,7 +122,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-file-upload text-secondary me-2"></i>Import
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/software_template/software_template_export.php">
<i class="fas fa-fw fa-file-download text-secondary me-2"></i>Export
<i class="fas fa-fw fa-download text-secondary me-2"></i>Export
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/reports/license_templates.php">
@@ -251,12 +251,12 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas 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-file-download text-secondary me-2"></i>Export
<i class="fas fa-fw fa-download text-secondary me-2"></i>Export
</a>
<div class="dropdown-divider"></div>
<?php if ($row['software_template_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_software_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_software_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="Not offered for new licenses - the licenses made from it stay">

View File

@@ -211,7 +211,7 @@ if (!$total_missing) {
data-confirm-title="Remove the demo data?"
data-confirm-text="The demo clients go, with all of their contacts, assets, documentation, credentials, tickets, quotes, invoices and payments, and so do the demo suppliers, accounts, response targets and company expenses. This can't be undone."
data-confirm-button="Remove it">
<i class="fas fa-fw fa-trash-alt me-2"></i>Remove demo data
<i class="fas fa-fw fa-trash me-2"></i>Remove demo data
</button>
</form>
<?php } ?>

View File

@@ -132,7 +132,7 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php if ($show_archived) { ?>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_restore_tags">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</button>
<?php } else { ?>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_archive_tags">
@@ -232,7 +232,7 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-divider"></div>
<?php if ($tag['tag_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_tag=<?= $tag_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_tag=<?= $tag_id ?>&csrf_token=<?= $csrf ?>" title="It stays on its <?= $kind['plural'] ?>, but isn't offered for tagging or in the filters">

View File

@@ -158,7 +158,7 @@ $sort_link = function ($column, $label) use ($url_query_strings_sort, $sort, $di
<div class="dropdown-menu">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/tax/tax_edit.php?id=<?= $tax_id ?>" data-modal-size="lg"><i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit</a>
<?php if ($rate['tax_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_tax=<?= $tax_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>"><i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore</a>
<a class="dropdown-item" href="post.php?restore_tax=<?= $tax_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>"><i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore</a>
<?php } else { ?>
<?php if (!$u['default']) { ?>
<a class="dropdown-item" href="post.php?default_tax=<?= $tax_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>"><i class="fas fa-fw fa-star text-secondary me-2"></i>Make default</a>

View File

@@ -127,10 +127,10 @@ $edit_url = "modals/ticket_template/ticket_template_edit.php?id=$ticket_template
<?php } ?>
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="lg" data-modal-url="<?= $edit_url ?>"><i class="fas fa-fw fa-edit me-2"></i>Edit</button>
<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-h"></i></button>
<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?export_ticket_template=<?= $ticket_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-file-download me-2"></i>Export</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>
<?php } else { ?>
@@ -204,7 +204,7 @@ $edit_url = "modals/ticket_template/ticket_template_edit.php?id=$ticket_template
data-confirm-title="Reset <?= escapeHtml($fill_in['name']) ?>?" data-confirm-text="It is still in the text, so it stays asked for - as plain, optional text." data-confirm-button="Reset"><i class="fas fa-fw fa-undo me-2"></i>Reset</a>
<?php } else { ?>
<a class="dropdown-item text-danger confirm-link" href="post.php?delete_ticket_template_fill_in=<?= $fill_in['id'] ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Remove <?= escapeHtml($fill_in['name']) ?>?" data-confirm-text="It is no longer asked for. Tickets already raised keep their answers." data-confirm-button="Remove"><i class="fas fa-fw fa-trash-alt me-2"></i>Remove</a>
data-confirm-title="Remove <?= escapeHtml($fill_in['name']) ?>?" data-confirm-text="It is no longer asked for. Tickets already raised keep their answers." data-confirm-button="Remove"><i class="fas fa-fw fa-trash me-2"></i>Remove</a>
<?php } ?>
<?php } ?>
</div>
@@ -271,7 +271,7 @@ $edit_url = "modals/ticket_template/ticket_template_edit.php?id=$ticket_template
<div class="dropdown-menu">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/ticket_template/ticket_template_task_edit.php?id=<?= $task['id'] ?>"><i class="fas fa-fw fa-edit me-2"></i>Edit</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger confirm-link" href="post.php?delete_task_template=<?= $task['id'] ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-trash-alt me-2"></i>Delete</a>
<a class="dropdown-item text-danger confirm-link" href="post.php?delete_task_template=<?= $task['id'] ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-trash me-2"></i>Delete</a>
</div>
</div>
</div>

View File

@@ -96,7 +96,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-file-upload text-secondary me-2"></i>Import
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/ticket_template/ticket_template_export.php">
<i class="fas fa-fw fa-file-download text-secondary me-2"></i>Export
<i class="fas fa-fw fa-download text-secondary me-2"></i>Export
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/reports/ticket_templates.php">
@@ -221,7 +221,7 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-divider"></div>
<?php if ($row['ticket_template_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_ticket_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_ticket_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="Not offered for new tickets - recurring tickets and project templates that use it keep it">

View File

@@ -786,7 +786,7 @@ $csrf = $_SESSION['csrf_token'];
<?php } elseif ($is_archived) { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/user/user_restore.php?id=<?= $user_id ?>">
<i class="fas fa-fw fa-redo-alt text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/user/user_edit.php?id=<?= $user_id ?>">

View File

@@ -156,11 +156,11 @@ foreach (vendorTemplateFieldLabels() as $field) {
<?php } ?>
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-size="lg" data-modal-url="<?= $edit_url ?>"><i class="fas fa-fw fa-edit me-2"></i>Edit</button>
<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-h"></i></button>
<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?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-file-download me-2"></i>Export</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) { ?>
<a class="dropdown-item" href="post.php?restore_vendor_template=<?= $vendor_template_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-redo me-2"></i>Restore</a>

View File

@@ -138,7 +138,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-file-upload text-secondary me-2"></i>Import
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $export_url ?>">
<i class="fas fa-fw fa-file-download text-secondary me-2"></i>Export
<i class="fas fa-fw fa-download text-secondary me-2"></i>Export
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/reports/vendor_templates.php">
@@ -283,12 +283,12 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas 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-file-download text-secondary me-2"></i>Export
<i class="fas fa-fw fa-download text-secondary me-2"></i>Export
</a>
<div class="dropdown-divider"></div>
<?php if ($row['vendor_template_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_vendor_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_vendor_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="Not offered for new vendors - the vendors made from it stay">

View File

@@ -104,7 +104,7 @@ $month_url = 'canned_date=custom&dtf=' . $stats['month_start'] . '&dtt=' . date(
<?php if ($can_edit) { ?>
<button type="button" class="btn btn-primary ajax-modal" data-modal-size="lg" data-modal-url="modals/account/account_add.php"><i class="fas fa-plus me-2"></i>New Account</button>
<?php } ?>
<button type="button" class="btn <?= $can_edit ? 'btn-primary dropdown-toggle-split' : 'btn-light' ?> dropdown-toggle" data-bs-toggle="dropdown" aria-label="More"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-h"></i>' ?></button>
<button type="button" class="btn <?= $can_edit ? 'btn-primary dropdown-toggle-split' : 'btn-light' ?> dropdown-toggle" data-bs-toggle="dropdown" aria-label="More"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($can_edit) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/transfer/transfer_add.php"><i class="fa fa-fw fa-exchange-alt text-secondary me-2"></i>New Transfer</a>
@@ -125,7 +125,7 @@ $month_url = 'canned_date=custom&dtf=' . $stats['month_start'] . '&dtt=' . date(
<form autocomplete="off" class="me-auto" style="min-width: 16rem;">
<?php if ($show) { ?><input type="hidden" name="show" value="<?= $show ?>"><?php } ?>
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?= escapeHtml($q_text) ?>" placeholder="Search accounts">
<input type="search" class="form-control" name="q" value="<?= escapeHtml($q_text) ?>" placeholder="Search accounts...">
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>
</form>
@@ -229,7 +229,7 @@ $month_url = 'canned_date=custom&dtf=' . $stats['month_start'] . '&dtt=' . date(
<?php } ?>
<?php } elseif ($can_edit) { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="post.php?restore_account=<?= $account_id ?>&amp;csrf_token=<?= $_SESSION['csrf_token'] ?>"><i class="fas fa-fw fa-redo-alt text-secondary me-2"></i>Restore</a>
<a class="dropdown-item" href="post.php?restore_account=<?= $account_id ?>&amp;csrf_token=<?= $_SESSION['csrf_token'] ?>"><i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore</a>
<?php } ?>
<?php if ($can_delete && !$in_use && !accountInUse($account_id)) { ?>
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?delete_account=<?= $account_id ?>&amp;csrf_token=<?= $_SESSION['csrf_token'] ?>"

View File

@@ -120,7 +120,7 @@ $view_empty = [
<div class="row g-2 align-items-center">
<div class="col-lg-5 col-md-6">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search <?= $client_name ?>'s audit log" title="What was done, who did it, the IP address or the browser">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search the audit log..." title="What was done, who did it, the IP address or the browser">
<button class="btn btn-outline-secondary <?= $more_filters ? 'active' : '' ?>" title="More filters" type="button" data-bs-toggle="collapse" data-bs-target="#auditMoreFilters"><i class="fas fa-filter"></i></button>
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>

View File

@@ -117,7 +117,7 @@ foreach ($sources as $key => $source) {
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger confirm-link" href="post.php?delete_calendar=<?= $calendar_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Delete <?= escapeHtml($calendar['calendar_name']) ?>?" data-confirm-button="Delete"
data-confirm-text="Its events are deleted with it, and anyone sent an invitation to one is emailed the cancellation."><i class="fas fa-fw fa-trash-alt me-2"></i>Delete</a>
data-confirm-text="Its events are deleted with it, and anyone sent an invitation to one is emailed the cancellation."><i class="fas fa-fw fa-trash me-2"></i>Delete</a>
</div>
</div>
<?php } ?>

View File

@@ -141,7 +141,7 @@ $export_extra = [
</button>
<?php } ?>
<?php if ($num_rows[0] > 0 || ($can_edit && $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-h"></i>' ?></button>
<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">

View File

@@ -383,7 +383,7 @@ $total_leads = intval($row['leads']);
<div class="row g-2 align-items-center">
<div class="col-sm-6 col-lg-5">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?= stripslashes(escapeHtml($q)) ?>" placeholder="Search <?= $leads_filter ? 'leads' : 'clients' ?>, contacts, addresses, tags" autofocus>
<input type="search" class="form-control" name="q" value="<?= stripslashes(escapeHtml($q)) ?>" placeholder="Search <?= $leads_filter ? 'leads' : 'clients' ?>..." title="Name, contacts, addresses, tags" autofocus>
<button class="btn btn-secondary<?= $hidden_filter_count ? ' itflow-filter-on' : '' ?>" type="button" data-bs-toggle="collapse" data-bs-target="#advancedFilter" title="Filters">
<i class="fas fa-filter"></i><?php if ($hidden_filter_count) { ?><span class="ms-1"><?= $hidden_filter_count ?></span><?php } ?>
</button>

View File

@@ -223,7 +223,8 @@ if ($contacts) {
}
$search_noun = $role_filter ? strtolower($contact_role_tabs[$role_filter]['label']) . ' contacts' : 'contacts';
$search_placeholder = $invites_view ? 'Search invites by email, name or client' : "Search $search_noun, phones, emails...";
$search_placeholder = $invites_view ? 'Search invites...' : "Search $search_noun...";
$search_title = $invites_view ? 'Email, name or client' : 'Name, title, email, phone, department, location, client or tag';
?>
@@ -324,7 +325,7 @@ $search_placeholder = $invites_view ? 'Search invites by email, name or client'
<div class="col-lg-4 col-md-6">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="<?= $search_placeholder ?>">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="<?= $search_placeholder ?>" title="<?= $search_title ?>">
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>
</div>

View File

@@ -247,7 +247,7 @@ if (!$contract || ($client_url && intval($contract['contract_client_id']) !== in
<a class="btn btn-outline-secondary btn-sm" href="post.php?export_contract_pdf=<?= $contract_id ?>&round=<?= intval($latest['contract_signature_id']) ?>" title="Download PDF"><i class="fas fa-file-pdf"></i></a>
<?php if ($can_edit && contractSignaturePending($latest)) { ?>
<div class="dropdown">
<button class="btn btn-outline-secondary btn-sm" type="button" data-bs-toggle="dropdown" title="More"><i class="fas fa-fw fa-ellipsis-h"></i></button>
<button class="btn btn-outline-secondary btn-sm" type="button" data-bs-toggle="dropdown" title="More"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<?php if ($latest_state['key'] !== 'countersign') { ?>
<a class="dropdown-item confirm-link" href="post.php?resend_contract_signature=<?= intval($latest['contract_signature_id']) ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>"
@@ -536,7 +536,7 @@ if (!$contract || ($client_url && intval($contract['contract_client_id']) !== in
<td class="text-end">
<?php if (!intval($block['uses'])) { ?>
<a class="btn btn-sm btn-link text-danger p-0 confirm-link" href="post.php?delete_contract_block=<?= $block_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" title="Delete these hours"
data-confirm-title="Delete <?= escapeHtml(contractHoursText($block['contract_block_hours'])) ?>?" data-confirm-text="Nothing was drawn from them.<?= intval($block['contract_block_invoice_id']) ? ' Their invoice stays - void it if it should go too.' : '' ?>" data-confirm-button="Delete"><i class="fas fa-fw fa-trash-alt"></i></a>
data-confirm-title="Delete <?= escapeHtml(contractHoursText($block['contract_block_hours'])) ?>?" data-confirm-text="Nothing was drawn from them.<?= intval($block['contract_block_invoice_id']) ? ' Their invoice stays - void it if it should go too.' : '' ?>" data-confirm-button="Delete"><i class="fas fa-fw fa-trash"></i></a>
<?php } ?>
</td>
<?php } ?>

View File

@@ -164,7 +164,7 @@ $filter_url = function ($changes) use ($client_url) {
<i class="fas fa-plus me-2"></i>New Credential
</button>
<?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-h"></i>' ?></button>
<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) ?>">

View File

@@ -319,7 +319,7 @@ $page_title = $row['document_name'];
</div>
<a class="itflow-copy ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/document/document_changes.php?document_id=<?= $document_id ?>&version_id=<?= $version_id ?>" title="What changed"><i class="fas fa-exchange-alt"></i></a>
<?php if ($can_delete) { ?>
<a class="itflow-copy confirm-link text-danger" href="post.php?delete_document_version=<?= $version_id ?>&csrf_token=<?= $csrf ?>" title="Delete this version" data-confirm-text="This version is removed from the history for good."><i class="fas fa-trash-alt"></i></a>
<a class="itflow-copy confirm-link text-danger" href="post.php?delete_document_version=<?= $version_id ?>&csrf_token=<?= $csrf ?>" title="Delete this version" data-confirm-text="This version is removed from the history for good."><i class="fas fa-trash"></i></a>
<?php } ?>
</li>
<?php } ?>

View File

@@ -146,7 +146,7 @@ $bulk_vendor_options = $can_edit ? domainVendorChoices($client_url ? $client_id
</button>
<?php } ?>
<?php if ($num_rows[0] > 0 || ($can_edit && $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-h"></i>' ?></button>
<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">

View File

@@ -156,7 +156,7 @@ $month_change = $stats['last_to_date'] > 0 ? round(($stats['month'] - $stats['la
<?php if ($can_edit) { ?>
<button type="button" class="btn btn-primary ajax-modal" data-modal-size="lg" data-modal-url="modals/expense/expense_add.php<?= $vendor_filter ? "?vendor_id=$vendor_filter" : '' ?>"><i class="fas fa-plus me-2"></i>New Expense</button>
<?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-h"></i>' ?></button>
<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) { ?>
<?php if (moduleOn('bookkeeping')) { ?><a class="dropdown-item" href="expense_import.php"><i class="fa fa-fw fa-file-import text-secondary me-2"></i>Import Statement</a><?php } ?>
@@ -187,7 +187,7 @@ $month_change = $stats['last_to_date'] > 0 ? round(($stats['month'] - $stats['la
<div class="row g-2 align-items-center">
<div class="col-lg-3 col-md-6">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search expenses" title="Vendor, description, reference, amount, client, category">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search expenses..." title="Vendor, description, reference, amount, client, category">
<button class="btn btn-outline-secondary <?= $more_filters ? 'active' : '' ?>" title="More filters" type="button" data-bs-toggle="collapse" data-bs-target="#expenseMoreFilters"><i class="fas fa-filter"></i></button>
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>

View File

@@ -413,7 +413,7 @@ $preview = []; // the grid's previewer payload
<div class="row g-2 align-items-center">
<div class="col-lg-5 col-md-6">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?= escapeHtml($search) ?>" placeholder="Search <?= $search_label === 'all folders' ? 'all folders' : 'in ' . $search_label ?> - names and document text">
<input type="search" class="form-control" name="q" value="<?= escapeHtml($search) ?>" placeholder="Search <?= $search_label === 'all folders' ? 'all folders' : 'in ' . $search_label ?>..." title="Names and document text">
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>
</div>
@@ -523,7 +523,7 @@ $preview = []; // the grid's previewer payload
</nav>
<?php if (!$archived && $search === '') { ?>
<div class="dropdown">
<button type="button" class="btn btn-sm btn-light" data-bs-toggle="dropdown" title="This folder"><i class="fas fa-ellipsis-h"></i></button>
<button type="button" class="btn btn-sm btn-light" data-bs-toggle="dropdown" title="This folder"><i class="fas fa-ellipsis-v"></i></button>
<div class="dropdown-menu dropdown-menu-end">
<!-- Everything in it and the folders under it, documents as web pages (agent/post/file.php) -->
<a class="dropdown-item" href="post.php?download_folder_zip=<?= $folder_id ?>&client_id=<?= $client_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>"><i class="fas fa-fw fa-file-archive me-2"></i><?= $folder_id ? 'Download as zip' : 'Download everything as zip' ?></a>

View File

@@ -50,7 +50,7 @@
<?php if (lookupUserPermission("module_client") >= 1) { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/client/client_export_data.php?client_id=<?= $client_id ?>" data-modal-size="lg">
<i class="fas fa-fw fa-file-export me-2"></i>Export Data
<i class="fas fa-fw fa-download me-2"></i>Export Data
</a>
<?php } ?>
<?php if (reportCan(reportFind('client_review'))) { ?>
@@ -73,7 +73,7 @@
<?php } else { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-primary" href="post.php?restore_client=<?= $client_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-archive me-2"></i>Restore Client
<i class="fas fa-fw fa-redo me-2"></i>Restore Client
</a>
<?php } ?>

View File

@@ -457,7 +457,7 @@
<?php if ($client_nav_quiet) { ?>
<li class="nav-item mt-2">
<a href="#" class="nav-link" data-nav-more title="None for this client yet: <?= escapeHtml(implode(', ', $client_nav_quiet)) ?>">
<i class="nav-icon fas fa-ellipsis-h"></i>
<i class="nav-icon fas fa-ellipsis-v"></i>
<p>More <span class="right badge text-light"><?= count($client_nav_quiet) ?></span></p>
</a>
</li>

View File

@@ -158,7 +158,7 @@ $invoices_url = 'invoices.php?' . ($client_page ? "client_id=$client_id&" : '')
<?php if ($can_edit) { ?>
<button type="button" class="btn btn-primary ajax-modal" data-modal-size="lg" data-modal-url="<?= $add_url ?>"><i class="fas fa-plus me-2"></i>New Income</button>
<?php } ?>
<button type="button" class="btn <?= $can_edit ? 'btn-primary dropdown-toggle-split' : 'btn-light' ?> dropdown-toggle" data-bs-toggle="dropdown" aria-label="More"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-h"></i>' ?></button>
<button type="button" class="btn <?= $can_edit ? 'btn-primary dropdown-toggle-split' : 'btn-light' ?> dropdown-toggle" data-bs-toggle="dropdown" aria-label="More"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<?php if ($can_edit) { ?>
<?php if (moduleOn('bookkeeping')) { ?><a class="dropdown-item" href="income_import.php"><i class="fa fa-fw fa-file-import text-secondary me-2"></i>Import Deposits</a><?php } ?>
@@ -186,7 +186,7 @@ $invoices_url = 'invoices.php?' . ($client_page ? "client_id=$client_id&" : '')
<div class="row g-2 align-items-center">
<div class="col-lg-4 col-md-6">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search income" title="What for, invoice number, reference, amount, client, category, account">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search income..." title="What for, invoice number, reference, amount, client, category, account">
<button class="btn btn-outline-secondary <?= $more_filters ? 'active' : '' ?>" title="More filters" type="button" data-bs-toggle="collapse" data-bs-target="#incomeMoreFilters"><i class="fas fa-filter"></i></button>
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>

View File

@@ -200,7 +200,7 @@ $stat_money = function ($amount) use ($session_company_currency) {
<i class="fas fa-plus me-2"></i>New Invoice
</button>
<?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-h"></i>' ?></button>
<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 ajax-modal" href="#"
data-modal-url="<?= buildExportModalUrl('modals/invoice/invoice_export.php', ['client_id', 'status', 'category', 'q'], ['dtf' => $dtf, 'dtt' => $dtt, 'client_id' => $client ?: '']) ?>">

View File

@@ -89,7 +89,10 @@
}
function resetTimer() {
if (confirm("Are you sure you want to reset the timer?")) {
itflowConfirm({ title: 'Reset the timer?', text: 'The time on it goes back to zero.', button: 'Reset', danger: true }).then(function (confirmed) {
if (!confirmed) {
return;
}
clearInterval(timerInterval);
timerInterval = null;
elapsedSecs = 0;
@@ -97,8 +100,8 @@
displayTime();
let btn = document.getElementById("startStopTimer");
if (btn) btn.innerHTML = "<i class='fas fa-play'></i>";
}
localStorage.setItem("ticket-timer-running-" + ticketID, "false");
localStorage.setItem("ticket-timer-running-" + ticketID, "false");
});
}
function forceResetTimer() {

View File

@@ -141,7 +141,7 @@ $csrf = $_SESSION['csrf_token'];
</button>
<?php } ?>
<?php if ($session_is_admin) { ?>
<button type="button" class="btn btn-primary dropdown-toggle <?= $can_edit ? 'dropdown-toggle-split' : '' ?>" data-bs-toggle="dropdown" aria-label="More"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-h"></i>' ?></button>
<button type="button" class="btn btn-primary dropdown-toggle <?= $can_edit ? 'dropdown-toggle-split' : '' ?>" data-bs-toggle="dropdown" aria-label="More"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item" href="/admin/categories.php?category=kb">
<i class="fas fa-fw fa-list-ul text-secondary me-2"></i>Categories
@@ -209,7 +209,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-archive me-2"></i>Archive
</button>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_restore_kb_articles">
<i class="fas fa-fw fa-box-open me-2"></i>Restore
<i class="fas fa-fw fa-redo me-2"></i>Restore
</button>
<?php if ($can_delete) { ?>
<div class="dropdown-divider"></div>
@@ -349,7 +349,7 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php } else { ?>
<a class="dropdown-item" href="post.php?restore_kb_article=<?= $kb_article_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } ?>
<?php if ($can_delete) { ?>

View File

@@ -133,7 +133,7 @@ $page_title = $row['kb_article_title'];
<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 { ?>
<a class="dropdown-item" href="post.php?restore_kb_article=<?= $kb_article_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-box-open me-2"></i>Restore</a>
<a class="dropdown-item" href="post.php?restore_kb_article=<?= $kb_article_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-redo me-2"></i>Restore</a>
<?php } ?>
<?php if ($can_delete) { ?>
<div class="dropdown-divider"></div>
@@ -180,7 +180,7 @@ $page_title = $row['kb_article_title'];
<a class="btn btn-sm btn-light border" href="kb_file.php?file_id=<?= $file_id ?>" title="Download"><i class="fas fa-download"></i></a>
<?php if ($can_edit) { ?>
<a class="itflow-copy text-danger confirm-link" href="post.php?delete_kb_article_file=<?= $file_id ?>&csrf_token=<?= $csrf ?>" title="Take it off"
data-confirm-title="Take <?= escapeHtml($file['kb_article_file_name']) ?> off?" data-confirm-text="It goes for good." data-confirm-button="Take it off"><i class="fas fa-trash-alt"></i></a>
data-confirm-title="Take <?= escapeHtml($file['kb_article_file_name']) ?> off?" data-confirm-text="It goes for good." data-confirm-button="Take it off"><i class="fas fa-trash"></i></a>
<?php } ?>
</li>
<?php } ?>
@@ -385,7 +385,7 @@ $page_title = $row['kb_article_title'];
</div>
</div>
<?php if ($can_delete) { ?>
<a class="itflow-copy confirm-link text-danger" href="post.php?delete_kb_article_version=<?= $version_id ?>&csrf_token=<?= $csrf ?>" title="Delete this version" data-confirm-text="This version is removed from the history for good."><i class="fas fa-trash-alt"></i></a>
<a class="itflow-copy confirm-link text-danger" href="post.php?delete_kb_article_version=<?= $version_id ?>&csrf_token=<?= $csrf ?>" title="Delete this version" data-confirm-text="This version is removed from the history for good."><i class="fas fa-trash"></i></a>
<?php } ?>
</li>
<?php } ?>

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="modal-footer">
<?php if (!intval($form['interface_primary'])) { ?>
<a class="btn btn-outline-danger me-auto confirm-link" href="post.php?delete_asset_interface=<?= $interface_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>"
data-confirm-text="<?= escapeHtml($form['interface_name']) ?> goes for good<?= $form['link'] ? ', and its connection to ' . escapeHtml($form['link']['asset_name'] . ' ' . $form['link']['interface_name']) . ' with it' : '' ?>."><i class="fas fa-trash-alt me-2"></i>Delete</a>
data-confirm-text="<?= escapeHtml($form['interface_name']) ?> goes for good<?= $form['link'] ? ', and its connection to ' . escapeHtml($form['link']['asset_name'] . ' ' . $form['link']['interface_name']) . ' with it' : '' ?>."><i class="fas fa-trash me-2"></i>Delete</a>
<?php } ?>
<button type="submit" name="edit_asset_interface" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Save</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>

View File

@@ -201,7 +201,7 @@ ob_start();
<div class="modal-footer">
<div class="dropdown dropup me-auto">
<button class="btn btn-outline-secondary" type="button" data-bs-toggle="dropdown" title="More actions"><i class="fas fa-ellipsis-h"></i></button>
<button class="btn btn-outline-secondary" type="button" data-bs-toggle="dropdown" title="More actions"><i class="fas fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item" href="post.php?export_event_ics=<?= $event_id ?>"><i class="fas fa-fw fa-download me-2"></i>Download .ics</a>
<?php if ($repeats && $can_edit) { ?>
@@ -216,7 +216,7 @@ ob_start();
<a class="dropdown-item text-danger confirm-link" href="post.php?delete_event=<?= $event_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Delete <?= escapeHtml($event['event_title']) ?>?" data-confirm-button="Delete"
<?php if ($invited) { ?>data-confirm-text="Everyone who was sent the invitation is emailed the cancellation."<?php } ?>>
<i class="fas fa-fw fa-trash-alt me-2"></i><?= $repeats ? 'Delete series' : 'Delete' ?>
<i class="fas fa-fw fa-trash me-2"></i><?= $repeats ? 'Delete series' : 'Delete' ?>
</a>
<?php } ?>
</div>

View File

@@ -56,7 +56,7 @@ ob_start();
<a class="btn btn-outline-danger me-auto confirm-link" href="post.php?delete_event=<?= $event_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>"
data-confirm-title="Delete <?= escapeHtml($form['event_title']) ?>?" data-confirm-button="Delete"
<?php if ($form_invited) { ?>data-confirm-text="Everyone who was sent the invitation is emailed the cancellation."<?php } ?>>
<i class="fas fa-trash-alt me-2"></i><?= $repeats ? 'Delete series' : 'Delete' ?>
<i class="fas fa-trash me-2"></i><?= $repeats ? 'Delete series' : 'Delete' ?>
</a>
<?php } ?>
<button type="submit" name="edit_event" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Save</button>

View File

@@ -98,7 +98,7 @@ ob_start();
<div class="modal-footer">
<?php if ($feed) { ?>
<div class="dropdown dropup me-auto">
<button class="btn btn-outline-secondary" type="button" data-bs-toggle="dropdown" title="More actions"><i class="fas fa-ellipsis-h"></i></button>
<button class="btn btn-outline-secondary" type="button" data-bs-toggle="dropdown" title="More actions"><i class="fas fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item confirm-link" href="post.php?calendar_feed_regenerate=1&csrf_token=<?= $csrf ?>"
data-confirm-title="Make a new link?" data-confirm-button="New link"

View File

@@ -88,7 +88,7 @@ ob_start();
<div class="modal-footer">
<?php if ($urls) { ?>
<div class="dropdown dropup me-auto">
<button class="btn btn-outline-secondary" type="button" data-bs-toggle="dropdown" title="More actions"><i class="fas fa-ellipsis-h"></i></button>
<button class="btn btn-outline-secondary" type="button" data-bs-toggle="dropdown" title="More actions"><i class="fas fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item confirm-link" href="post.php?regenerate_calendar_feed=<?= $calendar_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Make a new link?" data-confirm-button="New link"

View File

@@ -18,7 +18,7 @@
</div>
<div class="mb-3">
<label class="form-label">Type<strong class="text-danger ms-2">*</strong></label>
<label class="form-label">Type <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-th-list"></i></span>
<select class="form-select select2" name="type" required>
@@ -31,7 +31,7 @@
</div>
<div class="mb-3">
<label class="form-label">Amount<strong class="text-danger ms-2">*</strong></label>
<label class="form-label">Amount <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-dollar-sign"></i></span>
<input type="text" class="form-control" inputmode="decimal" pattern="[0-9]*\.?[0-9]{0,2}" name="amount" placeholder="0.00" required>
@@ -39,7 +39,7 @@
</div>
<div class="mb-3">
<label class="form-label">Note<strong class="text-danger ms-2">*</strong></label>
<label class="form-label">Note <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-file-alt"></i></span>
<input type="text" class="form-control" name="note" placeholder="Enter a note" maxlength="250">

View File

@@ -59,7 +59,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-file-export me-2"></i>Export <?= $client_name ?></h5>
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-download me-2"></i>Export <?= $client_name ?></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>

View File

@@ -49,7 +49,7 @@ ob_start();
<div class="modal-body">
<div class="alert alert-info d-flex align-items-center gap-2 py-2">
<i class="fas fa-file-export"></i>
<i class="fas fa-download"></i>
<span class="me-auto">Keep a copy of everything first?</span>
<a class="btn btn-sm btn-outline-primary ajax-modal" href="#" data-modal-url="modals/client/client_export_data.php?client_id=<?= $client_id ?>" data-modal-size="lg">Export Data</a>
</div>

View File

@@ -121,7 +121,7 @@ ob_start();
</div>
<div class="modal-footer">
<a class="btn btn-outline-secondary me-auto" href="post.php?import_template=<?= escapeHtml($def['kind']) ?><?= $client_id ? "&amp;client_id=$client_id" : '' ?>" data-import-template><i class="fas fa-download me-2"></i>Template</a>
<button type="button" class="btn btn-outline-secondary d-none" data-import-failed><i class="fas fa-file-download me-2"></i>Rows not imported</button>
<button type="button" class="btn btn-outline-secondary d-none" data-import-failed><i class="fas fa-download me-2"></i>Rows not imported</button>
<button type="submit" class="btn btn-primary text-bold" disabled data-import-run><i class="fas fa-upload me-2"></i>Import</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal" data-import-close><i class="fas fa-times me-2"></i>Cancel</button>
</div>

View File

@@ -34,7 +34,7 @@ ob_start();
</div>
<div class="modal-footer">
<a class="btn btn-outline-danger me-auto confirm-link" href="post.php?delete_network_ip=<?= $ip_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>"
data-confirm-text="<?= escapeHtml($form['ip_address']) ?> is no longer documented."><i class="fas fa-trash-alt me-2"></i>Delete</a>
data-confirm-text="<?= escapeHtml($form['ip_address']) ?> is no longer documented."><i class="fas fa-trash me-2"></i>Delete</a>
<button type="submit" name="edit_network_ip" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Save</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
</div>

View File

@@ -104,8 +104,8 @@ ob_start();
<td><?= ucfirst($approval_status) ?></td>
<td>
<?php if ($approval_status !== 'approved') { ?>
<a class="text-danger"
onclick="return confirm('Delete this approval request?');"
<a class="text-danger confirm-link"
data-confirm-title="Remove this approval request?" data-confirm-button="Remove"
href="post.php?delete_ticket_task_approver=<?= $approval_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-times"></i>Remove
</a>

View File

@@ -89,7 +89,7 @@ $form_account_options = function ($selected) use ($form_accounts, $form_types) {
</div>
<div class="col-md-6">
<label class="form-label d-flex align-items-center">To <strong class="text-danger ms-1">*</strong>
<label class="form-label d-flex align-items-center">To <strong class="text-danger">*</strong>
<button type="button" class="btn btn-link btn-sm p-0 ms-auto text-decoration-none" data-transfer-swap title="Turn it round" <?= $form_lock ? 'hidden' : '' ?>><i class="fas fa-exchange-alt me-1"></i>Swap</button>
</label>
<div class="input-group">

View File

@@ -163,7 +163,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-plus"></i><span class="d-none d-lg-inline ms-2">New Network</span>
</button>
<?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-h"></i>' ?></button>
<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]) ?>">

View File

@@ -88,7 +88,7 @@ $empty_state_skip = true;
<div class="row g-2 align-items-center">
<div class="col-md-5">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?= escapeHtml(stripslashes($q)) ?>" placeholder="Search notifications">
<input type="search" class="form-control" name="q" value="<?= escapeHtml(stripslashes($q)) ?>" placeholder="Search notifications...">
<button class="btn btn-primary" title="Search"><i class="fa fa-search"></i></button>
<button class="btn btn-secondary" title="More filters" type="button" data-bs-toggle="collapse" data-bs-target="#advancedFilter"><i class="fas fa-filter"></i></button>
</div>

View File

@@ -202,7 +202,7 @@ $add_type = in_array($view, ['product', 'hardware', 'stocked', 'reorder'], true)
<i class="fas fa-plus me-2"></i>New
</button>
<?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-h"></i>' ?></button>
<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) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/product/product_add.php?type=service">

View File

@@ -228,7 +228,7 @@ echo agentBannersHtml($project_client_id);
<div class="dropdown-divider"></div>
<?php if ($project['project_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_project=<?= $project_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_project=<?= $project_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">

View File

@@ -155,7 +155,7 @@ $hidden_filter_count = $date_filter_active ? 1 : 0;
<i class="fas fa-plus"></i><span class="d-none d-lg-inline ms-2">New Project</span>
</button>
<?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-h"></i>' ?></button>
<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']) ?>">
<i class="fa fa-fw fa-download me-2"></i>Export
@@ -244,7 +244,7 @@ $hidden_filter_count = $date_filter_active ? 1 : 0;
<i class="fas fa-fw fa-archive me-2"></i>Archive
</button>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_restore_projects">
<i class="fas fa-fw fa-box-open me-2"></i>Restore
<i class="fas fa-fw fa-redo me-2"></i>Restore
</button>
<?php if ($can_delete) { ?>
<div class="dropdown-divider"></div>
@@ -442,7 +442,7 @@ $hidden_filter_count = $date_filter_active ? 1 : 0;
<?php } ?>
<?php if ($row['project_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_project=<?= $project_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_project=<?= $project_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">

View File

@@ -113,7 +113,7 @@ if (!$po || !poAccessible($po['po_id'])) {
<a class="btn btn-primary" href="receiving.php?po_id=<?= $po_id ?>"><i class="fas fa-truck-loading me-2"></i>Receive</a>
<?php } ?>
<div class="dropdown">
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown"><i class="fas fa-ellipsis-h"></i><span class="visually-hidden">More</span></button>
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown"><i class="fas fa-ellipsis-v"></i><span class="visually-hidden">More</span></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item" href="post.php?po_pdf=<?= $po_id ?>&csrf_token=<?= $csrf ?>" target="_blank"><i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>PDF</a>
<?php if ($can_edit && $ordered_or_after) { ?>

View File

@@ -164,7 +164,7 @@ $stat_monthly = function ($amount) use ($stat_money) {
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/quote/quote_add.php?<?= $client_url ?>"><i class="fas fa-plus me-2"></i>New Quote</button>
<?php } ?>
<?php if ($num_rows[0] > 0) { ?>
<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-h"></i>' ?></button>
<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 ajax-modal" href="#" data-modal-url="<?= buildExportModalUrl('modals/quote/quote_export.php', ['client_id', 'category', 'q'], ['dtf' => $dtf, 'dtt' => $dtt, 'client_id' => $client ?: '']) ?>">
<i class="fa fa-fw fa-download text-secondary me-2"></i>Export

View File

@@ -124,7 +124,7 @@ foreach ($racks as $rack_id => $row) {
<div class="col-lg-3 col-md-4">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search racks and what's in them">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search racks..." title="Racks and what's in them">
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>
</div>

View File

@@ -284,7 +284,7 @@ $gap_notice = function () use ($opening, $opening_totals, $opening_gap, $account
<a class="dropdown-item" href="transactions.php?account=<?= $account_id ?>"><i class="fa fa-fw fa-list-alt text-secondary me-2"></i>Transactions</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger confirm-link" href="post.php?reconcile_discard=<?= intval($open['reconciliation_id']) ?>&amp;csrf_token=<?= $_SESSION['csrf_token'] ?>"
data-confirm-title="Discard this reconciliation?" data-confirm-text="What is ticked comes off, and nothing is marked cleared." data-confirm-button="Discard"><i class="fa fa-fw fa-trash-alt me-2"></i>Discard</a>
data-confirm-title="Discard this reconciliation?" data-confirm-text="What is ticked comes off, and nothing is marked cleared." data-confirm-button="Discard"><i class="fa fa-fw fa-trash me-2"></i>Discard</a>
</div>
</div>
</form>

View File

@@ -142,7 +142,7 @@ $any_filter = $q || $vendor_filter || $category_filter || $client_filter;
<?php if ($can_edit) { ?>
<button type="button" class="btn btn-primary ajax-modal" data-modal-size="lg" data-modal-url="modals/recurring_expense/recurring_expense_add.php<?= $vendor_filter ? "?vendor_id=$vendor_filter" : '' ?>"><i class="fas fa-plus me-2"></i>New Recurring Expense</button>
<?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-h"></i>' ?></button>
<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" href="expenses.php"><i class="fa fa-fw fa-shopping-cart text-secondary me-2"></i>Expenses</a>
<?php if (reportCanOpen('expense_by_vendor')) { ?>
@@ -159,7 +159,7 @@ $any_filter = $q || $vendor_filter || $category_filter || $client_filter;
<div class="row g-2 align-items-center">
<div class="col-lg-3 col-md-6">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search recurring expenses" title="Vendor, description, reference, amount, client, category">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search recurring expenses..." title="Vendor, description, reference, amount, client, category">
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>
</div>

View File

@@ -159,7 +159,7 @@ $stat_money = function ($amount) use ($session_company_currency) {
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/recurring_invoice/recurring_invoice_add.php?<?= $client_url ?>"><i class="fas fa-plus me-2"></i>New Recurring Invoice</button>
<?php } ?>
<?php if ($num_rows[0] > 0) { ?>
<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-h"></i>' ?></button>
<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 ajax-modal" href="#" data-modal-url="<?= buildExportModalUrl('modals/recurring_invoice/recurring_invoice_export.php', ['client_id', 'category', 'q'], ['status' => in_array($status, ['active', 'inactive'], true) ? $status : '', 'client_id' => $client ?: '']) ?>">
<i class="fa fa-fw fa-download text-secondary me-2"></i>Export

View File

@@ -145,7 +145,7 @@ $sort_link = function ($column, $label) use ($url_query_strings_sort, $sort, $di
<i class="fas fa-plus me-2"></i>New Recurring Ticket
</button>
<?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-h"></i>' ?></button>
<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" href="tickets.php<?= $client_url ? '?' . rtrim($client_url, '&') : '' ?>">
<i class="fa fa-fw fa-life-ring me-2"></i>Tickets

View File

@@ -139,7 +139,7 @@ $link_icons = ['asset' => ['fa-desktop', 'asset', 'assets'], 'credential' => ['f
<i class="fas fa-plus"></i><span class="d-none d-lg-inline ms-2">New Service</span>
</button>
<?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-h"></i>' ?></button>
<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">

View File

@@ -115,7 +115,7 @@ $filter_url = function ($changes) {
<i class="fas fa-user-secret me-2"></i>Secure Note
</button>
<?php } ?>
<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-h"></i>' ?></button>
<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) ?>">

View File

@@ -1834,7 +1834,7 @@ if (isset($_GET['ticket_id'])) {
<?php } ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger confirm-link" href="post.php?delete_task=<?= $task_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-trash-alt me-2"></i>Delete
<i class="fas fa-fw fa-trash me-2"></i>Delete
</a>
</div>
</div>

View File

@@ -298,7 +298,7 @@ $export_extra = [
<i class="fas fa-plus me-2"></i>New Ticket
</button>
<?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-h"></i>' ?></button>
<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" href="recurring_tickets.php<?= $client_url ? '?' . rtrim($client_url, '&') : '' ?>">
<i class="fa fa-fw fa-redo-alt me-2"></i>Recurring tickets

View File

@@ -241,7 +241,7 @@ $is_card = $account && $account['type'] === 3;
<i class="fas fa-<?= $is_card ? 'credit-card' : 'exchange-alt' ?> me-2"></i><?= $is_card ? 'Pay the Card' : 'New Transfer' ?>
</button>
<?php } ?>
<button type="button" class="btn <?= $can_edit ? 'btn-primary dropdown-toggle-split' : 'btn-light' ?> dropdown-toggle" data-bs-toggle="dropdown" aria-label="More"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-h"></i>' ?></button>
<button type="button" class="btn <?= $can_edit ? 'btn-primary dropdown-toggle-split' : 'btn-light' ?> dropdown-toggle" data-bs-toggle="dropdown" aria-label="More"><?= $can_edit ? '' : '<i class="fas fa-ellipsis-v"></i>' ?></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#"
data-modal-url="<?= buildExportModalUrl('modals/transaction/transaction_export.php', ['account', 'show', 'kind', 'type', 'category', 'client', 'method', 'payment_method', 'amount_min', 'amount_max', 'reconciliation', 'q'], ['dtf' => $dtf, 'dtt' => $dtt]) ?>">
@@ -285,7 +285,7 @@ $is_card = $account && $account['type'] === 3;
</div>
<div class="col-lg-3 col-md-6">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search transactions" title="Who or what, description, reference, amount, category, client, account">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search transactions..." title="Who or what, description, reference, amount, category, client, account">
<button class="btn btn-outline-secondary <?= $more_filters ? 'active' : '' ?>" title="More filters" type="button" data-bs-toggle="collapse" data-bs-target="#ledgerMoreFilters"><i class="fas fa-filter"></i></button>
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>

View File

@@ -209,7 +209,7 @@ $add_url = 'modals/trip/trip_add.php' . ($client_page ? "?client_id=$client_id"
<div class="row g-2 align-items-center">
<div class="col-lg-4 col-md-6">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search trips" title="Purpose, from, to, client, site, driver, ticket">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search trips..." title="Purpose, from, to, client, site, driver, ticket">
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>
</div>

View File

@@ -109,7 +109,7 @@ $view_empty = [
<div class="row g-2 align-items-center">
<div class="col-lg-6 col-md-7">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search what you did" title="What you did, the client, the IP address or the browser">
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search your activity..." title="What you did, the client, the IP address or the browser">
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
</div>
</div>

View File

@@ -207,7 +207,7 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-divider"></div>
<?php if ($row['canned_response_archived_at']) { ?>
<a class="dropdown-item" href="post.php?restore_your_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Restore
<i class="fas fa-fw fa-redo text-secondary me-2"></i>Restore
</a>
<?php } else { ?>
<a class="dropdown-item text-danger" href="post.php?archive_your_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>" title="Not offered on tickets">

View File

@@ -134,7 +134,7 @@ $missing_templates = $view === 'client' && !$archived ? vendorTemplatesMissingFo
<i class="fas fa-plus me-2"></i>New Vendor
</button>
<?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-h"></i>' ?></button>
<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">

View File

@@ -90,7 +90,7 @@ $fee_terms = $fee_rates ? ' Each card payment has a card fee added: ' . billingC
<a class="btn btn-sm btn-outline-danger confirm-link" href="post.php?delete_saved_payment=<?= intval($card['saved_payment_id']) ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>"
data-confirm-title="Remove <?= escapeHtml($c['label']) ?>?"
data-confirm-text="<?= $card['autopay'] ? 'Autopay with this card stops - those invoices will need paying by hand.' : 'You can save it again any time.' ?>"
data-confirm-button="Remove" data-confirm-icon="warning"><i class="fas fa-trash-alt me-1"></i>Remove</a>
data-confirm-button="Remove" data-confirm-icon="warning"><i class="fas fa-trash me-1"></i>Remove</a>
</li>
<?php } ?>
</ul>

View File

@@ -142,14 +142,14 @@ function auditLogActionStyle($action) {
'Edit' => ['primary', 'fa-pen'], 'Bulk Edit' => ['primary', 'fa-pen'], 'Update' => ['primary', 'fa-sync-alt'], 'Modify' => ['primary', 'fa-pen'], 'Rename' => ['primary', 'fa-i-cursor'],
'Move' => ['primary', 'fa-arrows-alt'], 'Merge' => ['primary', 'fa-code-branch'], 'Link' => ['primary', 'fa-link'], 'Unlink' => ['secondary', 'fa-unlink'],
'Reply' => ['primary', 'fa-reply'], 'Resolve' => ['success', 'fa-check'], 'Close' => ['secondary', 'fa-check-double'], 'Reopen' => ['primary', 'fa-redo'],
'Delete' => ['danger', 'fa-trash-alt'], 'Bulk Delete' => ['danger', 'fa-trash-alt'], 'Revoke' => ['danger', 'fa-ban'],
'Delete' => ['danger', 'fa-trash'], 'Bulk Delete' => ['danger', 'fa-trash'], 'Revoke' => ['danger', 'fa-ban'],
'Archive' => ['secondary', 'fa-archive'], 'Bulk Archive' => ['secondary', 'fa-archive'], 'Restore' => ['info', 'fa-redo'], 'Bulk Restore' => ['info', 'fa-redo'],
'Success' => ['success', 'fa-check-circle'], 'Alert' => ['danger', 'fa-bell'], 'Failed' => ['danger', 'fa-times-circle'], 'Failure' => ['danger', 'fa-times-circle'], 'MFA Failed' => ['danger', 'fa-shield-alt'], 'Blocked' => ['danger', 'fa-ban'], 'Denied' => ['danger', 'fa-ban'],
'View' => ['warning', 'fa-eye'], 'View TOTP' => ['warning', 'fa-eye'], 'View As' => ['warning', 'fa-user-secret'], 'Export' => ['warning', 'fa-download'], 'Download' => ['warning', 'fa-download'],
'Share' => ['warning', 'fa-share-alt'], 'Send' => ['primary', 'fa-paper-plane'], 'Sign' => ['success', 'fa-signature'], 'Withdraw' => ['secondary', 'fa-undo'], 'Email' => ['primary', 'fa-envelope'], 'Payment' => ['success', 'fa-credit-card'], 'Auto Payment' => ['success', 'fa-credit-card'],
'Error' => ['danger', 'fa-exclamation-triangle'],
'Activate' => ['success', 'fa-toggle-on'], 'Disable' => ['secondary', 'fa-ban'], 'Cancel' => ['secondary', 'fa-ban'], 'Bulk Cancel' => ['secondary', 'fa-ban'], 'End' => ['secondary', 'fa-stop-circle'],
'Dismiss' => ['secondary', 'fa-times'], 'Discard' => ['danger', 'fa-trash-alt'], 'Import Rule Delete' => ['danger', 'fa-trash-alt'], 'Undo' => ['secondary', 'fa-undo'], 'Reimbursement Undo' => ['secondary', 'fa-undo'],
'Dismiss' => ['secondary', 'fa-times'], 'Discard' => ['danger', 'fa-trash'], 'Import Rule Delete' => ['danger', 'fa-trash'], 'Undo' => ['secondary', 'fa-undo'], 'Reimbursement Undo' => ['secondary', 'fa-undo'],
'Unshare' => ['secondary', 'fa-unlink'], 'Unbill' => ['secondary', 'fa-unlink'], 'Read' => ['warning', 'fa-eye'], 'Keys' => ['primary', 'fa-key'], 'Rotate' => ['primary', 'fa-sync-alt'], 'Refresh' => ['primary', 'fa-sync-alt'],
'Change' => ['primary', 'fa-pen'], 'Stock' => ['primary', 'fa-boxes'], 'Seats' => ['primary', 'fa-users'], 'Task' => ['primary', 'fa-tasks'], 'Transfer' => ['primary', 'fa-exchange-alt'], 'Bulk Transfer' => ['primary', 'fa-exchange-alt'],
'Statement' => ['primary', 'fa-file-invoice'], 'Receipt' => ['primary', 'fa-receipt'], 'Queue' => ['primary', 'fa-stream'], 'Run' => ['primary', 'fa-play'], 'Move On' => ['primary', 'fa-forward'],
@@ -188,7 +188,7 @@ function auditLogViews() {
return [
'' => ['label' => 'All', 'icon' => 'fa-list', 'title' => 'Everything', 'where' => ''],
'changes' => ['label' => 'Changes', 'icon' => 'fa-pen', 'title' => 'Records made, changed, archived, restored and deleted', 'where' => "NOT $signins AND NOT $data_out"],
'deletions' => ['label' => 'Deletions', 'icon' => 'fa-trash-alt', 'title' => 'Records deleted for good', 'where' => "log_action IN ('Delete', 'Bulk Delete')"],
'deletions' => ['label' => 'Deletions', 'icon' => 'fa-trash', 'title' => 'Records deleted for good', 'where' => "log_action IN ('Delete', 'Bulk Delete')"],
'signins' => ['label' => 'Sign-ins', 'icon' => 'fa-sign-in-alt', 'title' => 'Agents and portal contacts signing in and out', 'where' => $signins],
'security' => ['label' => 'Security', 'icon' => 'fa-shield-alt', 'title' => 'Failed and turned away sign-ins and the alerts about them, API calls turned away, access denied, the portal viewed as a contact, app logs cleared, and changes to users, roles, API keys, the master key, settings and backups',
'where' => "(($signins AND log_action IN ('Failed', 'MFA Failed', 'Blocked', 'Alert')) OR (log_type = 'API' AND log_action = 'Failed') OR log_action IN ('Denied', 'View As') OR (log_type = 'App Log' AND log_action = 'Delete') OR log_type IN ('User', 'User Account', 'User Role', 'API Key', 'Master Key', 'Settings', 'Backup', 'Identity Provider'))"],

View File

@@ -144,7 +144,11 @@ document.addEventListener('click', function (e) {
})
.catch(function (error) {
clearSpinner();
alert('Error loading modal content. Please try again.');
if (typeof itflowToast === 'function') {
itflowToast('That window could not be opened - try again.', 'error');
} else {
alert('That window could not be opened - try again.');
}
console.error('Modal AJAX Error:', error);
});
});

View File

@@ -721,7 +721,7 @@ function itflowInit() {
var newContent = '<span style="font-weight: bold; color: red;">[REDACTED]</span>';
editor.selection.setContent(newContent);
} else {
alert('Please select a word to redact');
itflowToast('Select the text to redact first', 'warning');
}
}
});
@@ -777,7 +777,7 @@ function itflowInit() {
var newContent = '<span style="font-weight: bold; color: red;">[REDACTED]</span>';
editor.selection.setContent(newContent);
} else {
alert('Please select a word to redact');
itflowToast('Select the text to redact first', 'warning');
}
}
});

View File

@@ -17,8 +17,47 @@
*
* A link whose classes mark it destructive (text-danger, btn-danger or
* btn-outline-danger) defaults to a red confirm button and a warning icon, so
* the delete links read as dangerous without touching any of them.
* the delete links read as dangerous without touching any of them. With no
* data-confirm-button, the confirm button says what the link says - Delete,
* Archive, Remove - when that is a word or three, and Yes otherwise.
*
* itflowConfirm({title, text, button, icon, danger}) asks the same question
* from script and resolves true when it is confirmed.
*/
function itflowConfirm(options) {
options = options || {};
if (typeof Swal === 'undefined') {
return Promise.resolve(window.confirm(options.title || 'Are you sure?'));
}
return Swal.fire({
// SweetAlert2 has no idea about Bootstrap's mode - it keys its own dark
// palette off the `theme` option and defaults to 'light', so the dialog
// stayed white on a dark page. Read at fire time, not at load.
theme: document.documentElement.getAttribute('data-bs-theme') === 'dark' ? 'dark' : 'light',
title: options.title || 'Are you sure?',
text: options.text || '',
icon: options.icon || (options.danger ? 'warning' : 'question'),
showCancelButton: true,
confirmButtonText: options.button || 'Yes',
cancelButtonText: 'Cancel',
reverseButtons: true,
focusCancel: !!options.danger,
buttonsStyling: false,
customClass: {
confirmButton: options.danger ? 'btn btn-danger mx-1' : 'btn btn-primary mx-1',
cancelButton: 'btn btn-secondary mx-1'
}
}).then(function (result) {
return !!result.isConfirmed;
});
}
// What the link itself says, for the confirm button - only when it is short
function itflowConfirmLabel(link) {
const said = (link.textContent || '').replace(/\s+/g, ' ').trim() || link.getAttribute('title') || link.getAttribute('aria-label') || '';
return said && said.length <= 24 && said.split(' ').length <= 3 ? said : '';
}
document.addEventListener('click', function (e) {
const link = e.target.closest('a.confirm-link, button.confirm-link');
if (!link || typeof Swal === 'undefined') {
@@ -35,26 +74,14 @@ document.addEventListener('click', function (e) {
const destructive = ['text-danger', 'btn-danger', 'btn-outline-danger']
.some(function (cls) { return link.classList.contains(cls); });
Swal.fire({
// SweetAlert2 has no idea about Bootstrap's mode - it keys its own dark
// palette off the `theme` option and defaults to 'light', so the dialog
// stayed white on a dark page. Read at fire time, not at load.
theme: document.documentElement.getAttribute('data-bs-theme') === 'dark' ? 'dark' : 'light',
title: link.dataset.confirmTitle || 'Are you sure?',
text: link.dataset.confirmText || '',
icon: link.dataset.confirmIcon || (destructive ? 'warning' : 'question'),
showCancelButton: true,
confirmButtonText: link.dataset.confirmButton || 'Yes',
cancelButtonText: 'Cancel',
reverseButtons: true,
focusCancel: destructive,
buttonsStyling: false,
customClass: {
confirmButton: destructive ? 'btn btn-danger mx-1' : 'btn btn-primary mx-1',
cancelButton: 'btn btn-secondary mx-1'
}
}).then(function (result) {
if (!result.isConfirmed) {
itflowConfirm({
title: link.dataset.confirmTitle,
text: link.dataset.confirmText,
button: link.dataset.confirmButton || itflowConfirmLabel(link),
icon: link.dataset.confirmIcon,
danger: destructive
}).then(function (confirmed) {
if (!confirmed) {
return;
}
if (form) {

View File

@@ -681,7 +681,7 @@
'<input type="file" hidden data-camera-file accept="image/*" capture="environment">' +
'</div>' +
'<div class="modal-footer">' +
'<button type="button" class="btn btn-outline-danger me-auto" data-remove><i class="fas fa-trash-alt me-2"></i>Remove</button>' +
'<button type="button" class="btn btn-outline-danger me-auto" data-remove><i class="fas fa-trash me-2"></i>Remove</button>' +
'<button type="button" class="btn btn-outline-secondary" data-another hidden><i class="fas fa-images me-2"></i>Choose another</button>' +
'<button type="button" class="btn btn-primary text-bold" data-use disabled><i class="fas fa-check me-2"></i><span data-use-label>Use this picture</span></button>' +
'<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>' +

View File

@@ -282,7 +282,7 @@
top.appendChild(call.running
? button('fa-pause', 'Pause', 'btn-outline-secondary', callPause)
: button('fa-play', 'Resume', 'btn-outline-secondary', callStart));
top.appendChild(button('fa-trash-alt', 'Throw this time away', 'btn-outline-danger', function () { confirming = 'call'; finding = false; }));
top.appendChild(button('fa-trash', 'Throw this time away', 'btn-outline-danger', function () { confirming = 'call'; finding = false; }));
}
row.appendChild(top);
@@ -460,7 +460,7 @@
top.appendChild(t.running
? button('fa-pause', 'Pause', 'btn-outline-secondary', function () { pause(t.id); })
: button('fa-play', 'Resume', 'btn-outline-secondary', function () { resume(t.id); }));
top.appendChild(button('fa-trash-alt', 'Throw this time away', 'btn-outline-danger', function () { confirming = t.id; }));
top.appendChild(button('fa-trash', 'Throw this time away', 'btn-outline-danger', function () { confirming = t.id; }));
}
row.appendChild(top);