QoL 49: page and window titles, menu items and buttons in Title Case and field labels, section headings, tabs and help in sentence case across agent, admin and portal, including empty-state action labels, script-built buttons, the portal menu and headings, the settings menu pages and in-app mentions of renamed buttons, with changelog lines

This commit is contained in:
johnnyq
2026-11-21 00:56:05 -05:00
parent 91af76b2e1
commit 3f70c5e2e4
295 changed files with 731 additions and 729 deletions

View File

@@ -221,6 +221,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
- Windows and buttons: a window that makes something new is called New ... and its button says Create, and an edit window is called Edit ..., with the record's name after it in lighter text, and its button says Save - the titles read Editing contact:, Tag:, Creating note: and so on, and the buttons said Add, Add Income, Add Expense, Log Trip, Set Up, Make Draft, Create Client, Save changes and the like. On list pages the button that opens it says New, as New Provider, New Model, New Instance and New Item had said Add. A window that adds to the record it's on - Add Tickets on an invoice, Add keys on a license - still says Add. Field labels sit the same distance above their fields in every window, the extensions on a new client, applying a project template and adding ticket templates to one have their icon in front like every other field, invoices have one icon everywhere, and deleting a client is a normal window with Delete at the bottom, turned on once the client's name is typed.
- Menus, icons and questions: every More menu has the same ⋮ button, and Delete, Restore and Export each have one icon everywhere. The required-field star sits the same way on every form, and Incident response has the usual dark window with its warning in red. A question before an action names it on its button - Delete, Remove, Archive - rather than Yes. Resetting a ticket's timer, removing an approval request, redacting with nothing selected and a window that fails to open now use ITFlow's own question and message rather than the browser's. Every list's search box reads Search ..., with what it looks in shown when you point at it.
- Dropdowns: the empty first choice reads the same way everywhere - - Select a client -, - Select an account - and so on where you pick one, - Any client -, - Any status - where a list is filtered, and - None -, - No contact -, - Nobody - where it can be left blank. They had said - Select Client -, - Pick a role -, - Which account -, - How it was paid -, - All Clients -, Not Assigned and the like.
- Capitals: page and window titles, menu items and buttons are in Title Case - New Ticket, Mark Reviewed, Back Up Now, Turn Off Portal Access - and field labels, section headings, tabs and help are in sentence case - Postal code, Tax rate, Physical location - in the agent pages, Admin and the client portal alike. The settings pages in the menu are now Company Details, Invoices and Billing, Purchase Orders, Client Portal and Single Sign-on.
### Bug Fixes
@@ -443,6 +444,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
- 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.
- UI text: titles, menu items and buttons in Title Case, with a, an, the, and, but, or, for, as, at, by, in, of, on, to, via, from, with and into lower case unless first or last, and a verb's particle capitalised (Turn Off, Back Up, Sign In); field labels, section headings, tabs and help in sentence case. Proper names and acronyms keep their capitals either way. The empty-state and header `'actions'` labels are buttons, so Title Case too.
## [26.11.8]

View File

@@ -189,7 +189,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-plug text-secondary me-2"></i>Test
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/ai/ai_model_edit.php?provider=<?= $provider_id ?>">
<i class="fas fa-fw fa-plus text-secondary me-2"></i>Add a model
<i class="fas fa-fw fa-plus text-secondary me-2"></i>Add a Model
</a>
<a class="dropdown-item" href="ai_usage.php?provider=<?= $provider_id ?>">
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>Usage

View File

@@ -89,7 +89,7 @@ $csrf = $_SESSION['csrf_token'];
: ($address_one ? 'It\'s' : 'They\'re') . ' turned away now - move ' . ($address_one ? 'it' : 'each') . ' to the X-API-Key header and give it a new key.' ?>
</div>
<?php if ($address_taken) { ?>
<a class="btn btn-sm btn-warning text-nowrap" href="settings_security.php#api">Security settings</a>
<a class="btn btn-sm btn-warning text-nowrap" href="settings_security.php#api">Security Settings</a>
<?php } ?>
</div>
<?php } ?>

View File

@@ -102,7 +102,7 @@ $filters_url = function ($modal) use ($dtf, $dtt, $view, $category_filter) {
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="settings_logs.php">
<i class="fas fa-fw fa-cog text-secondary me-2"></i>Keeping and forwarding
<i class="fas fa-fw fa-cog text-secondary me-2"></i>Keeping and Forwarding
</a>
<a class="dropdown-item" href="audit_logs.php">
<i class="fas fa-fw fa-history text-secondary me-2"></i>Audit Logs

View File

@@ -110,10 +110,10 @@ $view_empty = [
<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" href="/agent/reports/audit_activity.php">
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>Activity report
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>Activity Report
</a>
<a class="dropdown-item" href="settings_logs.php">
<i class="fas fa-fw fa-cog text-secondary me-2"></i>Keeping and forwarding
<i class="fas fa-fw fa-cog text-secondary me-2"></i>Keeping and Forwarding
</a>
<a class="dropdown-item" href="app_logs.php">
<i class="fas fa-fw fa-clipboard-list text-secondary me-2"></i>App Logs

View File

@@ -216,7 +216,7 @@ $status_looks = [
<strong>A restore is waiting to start</strong> - the <?= escapeHtml($restore_label) ?>, asked for by <?= escapeHtml((string) ($restore_status['who'] ?? '')) ?> <?= $ago((string) ($restore_status['queued'] ?? $restore_status['at'] ?? '')) ?>.
<?= $cron_is_running ? 'Cron starts it within a minute.' : 'Cron isn\'t running, so it starts when cron does - and not at all once ' . BACKUP_RESTORE_WAIT_MINUTES . ' minutes have gone by.' ?>
<div class="mt-2">
<a class="btn btn-sm btn-light border confirm-link" href="post.php?cancel_restore=1&amp;csrf_token=<?= $csrf ?>" data-confirm-title="Cancel the restore?" data-confirm-text="Nothing is changed, and nothing is restored." data-confirm-button="Cancel it"><i class="fas fa-fw fa-ban me-1"></i>Cancel the restore</a>
<a class="btn btn-sm btn-light border confirm-link" href="post.php?cancel_restore=1&amp;csrf_token=<?= $csrf ?>" data-confirm-title="Cancel the restore?" data-confirm-text="Nothing is changed, and nothing is restored." data-confirm-button="Cancel it"><i class="fas fa-fw fa-ban me-1"></i>Cancel the Restore</a>
</div>
<?php } elseif ($restore_state === 'running') { ?>
<strong>Restoring</strong> the <?= escapeHtml($restore_label) ?> - started <?= $ago((string) ($restore_status['started'] ?? $restore_status['at'] ?? '')) ?> by <?= escapeHtml((string) ($restore_status['who'] ?? '')) ?>.
@@ -306,14 +306,14 @@ $status_looks = [
<?php if (!in_array($state, ['nokey', 'working'], true)) { ?>
<div class="d-flex flex-wrap gap-2 mt-3">
<a class="btn btn-primary" href="post.php?queue_backup=full&amp;csrf_token=<?= $csrf ?>" data-backup-now>
<i class="fas fa-fw fa-box-open me-2"></i>Back up now
<i class="fas fa-fw fa-box-open me-2"></i>Back Up Now
</a>
<a class="btn btn-outline-secondary" href="post.php?queue_backup=database&amp;csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-database me-2"></i>Database only
<i class="fas fa-fw fa-database me-2"></i>Database Only
</a>
</div>
<p class="mb-0 mt-2 small text-body-secondary">
<strong>Back up now</strong> makes a Full Backup: the database and every uploaded file. <strong>Database only</strong> is smaller and quicker, without attachments or documents.
<strong>Back Up Now</strong> makes a Full Backup: the database and every uploaded file. <strong>Database Only</strong> is smaller and quicker, without attachments or documents.
</p>
<?php } ?>
</div>
@@ -403,10 +403,10 @@ $status_looks = [
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<?php if ($backup_path !== false) { ?>
<button type="button" class="dropdown-item clipboardjs" data-clipboard-text="<?= escapeHtml($backup_path) ?>" title="For restoring it from the command line"><i class="fas fa-fw fa-terminal text-secondary me-2"></i>Copy its path on this server</button>
<button type="button" class="dropdown-item clipboardjs" data-clipboard-text="<?= escapeHtml($backup_path) ?>" title="For restoring it from the command line"><i class="fas fa-fw fa-terminal text-secondary me-2"></i>Copy Its Path on This Server</button>
<?php } ?>
<?php if ($status === 'Complete' && (string) $backup['backup_sha256'] !== '') { ?>
<button type="button" class="dropdown-item clipboardjs" data-clipboard-text="<?= escapeHtml($backup['backup_sha256']) ?>" title="To check a copy is the same file"><i class="fas fa-fw fa-fingerprint text-secondary me-2"></i>Copy its SHA-256 checksum</button>
<button type="button" class="dropdown-item clipboardjs" data-clipboard-text="<?= escapeHtml($backup['backup_sha256']) ?>" title="To check a copy is the same file"><i class="fas fa-fw fa-fingerprint text-secondary me-2"></i>Copy Its SHA-256 Checksum</button>
<?php } ?>
<?php if ($status === 'Complete' && $backup['backup_type'] !== BACKUP_TYPE_MASTER_KEY) { ?>
<button type="button" class="dropdown-item ajax-modal" data-modal-url="modals/backup/backup_restore.php?backup_id=<?= $backup_id ?>" data-backup-restore-open="<?= $backup_id ?>">
@@ -454,11 +454,11 @@ $status_looks = [
<div class="d-flex gap-2 flex-shrink-0">
<?php if (!$schedule_on) { ?>
<a class="btn btn-sm btn-primary" href="post.php?enable_cron_job=<?= $backup_job_id ?>&amp;csrf_token=<?= $csrf ?>" data-backup-schedule-on>
<i class="fas fa-fw fa-power-off me-1"></i>Turn on
<i class="fas fa-fw fa-power-off me-1"></i>Turn On
</a>
<?php } ?>
<button type="button" class="btn btn-sm btn-light border ajax-modal" data-modal-url="modals/cron/cron_edit.php?id=<?= $backup_job_id ?>" data-backup-schedule-edit>
<i class="fas fa-fw fa-clock me-1"></i>Change the time
<i class="fas fa-fw fa-clock me-1"></i>Change the Time
</button>
</div>
<?php } ?>
@@ -677,7 +677,7 @@ $config_dev_mail_to = '<?= escapeHtml($dev_mail_to !== '' ? $dev_mail_to : 'dev@
<div class="card-body small">
<p class="text-body-secondary">The master key that opens every saved credential. A restore brings the vault back by itself, as long as one user still knows their password - this is for when none does.</p>
<button type="button" class="btn btn-sm btn-light border ajax-modal" data-modal-url="modals/backup/backup_master_key.php" data-backup-master-key-export>
<i class="fas fa-fw fa-key me-2"></i>Export the master key
<i class="fas fa-fw fa-key me-2"></i>Export the Master Key
</button>
</div>
</div>

View File

@@ -115,10 +115,10 @@ $csrf = $_SESSION['csrf_token'];
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/reports/canned_responses.php">
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>How they are used
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>How They Are Used
</a>
<a class="dropdown-item" href="starter_content.php">
<i class="fas fa-fw fa-seedling text-secondary me-2"></i>Starter canned responses
<i class="fas fa-fw fa-seedling text-secondary me-2"></i>Starter Canned Responses
</a>
</div>
</div>
@@ -227,7 +227,7 @@ $csrf = $_SESSION['csrf_token'];
<?php if ($owner_id) { ?>
<a class="dropdown-item confirm-link" href="post.php?share_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Share <?= $name ?> with everyone?" data-confirm-text="It moves to the shared ones and every agent is offered it. <?= escapeHtml($row['owner_name'] ?? 'Its agent') ?> can't change it after." data-confirm-button="Share">
<i class="fas fa-fw fa-users text-secondary me-2"></i>Share with everyone
<i class="fas fa-fw fa-users text-secondary me-2"></i>Share with Everyone
</a>
<?php } ?>
<div class="dropdown-divider"></div>

View File

@@ -138,7 +138,7 @@ $csrf = $_SESSION['csrf_token'];
</button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/category/category_merge.php" data-bulk="true">
<i class="fas fa-fw fa-compress-alt text-secondary me-2"></i>Merge into one...
<i class="fas fa-fw fa-compress-alt text-secondary me-2"></i>Merge into One...
</a>
<?php if ($show_archived) { ?>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_restore_categories">
@@ -227,17 +227,17 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/category/category_merge.php?category_ids[]=<?= $category_id ?>">
<i class="fas fa-fw fa-compress-alt text-secondary me-2"></i>Merge into...
<i class="fas fa-fw fa-compress-alt text-secondary me-2"></i>Merge Into...
</a>
<?php if ($can_reorder) { ?>
<?php if ($position > 0) { ?>
<a class="dropdown-item" href="post.php?move_category=<?= $category_id ?>&direction=up&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-arrow-up text-secondary me-2"></i>Move up
<i class="fas fa-fw fa-arrow-up text-secondary me-2"></i>Move Up
</a>
<?php } ?>
<?php if ($position < $num_rows[0] - 1) { ?>
<a class="dropdown-item" href="post.php?move_category=<?= $category_id ?>&direction=down&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-arrow-down text-secondary me-2"></i>Move down
<i class="fas fa-fw fa-arrow-down text-secondary me-2"></i>Move Down
</a>
<?php } ?>
<?php } ?>

View File

@@ -325,7 +325,7 @@ $status_looks = [
<?php } ?>
<div class="d-flex flex-wrap gap-2 mt-3">
<a class="btn <?= $state === 'off' ? 'btn-primary' : 'btn-outline-primary' ?>" href="post.php?enable_cron=1&amp;csrf_token=<?= $csrf ?>" data-cron-switch="on">
<i class="fas fa-fw fa-power-off me-2"></i>Turn cron on
<i class="fas fa-fw fa-power-off me-2"></i>Turn Cron On
</a>
</div>
<?php } ?>
@@ -396,24 +396,24 @@ $status_looks = [
<span class="dropdown-item disabled"><i class="fas fa-fw fa-play me-2"></i><?= $job['state'] === 'queued' ? 'Queued to run' : 'Running now' ?></span>
<?php } else { ?>
<a class="dropdown-item" href="post.php?run_cron_job=<?= $job['id'] ?>&amp;csrf_token=<?= $csrf ?>" data-cron-run>
<i class="fas fa-fw fa-play text-secondary me-2"></i>Run now
<i class="fas fa-fw fa-play text-secondary me-2"></i>Run Now
</a>
<?php } ?>
<button class="dropdown-item ajax-modal" type="button" data-modal-url="modals/cron/cron_edit.php?id=<?= $job['id'] ?>" data-cron-edit>
<i class="fas fa-fw fa-clock text-secondary me-2"></i>Change the schedule
<i class="fas fa-fw fa-clock text-secondary me-2"></i>Change the Schedule
</button>
<button type="button" class="dropdown-item clipboardjs" data-clipboard-text="<?= escapeHtml($by_hand($job['script'])) ?>" title="For running it yourself on the server, where it shows what it does as it goes">
<i class="fas fa-fw fa-terminal text-secondary me-2"></i>Copy the command to run it
<i class="fas fa-fw fa-terminal text-secondary me-2"></i>Copy the Command to Run It
</button>
<div class="dropdown-divider"></div>
<?php if ($job['enabled']) { ?>
<a class="dropdown-item text-danger confirm-link" href="post.php?disable_cron_job=<?= $job['id'] ?>&amp;csrf_token=<?= $csrf ?>" data-cron-off
data-confirm-title="Turn <?= escapeHtml($job['label']) ?> off?" data-confirm-text="It stops running on its schedule until it's turned back on. Run now still works." data-confirm-button="Turn it off">
<i class="fas fa-fw fa-power-off me-2"></i>Turn off
<i class="fas fa-fw fa-power-off me-2"></i>Turn Off
</a>
<?php } else { ?>
<a class="dropdown-item" href="post.php?enable_cron_job=<?= $job['id'] ?>&amp;csrf_token=<?= $csrf ?>" data-cron-on>
<i class="fas fa-fw fa-power-off text-secondary me-2"></i>Turn on
<i class="fas fa-fw fa-power-off text-secondary me-2"></i>Turn On
</a>
<?php } ?>
</div>
@@ -458,7 +458,7 @@ $status_looks = [
</table>
</div>
<div class="card-footer small text-body-secondary">
<strong>Run now</strong> doesn't run a job in your browser - cron picks it up within a minute, and this page shows how it went. What each job did is in <a href="app_logs.php">App Logs</a>.
<strong>Run Now</strong> doesn't run a job in your browser - cron picks it up within a minute, and this page shows how it went. What each job did is in <a href="app_logs.php">App Logs</a>.
</div>
</div>
@@ -545,7 +545,7 @@ $status_looks = [
</div>
<div class="d-flex flex-wrap gap-2 mt-3">
<button type="submit" name="edit_cron_alerts" class="btn btn-sm btn-primary"><i class="fas fa-fw fa-check me-1"></i>Save</button>
<button type="submit" name="test_cron_alert" class="btn btn-sm btn-light border"><i class="fas fa-fw fa-paper-plane me-1"></i>Send a test</button>
<button type="submit" name="test_cron_alert" class="btn btn-sm btn-light border"><i class="fas fa-fw fa-paper-plane me-1"></i>Send a Test</button>
</div>
</form>
<hr>
@@ -592,7 +592,7 @@ $status_looks = [
<p class="text-body-secondary">Stops every job at once, without touching their schedules. It's for a restored backup or a test copy, which would otherwise email your clients and charge their cards. Turning it back on picks up exactly where this leaves off.</p>
<a class="btn btn-sm btn-light border text-danger confirm-link" href="post.php?disable_cron=1&amp;csrf_token=<?= $csrf ?>" data-cron-switch="off"
data-confirm-title="Turn cron off?" data-confirm-text="No email is sent, no email becomes a ticket, and nothing is invoiced or backed up until it's turned back on." data-confirm-button="Turn it off">
<i class="fas fa-fw fa-power-off me-2"></i>Turn cron off
<i class="fas fa-fw fa-power-off me-2"></i>Turn Cron Off
</a>
</div>
</div>

View File

@@ -178,12 +178,12 @@ $csrf = $_SESSION['csrf_token'];
<?php if ($can_reorder) { ?>
<?php if ($position > 0) { ?>
<a class="dropdown-item" href="post.php?move_custom_link=<?= $custom_link_id ?>&direction=up&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-arrow-up text-secondary me-2"></i>Move up
<i class="fas fa-fw fa-arrow-up text-secondary me-2"></i>Move Up
</a>
<?php } ?>
<?php if ($position < $num_rows[0] - 1) { ?>
<a class="dropdown-item" href="post.php?move_custom_link=<?= $custom_link_id ?>&direction=down&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-arrow-down text-secondary me-2"></i>Move down
<i class="fas fa-fw fa-arrow-down text-secondary me-2"></i>Move Down
</a>
<?php } ?>
<?php } ?>

View File

@@ -78,10 +78,10 @@ $action_link = function (array $item, $class) {
<h3 class="card-title mt-1"><i class="fas fa-fw fa-bug me-2"></i>Debug</h3>
<div class="card-tools">
<button type="button" class="btn btn-outline-light clipboardjs" data-clipboard-target="#debugReport" title="Everything here as plain text, for a forum post or a support email - without host names, paths or keys" data-debug-copy>
<i class="fas fa-fw fa-copy"></i><span class="d-none d-md-inline ms-2">Copy for support</span>
<i class="fas fa-fw fa-copy"></i><span class="d-none d-md-inline ms-2">Copy for Support</span>
</button>
<a href="debug.php<?= $exact ? '?exact=1' : '' ?>" class="btn btn-outline-light ms-1" title="Check everything again">
<i class="fas fa-fw fa-redo-alt"></i><span class="d-none d-md-inline ms-2">Check again</span>
<i class="fas fa-fw fa-redo-alt"></i><span class="d-none d-md-inline ms-2">Check Again</span>
</a>
</div>
</div>
@@ -217,7 +217,7 @@ $action_link = function (array $item, $class) {
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<button type="submit" name="repair_database_collation" class="btn btn-warning btn-sm confirm-link" data-confirm-title="Repair collations?" data-confirm-button="Repair"
data-confirm-icon="question" data-confirm-text="<?= escapeHtml($collation_confirm) ?>">
<i class="fas fa-fw fa-wrench me-2"></i>Repair collations
<i class="fas fa-fw fa-wrench me-2"></i>Repair Collations
</button>
</form>
</div>

View File

@@ -83,10 +83,10 @@ $required_url = "modals/document_template/document_template_required.php?id=$doc
<div class="d-flex flex-wrap gap-2 d-print-none">
<?php if (!$archived) { ?>
<div class="btn-group">
<button type="button" class="btn btn-primary ajax-modal" data-modal-size="lg" data-modal-url="<?= $use_url ?>"><i class="fas fa-fw fa-plus me-2"></i>New document for a client</button>
<button type="button" class="btn btn-primary ajax-modal" data-modal-size="lg" data-modal-url="<?= $use_url ?>"><i class="fas fa-fw fa-plus me-2"></i>New Document for a Client</button>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-label="More ways to make one"></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>"><i class="fas fa-fw fa-copy me-2"></i>For several clients</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>"><i class="fas fa-fw fa-copy me-2"></i>For Several Clients</a>
<?php if ($coverage && $coverage['missing']) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>&missing=1"><i class="fas fa-fw fa-clipboard-check me-2"></i>For <?= $missing_text ?></a>
<?php } ?>
@@ -223,7 +223,7 @@ $required_url = "modals/document_template/document_template_required.php?id=$doc
<?php } ?>
</div>
<?php } else { ?>
<div class="small text-secondary">No documents made from it yet - counting started with this version of ITFlow. Agents start one from <strong>Document from template</strong> in a client's Files.</div>
<div class="small text-secondary">No documents made from it yet - counting started with this version of ITFlow. Agents start one from <strong>Document from Template</strong> in a client's Files.</div>
<?php } ?>
</div>
</div>

View File

@@ -111,10 +111,10 @@ $csrf = $_SESSION['csrf_token'];
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/reports/document_templates.php">
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>How they are used
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>How They Are Used
</a>
<a class="dropdown-item" href="starter_content.php">
<i class="fas fa-fw fa-seedling text-secondary me-2"></i>Starter document templates
<i class="fas fa-fw fa-seedling text-secondary me-2"></i>Starter Document Templates
</a>
</div>
</div>
@@ -209,14 +209,14 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php if (!$row['document_template_archived_at']) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/document_template/document_template_use.php?id=<?= $template_id ?>">
<i class="fas fa-fw fa-plus text-secondary me-2"></i>New document for a client
<i class="fas fa-fw fa-plus text-secondary me-2"></i>New Document for a Client
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/document_template/document_template_use_several.php?id=<?= $template_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>For several clients
<i class="fas fa-fw fa-copy text-secondary me-2"></i>For Several Clients
</a>
<?php } ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/document_template/document_template_required.php?id=<?= $template_id ?>">
<i class="fas fa-fw fa-clipboard-check text-secondary me-2"></i>Who should have one
<i class="fas fa-fw fa-clipboard-check text-secondary me-2"></i>Who Should Have One
</a>
<a class="dropdown-item" href="post.php?copy_document_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="A new template starting from this one">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
@@ -251,7 +251,7 @@ $csrf = $_SESSION['csrf_token'];
'archived' => $show_archived,
'views' => ['show'],
'view' => $show === 'required' ? ['title' => 'No required templates', 'text' => 'Set one up from its page - <strong>Who should have one</strong> - to see which clients are missing a document from it.'] : null,
'text' => 'A document ready to start a client\'s from - a runbook, a build sheet, a plan. Agents start one from <strong>Document from template</strong> in a client\'s Files. Maintenance > Starter Content has a set for an MSP.',
'text' => 'A document ready to start a client\'s from - a runbook, a build sheet, a plan. Agents start one from <strong>Document from Template</strong> in a client\'s Files. Maintenance > Starter Content has a set for an MSP.',
'actions' => [['label' => 'New Document Template', 'modal' => $add_url, 'size' => 'xl']],
];
require_once "../includes/filter_footer.php";

View File

@@ -56,7 +56,7 @@ $gs_client_count = intval(mysqli_fetch_row(mysqli_query($mysqli, "SELECT COUNT(*
</div>
<p class="small text-body-secondary">The website's domain and certificate are added too, to watch for renewals. The rest - their address, phones, rate and SLAs - is on the client once it's made, and Clients &gt; Import brings in a whole list from a CSV.</p>
<div class="d-flex flex-wrap align-items-center gap-3">
<button type="submit" name="add_client" value="1" class="btn btn-primary" data-gs-save><i class="fas fa-plus me-2"></i>Add the client</button>
<button type="submit" name="add_client" value="1" class="btn btn-primary" data-gs-save><i class="fas fa-plus me-2"></i>Add the Client</button>
<?php if (clientOnboardingReady()) { ?>
<a href="<?= clientOnboardingUrl() ?>" class="small" data-gs-onboard><i class="fas fa-route me-1"></i>Or onboard them step by step - their sites, people, agreement and more</a>
<?php } ?>
@@ -79,7 +79,7 @@ $gs_client_count = intval(mysqli_fetch_row(mysqli_query($mysqli, "SELECT COUNT(*
<?php if (count($gs_demo['loaded']) < $gs_demo['total']) { ?>
<form action="post.php" method="post" class="m-0">
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<button type="submit" name="load_demo_data" value="1" class="btn btn-outline-secondary" data-gs-demo-load><i class="fas fa-flask me-2"></i>Load the demo data</button>
<button type="submit" name="load_demo_data" value="1" class="btn btn-outline-secondary" data-gs-demo-load><i class="fas fa-flask me-2"></i>Load the Demo Data</button>
</form>
<?php } ?>
</div>

View File

@@ -43,7 +43,7 @@ $gs_cron_command = gettingStartedCronCommand();
<div class="small text-body-secondary mb-2">Someone switched it off in Maintenance &gt; Cron, and every job stops itself while it is off.</div>
<form action="post.php" method="post" class="m-0">
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<button type="submit" name="getting_started_cron_on" value="1" class="btn btn-primary"><i class="fas fa-toggle-on me-2"></i>Turn cron on</button>
<button type="submit" name="getting_started_cron_on" value="1" class="btn btn-primary"><i class="fas fa-toggle-on me-2"></i>Turn Cron On</button>
</form>
</div>
</li>

View File

@@ -99,6 +99,6 @@ $gs_parse = intval($gs_mail['config_ticket_email_parse'] ?? 0) === 1;
<div class="d-flex flex-wrap gap-2">
<button type="submit" name="getting_started_mail" value="continue" class="btn btn-primary" data-gs-save>Save and continue<i class="fas fa-arrow-right ms-2"></i></button>
<button type="submit" name="getting_started_mail" value="test" class="btn btn-outline-primary" data-gs-test><i class="fas fa-paper-plane me-2"></i>Save and send me a test</button>
<button type="submit" name="getting_started_mail" value="test" class="btn btn-outline-primary" data-gs-test><i class="fas fa-paper-plane me-2"></i>Save and Send Me a Test</button>
</div>
</form>

View File

@@ -18,7 +18,7 @@
<a href="/admin/getting_started.php" class="nav-link" data-nav-getting-started>
<i class="nav-icon fas fa-flag-checkered"></i>
<p>
Get started
Get Started
<?php if (!$nav_getting_started['finished']) { ?>
<span class="right badge text-light" data-bs-toggle="tooltip" title="Steps done or skipped"><?= $nav_getting_started['done'] ?>/<?= $nav_getting_started['total'] ?></span>
<?php } ?>

View File

@@ -83,7 +83,7 @@ $filtered_dates = isset($_GET['dtf']) && $_GET['dtf'] !== '' && $_GET['dtf'] !==
<div class="card-header bg-dark py-2">
<h3 class="card-title mt-2"><i class="fas fa-fw fa-inbox me-2"></i>Mail Queue</h3>
<div class="card-tools">
<a class="btn btn-outline-light" href="settings_mail.php?tab=tests" title="Send a test email"><i class="fas fa-vial"></i><span class="d-none d-lg-inline ms-2">Send a test</span></a>
<a class="btn btn-outline-light" href="settings_mail.php?tab=tests" title="Send a test email"><i class="fas fa-vial"></i><span class="d-none d-lg-inline ms-2">Send a Test</span></a>
</div>
</div>
@@ -114,7 +114,7 @@ $filtered_dates = isset($_GET['dtf']) && $_GET['dtf'] !== '' && $_GET['dtf'] !==
</button>
<div class="dropdown-menu dropdown-menu-end">
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_retry_emails" title="Failed or cancelled ones - from the start, at the next run">
<i class="fas fa-fw fa-redo-alt text-secondary me-2"></i>Retry now
<i class="fas fa-fw fa-redo-alt text-secondary me-2"></i>Retry Now
</button>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_cancel_emails" title="Ones still to be sent or tried again">
<i class="fas fa-fw fa-ban text-secondary me-2"></i>Cancel
@@ -228,7 +228,7 @@ $filtered_dates = isset($_GET['dtf']) && $_GET['dtf'] !== '' && $_GET['dtf'] !==
<div class="dropdown-menu">
<a class="dropdown-item ajax-modal" href="#" <?= $view ?>><i class="fas fa-fw fa-envelope-open text-secondary me-2"></i>View</a>
<?php if (mailQueueCan($row, 'retry')) { ?>
<a class="dropdown-item" href="post.php?retry_mail=<?= $email_id ?>&csrf_token=<?= $csrf ?>" title="From the start, at the next run" data-email-retry><i class="fas fa-fw fa-redo-alt text-secondary me-2"></i>Retry now</a>
<a class="dropdown-item" href="post.php?retry_mail=<?= $email_id ?>&csrf_token=<?= $csrf ?>" title="From the start, at the next run" data-email-retry><i class="fas fa-fw fa-redo-alt text-secondary me-2"></i>Retry Now</a>
<?php } ?>
<?php if (mailQueueCan($row, 'cancel')) { ?>
<a class="dropdown-item" href="post.php?cancel_mail=<?= $email_id ?>&csrf_token=<?= $csrf ?>" data-email-cancel><i class="fas fa-fw fa-ban text-secondary me-2"></i>Cancel</a>

View File

@@ -164,7 +164,7 @@ $lock = '<i class="fas fa-fw fa-lock text-body-secondary ms-1" title="Set by ' .
<div class="d-flex flex-wrap gap-2 mt-3">
<form action="post.php" method="post" class="d-inline">
<input type="hidden" name="csrf_token" value="<?= $csrf ?>">
<button type="submit" name="managed_checkin_now" class="btn btn-light"><i class="fas fa-fw fa-sync-alt me-2"></i>Check in now</button>
<button type="submit" name="managed_checkin_now" class="btn btn-light"><i class="fas fa-fw fa-sync-alt me-2"></i>Check In Now</button>
</form>
<?php if (!managedRequired()) { ?>
<form action="post.php" method="post" class="d-inline">

View File

@@ -164,7 +164,7 @@ $size = function ($mb) {
<div class="d-flex flex-wrap gap-2 mt-3" data-managed-actions>
<?php if ($can_act) { ?>
<a class="btn btn-primary" href="post.php?managed_support_sign_in=<?= $instance_id ?>&csrf_token=<?= $csrf ?>" target="_blank" rel="noopener" data-managed-support
title="Opens it in a new tab, signed in as its support user - for two hours"><i class="fas fa-fw fa-sign-in-alt me-2"></i>Sign in as support</a>
title="Opens it in a new tab, signed in as its support user - for two hours"><i class="fas fa-fw fa-sign-in-alt me-2"></i>Sign In as Support</a>
<?php if (!empty($update['available']) && !$updating) { ?>
<a class="btn btn-outline-primary confirm-link" href="post.php?managed_command=update_now&id=<?= $instance_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Update <?= $name ?>?" data-confirm-text="It updates its files and then its database, starting at its next check-in. Make sure it has a backup." data-confirm-button="Update" data-confirm-icon="question">
@@ -177,7 +177,7 @@ $size = function ($mb) {
<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>
<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>
<div class="dropdown-divider"></div>
<?php } ?>
<?php foreach (MANAGED_MODES as $mode_key => $mode_label) {
@@ -197,7 +197,7 @@ $size = function ($mb) {
<div class="dropdown-divider"></div>
<a class="dropdown-item confirm-link" href="post.php?managed_instance_new_code=<?= $instance_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Make a new connection code?" data-confirm-text="<?= $connected ? 'For moving it to a new server, or connecting a restored copy. Whatever connects with the new code takes the place of what\'s connected now.' : 'The code made before stops working.' ?>" data-confirm-button="Make a code">
<i class="fas fa-fw fa-key text-secondary me-2"></i>New connection code
<i class="fas fa-fw fa-key text-secondary me-2"></i>New Connection Code
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger confirm-link" href="post.php?remove_managed_instance=<?= $instance_id ?>&csrf_token=<?= $csrf ?>"
@@ -250,10 +250,10 @@ $size = function ($mb) {
</div>
<?php } elseif (!empty($row['managed_instance_enroll_expires_at']) && strtotime($row['managed_instance_enroll_expires_at']) > time()) { ?>
<p class="small text-body-secondary mb-2">The code was shown when it was made - only a fingerprint of it is kept here. If it's lost, make a new one; the old one stops working.</p>
<a class="btn btn-sm btn-outline-primary" href="post.php?managed_instance_new_code=<?= $instance_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-key me-2"></i>New connection code</a>
<a class="btn btn-sm btn-outline-primary" href="post.php?managed_instance_new_code=<?= $instance_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-key me-2"></i>New Connection Code</a>
<?php } else { ?>
<p class="small text-body-secondary mb-2">There's no code that works - <?= $row['managed_instance_enroll_expires_at'] ? 'the last one ran out' : 'make one to connect it' ?>.</p>
<a class="btn btn-sm btn-primary" href="post.php?managed_instance_new_code=<?= $instance_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-key me-2"></i>Make a connection code</a>
<a class="btn btn-sm btn-primary" href="post.php?managed_instance_new_code=<?= $instance_id ?>&csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-key me-2"></i>Make a Connection Code</a>
<?php } ?>
<p class="small text-body-secondary mt-3 mb-0">
<i class="fas fa-fw fa-info-circle me-1"></i>It checks in with this ITFlow at <strong><?= escapeHtml(managedRequestBaseUrl()) ?></strong>, so that has to be reachable from where it is.

View File

@@ -183,10 +183,10 @@ $csrf = $_SESSION['csrf_token'];
<?php if (!$show_removed) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/managed_instance/managed_instance_form.php?id=<?= $instance_id ?>"><i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit</a>
<?php if ($health['state'] !== 'pending' && $url !== '') { ?>
<a class="dropdown-item" href="post.php?managed_support_sign_in=<?= $instance_id ?>&csrf_token=<?= $csrf ?>" target="_blank" rel="noopener"><i class="fas fa-fw fa-sign-in-alt text-secondary me-2"></i>Sign in as support</a>
<a class="dropdown-item" href="post.php?managed_support_sign_in=<?= $instance_id ?>&csrf_token=<?= $csrf ?>" target="_blank" rel="noopener"><i class="fas fa-fw fa-sign-in-alt text-secondary me-2"></i>Sign In as Support</a>
<?php if (!empty($update['available'])) { ?>
<a class="dropdown-item confirm-link" href="post.php?managed_command=update_now&id=<?= $instance_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Update <?= $name ?>?" data-confirm-text="It updates its files and then its database at its next check-in. Make sure it has a backup." data-confirm-button="Update"><i class="fas fa-fw fa-download text-secondary me-2"></i>Update now</a>
data-confirm-title="Update <?= $name ?>?" data-confirm-text="It updates its files and then its database at its next check-in. Make sure it has a backup." data-confirm-button="Update"><i class="fas fa-fw fa-download text-secondary me-2"></i>Update Now</a>
<?php } ?>
<?php } ?>
<div class="dropdown-divider"></div>

View File

@@ -128,7 +128,7 @@ ob_start();
</div>
<div class="d-flex align-items-start gap-2">
<button type="button" class="btn btn-outline-secondary btn-sm text-nowrap" data-ai-try title="Sends it a one-line request, as it is here - recorded in AI Usage as a test"><i class="fas fa-fw fa-paper-plane me-1"></i>Try it</button>
<button type="button" class="btn btn-outline-secondary btn-sm text-nowrap" data-ai-try title="Sends it a one-line request, as it is here - recorded in AI Usage as a test"><i class="fas fa-fw fa-paper-plane me-1"></i>Try It</button>
<div class="small pt-1 min-w-0" data-ai-try-result></div>
</div>

View File

@@ -107,7 +107,7 @@ if (!$row) { ?>
</div>
<div class="modal-footer">
<a class="btn btn-outline-secondary me-auto" href="/admin/audit_logs.php?type=<?= urlencode('API Key') ?>&amp;entity=<?= $api_key_id ?>"><i class="fas fa-fw fa-history me-2"></i>Its history</a>
<a class="btn btn-outline-secondary me-auto" href="/admin/audit_logs.php?type=<?= urlencode('API Key') ?>&amp;entity=<?= $api_key_id ?>"><i class="fas fa-fw fa-history me-2"></i>Its History</a>
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/api/api_key_edit.php?id=<?= $api_key_id ?>"><i class="fas fa-fw fa-edit me-2"></i>Edit</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Close</button>
</div>

View File

@@ -13,7 +13,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-key me-2"></i>Export the master key</h5>
<h5 class="modal-title"><i class="fas fa-fw fa-key me-2"></i>Export the Master Key</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off">
@@ -36,7 +36,7 @@ ob_start();
</div>
</div>
<div class="modal-footer">
<button type="submit" name="backup_master_key" class="btn btn-primary text-bold"><i class="fas fa-fw fa-key me-2"></i>Show the master key</button>
<button type="submit" name="backup_master_key" class="btn btn-primary text-bold"><i class="fas fa-fw fa-key me-2"></i>Show the Master Key</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
</div>
</form>

View File

@@ -24,7 +24,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-undo me-2"></i>Restore a backup</h5>
<h5 class="modal-title"><i class="fas fa-fw fa-undo me-2"></i>Restore a Backup</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off" data-backup-restore>

View File

@@ -17,7 +17,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-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

@@ -13,7 +13,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-upload me-2"></i>Import canned responses</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-file-upload me-2"></i>Import Canned Responses</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" enctype="multipart/form-data" autocomplete="off">

View File

@@ -12,7 +12,7 @@ ob_start();
if (!$template) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-alt me-2"></i>Document template</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-file-alt me-2"></i>Document Template</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That document template is gone - it may have been deleted.</div>

View File

@@ -16,7 +16,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-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

@@ -13,7 +13,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-upload me-2"></i>Import document templates</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-file-upload me-2"></i>Import Document Templates</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" enctype="multipart/form-data" autocomplete="off">

View File

@@ -17,7 +17,7 @@ ob_start();
if (!$template) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who should have one</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who Should Have One</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That document template no longer exists.</div>
@@ -28,7 +28,7 @@ if (!$template) { ?>
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who should have one <small class="ms-1 opacity-75"><?= escapeHtml($template['document_template_name']) ?></small></h5>
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who Should Have One <small class="ms-1 opacity-75"><?= escapeHtml($template['document_template_name']) ?></small></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

@@ -19,7 +19,7 @@ ob_start();
if (!$template || $template['document_template_archived_at']) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-alt me-2"></i>New document</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-file-alt me-2"></i>New Document</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That document template is gone or archived.</div>

View File

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

View File

@@ -13,7 +13,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-users me-2"></i>Company default</h5>
<h5 class="modal-title"><i class="fas fa-fw fa-users me-2"></i>Company Default</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

@@ -74,7 +74,7 @@ ob_start();
<div class="form-text">A rate on a date that already has one replaces it.</div>
</div>
<div class="modal-footer">
<button type="submit" name="add_labor_cost_rate" class="btn btn-primary text-bold"><i class="fas fa-fw fa-check me-2"></i>Save the rate</button>
<button type="submit" name="add_labor_cost_rate" class="btn btn-primary text-bold"><i class="fas fa-fw fa-check me-2"></i>Save the Rate</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
</div>
</form>

View File

@@ -134,10 +134,10 @@ if (!$row) { ?>
data-confirm-title="Delete this email?" data-confirm-text="<?= $status === 3 ? 'It has been sent - this only takes it off the list.' : 'It won\'t be sent.' ?>" data-confirm-button="Delete"><i class="fas fa-fw fa-trash me-2"></i>Delete</a>
<?php } ?>
<?php if (mailQueueCan($row, 'retry')) { ?>
<a class="btn btn-primary" href="post.php?retry_mail=<?= intval($row['email_id']) ?>&csrf_token=<?= $csrf ?>" title="From the start, at the next run" data-email-retry><i class="fas fa-fw fa-redo-alt me-2"></i>Retry now</a>
<a class="btn btn-primary" href="post.php?retry_mail=<?= intval($row['email_id']) ?>&csrf_token=<?= $csrf ?>" title="From the start, at the next run" data-email-retry><i class="fas fa-fw fa-redo-alt me-2"></i>Retry Now</a>
<?php } ?>
<?php if (mailQueueCan($row, 'cancel')) { ?>
<a class="btn btn-outline-secondary" href="post.php?cancel_mail=<?= intval($row['email_id']) ?>&csrf_token=<?= $csrf ?>" data-email-cancel><i class="fas fa-fw fa-ban me-2"></i>Cancel it</a>
<a class="btn btn-outline-secondary" href="post.php?cancel_mail=<?= intval($row['email_id']) ?>&csrf_token=<?= $csrf ?>" data-email-cancel><i class="fas fa-fw fa-ban me-2"></i>Cancel It</a>
<?php } ?>
<button type="button" class="btn btn-light" data-bs-dismiss="modal">Close</button>
</div>

View File

@@ -15,7 +15,7 @@ ob_start();
if (!$portal_user) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-user-circle me-2"></i>Portal access</h5>
<h5 class="modal-title"><i class="fas fa-fw fa-user-circle me-2"></i>Portal Access</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That portal user is gone - their contact may have been deleted.</div>
@@ -68,7 +68,7 @@ if (!$portal_user) { ?>
</div>
<div class="modal-footer">
<?php if (!$archived) { ?>
<button type="submit" name="portal_user_access_on" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Turn on</button>
<button type="submit" name="portal_user_access_on" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Turn On</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

@@ -26,7 +26,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-life-ring me-2"></i>Add ticket templates <small class="ms-1 opacity-75"><?= escapeHtml($name) ?></small></h5>
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-life-ring me-2"></i>Add Ticket Templates <small class="ms-1 opacity-75"><?= escapeHtml($name) ?></small></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

@@ -56,7 +56,7 @@ ob_start();
<div class="small text-secondary"><i class="fas fa-fw fa-stopwatch me-1"></i>A day already on the list is left as it is, name and all. Adding them works the targets out again on every ticket with an SLA that isn't closed yet.</div>
</div>
<div class="modal-footer">
<button type="submit" name="generate_holidays" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Add holidays</button>
<button type="submit" name="generate_holidays" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Add Holidays</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
</div>
</form>

View File

@@ -25,7 +25,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-ban me-2"></i>Opted out and blocked</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-ban me-2"></i>Opted Out and Blocked</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body p-0">
@@ -69,7 +69,7 @@ ob_start();
<?php if ($row['sms_number_opted_out_at']) { ?>
<a class="btn btn-sm btn-light border confirm-link" href="post.php?sms_number_opt_in=<?= urlencode($number) ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Text <?= escapeHtml(smsNumberText($number)) ?> again?" data-confirm-button="Opt back in"
data-confirm-text="Only when they've asked for texts again - by phone, email or in person. Otherwise they text START themselves.">Opt back in</a>
data-confirm-text="Only when they've asked for texts again - by phone, email or in person. Otherwise they text START themselves.">Opt Back In</a>
<?php } ?>
<?php if ($row['sms_number_blocked_at']) { ?>
<a class="btn btn-sm btn-light border" href="post.php?sms_number_unblock=<?= urlencode($number) ?>&csrf_token=<?= $csrf ?>">Unblock</a>

View File

@@ -18,7 +18,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-vial me-2"></i>Send a test text</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-vial me-2"></i>Send a Test Text</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

@@ -18,7 +18,7 @@ ob_start();
if (!$template) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-invoice-dollar me-2"></i>Bill seats</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-file-invoice-dollar me-2"></i>Bill Seats</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That license template no longer exists.</div>
@@ -38,7 +38,7 @@ if (!$template) { ?>
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-file-invoice-dollar me-2"></i>Bill seats <small class="ms-1 opacity-75"><?= escapeHtml($template['software_template_name']) ?></small></h5>
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-file-invoice-dollar me-2"></i>Bill Seats <small class="ms-1 opacity-75"><?= escapeHtml($template['software_template_name']) ?></small></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off">
@@ -50,7 +50,7 @@ if (!$template) { ?>
<div class="text-center text-secondary py-4">
<?= $template['product_name'] !== null ? 'The product it is sold as, <strong>' . escapeHtml($template['product_name']) . '</strong>, is archived.' : 'It isn\'t sold as a product yet.' ?>
Pick the product it is sold as on the template, then bill its licenses from here.
<div class="mt-3"><button type="button" class="btn btn-sm btn-outline-primary ajax-modal" data-modal-size="lg" data-modal-url="modals/software_template/software_template_edit.php?id=<?= $software_template_id ?>"><i class="fas fa-edit me-1"></i>Edit the template</button></div>
<div class="mt-3"><button type="button" class="btn btn-sm btn-outline-primary ajax-modal" data-modal-size="lg" data-modal-url="modals/software_template/software_template_edit.php?id=<?= $software_template_id ?>"><i class="fas fa-edit me-1"></i>Edit the Template</button></div>
</div>
<?php } elseif (!$licenses) { ?>
<div class="text-center text-secondary py-4"><i class="fas fa-check text-success me-1"></i><?= $picked ? 'Every one of them is billed already.' : 'No licenses made from it yet.' ?></div>
@@ -125,7 +125,7 @@ if (!$template) { ?>
</div>
<div class="modal-footer">
<?php if ($sellable && $licenses) { ?>
<button type="submit" name="bill_software_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Add to recurring invoices</button>
<button type="submit" name="bill_software_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Add to Recurring Invoices</button>
<?php } ?>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i><?= $sellable && $licenses ? 'Cancel' : 'Close' ?></button>
</div>

View File

@@ -12,7 +12,7 @@ ob_start();
if (!$template) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-cube me-2"></i>License template</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-cube me-2"></i>License Template</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That license template is gone - it may have been deleted.</div>

View File

@@ -16,7 +16,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-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

@@ -13,7 +13,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-upload me-2"></i>Import license templates</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-file-upload me-2"></i>Import License Templates</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" enctype="multipart/form-data" autocomplete="off">

View File

@@ -16,7 +16,7 @@ ob_start();
if (!$template) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who should have it</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who Should Have It</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That license template no longer exists.</div>
@@ -27,7 +27,7 @@ if (!$template) { ?>
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who should have it <small class="ms-1 opacity-75"><?= escapeHtml($template['software_template_name']) ?></small></h5>
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who Should Have It <small class="ms-1 opacity-75"><?= escapeHtml($template['software_template_name']) ?></small></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

@@ -18,7 +18,7 @@ ob_start();
if (!$template) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-balance-scale me-2"></i>True up seats</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-balance-scale me-2"></i>True Up Seats</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That license template no longer exists.</div>
@@ -32,7 +32,7 @@ if (!$template) { ?>
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-balance-scale me-2"></i>True up seats <small class="ms-1 opacity-75"><?= escapeHtml($template['software_template_name']) ?></small></h5>
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-balance-scale me-2"></i>True Up Seats <small class="ms-1 opacity-75"><?= escapeHtml($template['software_template_name']) ?></small></h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" autocomplete="off">
@@ -80,7 +80,7 @@ if (!$template) { ?>
</div>
<div class="modal-footer">
<?php if ($licenses) { ?>
<button type="submit" name="true_up_software_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>True up</button>
<button type="submit" name="true_up_software_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>True Up</button>
<?php } ?>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i><?= $licenses ? 'Cancel' : 'Close' ?></button>
</div>

View File

@@ -19,7 +19,7 @@ ob_start();
if (!$template || $template['software_template_archived_at']) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-cube me-2"></i>New license</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-cube me-2"></i>New License</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That license template is gone or archived.</div>

View File

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

View File

@@ -51,7 +51,7 @@ ob_start();
<div class="modal-footer">
<?php if ($items) { ?>
<button type="submit" name="clear_starter_unused" value="<?= escapeHtml($pack) ?>" class="btn btn-danger text-bold" data-starter-add>
<i class="fas fa-fw fa-archive me-2"></i>Archive them
<i class="fas fa-fw fa-archive me-2"></i>Archive Them
</button>
<?php } ?>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>

View File

@@ -99,7 +99,7 @@ $tax_part_row = function ($key, array $part = []) {
</div>
<template data-tax-part-template><?= $tax_part_row('__KEY__') ?></template>
<div class="d-flex flex-wrap align-items-center gap-2">
<button type="button" class="btn btn-outline-secondary btn-sm" data-tax-add-part><i class="fas fa-plus me-1"></i>Add a part</button>
<button type="button" class="btn btn-outline-secondary btn-sm" data-tax-add-part><i class="fas fa-plus me-1"></i>Add a Part</button>
<span class="ms-auto">Comes to <strong data-tax-total><?= $t ? taxPercentText($t['tax_percent']) : '0' ?>%</strong></span>
</div>
<small class="text-secondary d-block mt-1">Each part is shown on its own on invoices, with its registration number - or the tax's. <em>On top</em> charges a part on the line plus the parts above it. Name a part the same as another tax's (PA Sales Tax at 6%) and Tax Collected adds them up together.</small>

View File

@@ -66,7 +66,7 @@ ob_start();
<div data-mail-try-result></div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary text-bold"><i class="fas fa-vial me-2"></i>Try it</button>
<button type="submit" class="btn btn-primary text-bold"><i class="fas fa-vial me-2"></i>Try It</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Close</button>
</div>
</form>

View File

@@ -82,7 +82,7 @@ if (!$ticket_status || ticketStatusIsBuiltIn($ticket_status['ticket_status_id'])
<?php if ($delete) { ?>
<button type="submit" name="delete_ticket_status" class="btn btn-danger text-bold"><i class="fas fa-trash me-2"></i>Delete</button>
<?php } else { ?>
<button type="submit" name="switch_off_ticket_status" class="btn btn-primary text-bold"><i class="fas fa-power-off me-2"></i>Switch off</button>
<button type="submit" name="switch_off_ticket_status" class="btn btn-primary text-bold"><i class="fas fa-power-off me-2"></i>Switch Off</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

@@ -15,7 +15,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-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

@@ -13,7 +13,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-upload me-2"></i>Import ticket templates</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-file-upload me-2"></i>Import Ticket Templates</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<form action="post.php" method="post" enctype="multipart/form-data" autocomplete="off">

View File

@@ -116,9 +116,9 @@ ob_start();
</div>
<div class="modal-footer">
<a class="btn btn-outline-secondary me-auto" href="audit_logs.php?user=<?= $user_id ?>"><i class="fas fa-history me-2"></i>Audit log</a>
<a class="btn btn-outline-secondary me-auto" href="audit_logs.php?user=<?= $user_id ?>"><i class="fas fa-history me-2"></i>Audit Log</a>
<?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>
<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 me-2"></i>Restore</button>
<?php } else { ?>

View File

@@ -14,7 +14,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fas fa-fw fa-skull-crossbones me-2"></i>Incident response</h5>
<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">

View File

@@ -36,7 +36,7 @@ ob_start();
<div class="form-text">The only active admin keeps an admin role, so there is always someone to run ITFlow.</div>
</div>
<div class="modal-footer">
<button type="submit" name="bulk_role_users" class="btn btn-primary text-bold" <?= $count ? '' : 'disabled' ?>><i class="fas fa-check me-2"></i>Set role</button>
<button type="submit" name="bulk_role_users" class="btn btn-primary text-bold" <?= $count ? '' : 'disabled' ?>><i class="fas fa-check me-2"></i>Set Role</button>
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
</div>
</form>

View File

@@ -219,8 +219,8 @@ $value = function ($key) use ($form) {
</div>
<div class="btn-group btn-group-sm" role="group" aria-label="Set every client shown">
<button type="button" class="btn btn-outline-secondary" data-user-access-all="" title="Every client shown">Clear</button>
<button type="button" class="btn btn-outline-success" data-user-access-all="allow" title="Every client shown">All only</button>
<button type="button" class="btn btn-outline-danger" data-user-access-all="deny" title="Every client shown">All never</button>
<button type="button" class="btn btn-outline-success" data-user-access-all="allow" title="Every client shown">All Only</button>
<button type="button" class="btn btn-outline-danger" data-user-access-all="deny" title="Every client shown">All Never</button>
</div>
<span class="small fw-semibold ms-auto" data-user-access-summary></span>
</div>

View File

@@ -69,7 +69,7 @@ ob_start();
</div>
<div class="modal-footer">
<?php if ($ready) { ?>
<button type="submit" name="invite_users_bulk" class="btn btn-primary text-bold"><i class="fas fa-paper-plane me-2"></i>Send invites</button>
<button type="submit" name="invite_users_bulk" class="btn btn-primary text-bold"><i class="fas fa-paper-plane me-2"></i>Send Invites</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

@@ -14,7 +14,7 @@ ob_start();
if (!$template) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-building me-2"></i>Vendor template</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-building me-2"></i>Vendor Template</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That vendor template is gone - it may have been deleted.</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-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

@@ -13,7 +13,7 @@ ob_start();
?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-file-upload me-2"></i>Import vendor templates</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-file-upload me-2"></i>Import 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" enctype="multipart/form-data" autocomplete="off" data-vendor-template-import>

View File

@@ -16,7 +16,7 @@ ob_start();
if (!$template) { ?>
<div class="modal-header bg-dark">
<h5 class="modal-title"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who should have it</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who Should Have It</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body text-center text-secondary py-5">That vendor template no longer exists.</div>
@@ -27,7 +27,7 @@ if (!$template) { ?>
?>
<div class="modal-header bg-dark">
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who should have it <small class="ms-1 opacity-75"><?= escapeHtml($template['vendor_template_name']) ?></small></h5>
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-clipboard-check me-2"></i>Who Should Have It <small class="ms-1 opacity-75"><?= escapeHtml($template['vendor_template_name']) ?></small></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-required>

View File

@@ -192,7 +192,7 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php if ($used['total']) { ?>
<a class="dropdown-item" href="<?= escapeHtml($records_url) ?>">
<i class="fas fa-fw fa-exchange-alt text-secondary me-2"></i>See its transactions
<i class="fas fa-fw fa-exchange-alt text-secondary me-2"></i>See Its Transactions
</a>
<?php } ?>
<?php if (!$archived) {

View File

@@ -188,21 +188,21 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit
</a>
<a class="dropdown-item" href="post.php?check_payment_provider_connection=<?= $provider_id ?>&csrf_token=<?= $csrf ?>" title="Whether <?= escapeHtml($name) ?> still takes its secret key, and whose account it is">
<i class="fas fa-fw fa-plug text-secondary me-2"></i>Check connection
<i class="fas fa-fw fa-plug text-secondary me-2"></i>Check Connection
</a>
<?php if ($fees_on && $activity['waiting']) { ?>
<a class="dropdown-item" href="post.php?record_payment_provider_fees=<?= $provider_id ?>&csrf_token=<?= $csrf ?>" title="What the Payment Provider Fees job does every few minutes - for the card payments whose fee is still to record">
<i class="fas fa-fw fa-receipt text-secondary me-2"></i>Record fees now
<i class="fas fa-fw fa-receipt text-secondary me-2"></i>Record Fees Now
</a>
<?php } ?>
<?php if ($on) { ?>
<a class="dropdown-item confirm-link" href="post.php?turn_payment_provider_off=<?= $provider_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Turn <?= escapeHtml($name) ?> off?" data-confirm-text="Clients won't be able to pay by card, and autopay with its saved cards is skipped until it is on again. Its cards are kept." data-confirm-button="Turn off">
<i class="fas fa-fw fa-toggle-off text-secondary me-2"></i>Turn off
<i class="fas fa-fw fa-toggle-off text-secondary me-2"></i>Turn Off
</a>
<?php } else { ?>
<a class="dropdown-item" href="post.php?turn_payment_provider_on=<?= $provider_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-toggle-on text-secondary me-2"></i>Turn on
<i class="fas fa-fw fa-toggle-on text-secondary me-2"></i>Turn On
</a>
<?php } ?>
<div class="dropdown-divider"></div>

View File

@@ -16,7 +16,7 @@ $template = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT project_template_na
if (!$template) { ?>
<div class="text-center mt-5">
<h1 class="h3 text-secondary">Nothing to see here</h1>
<a class="btn btn-secondary mt-3" href="project_templates.php"><i class="fa fa-fw fa-arrow-left me-2"></i>Project templates</a>
<a class="btn btn-secondary mt-3" href="project_templates.php"><i class="fa fa-fw fa-arrow-left me-2"></i>Project Templates</a>
</div>
<?php
require_once "../includes/footer.php";
@@ -69,7 +69,7 @@ $archived = !empty($template['project_template_archived_at']);
</div>
<div class="d-flex flex-wrap gap-2 d-print-none">
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/project_template/project_template_ticket_template_add.php?project_template_id=<?= $project_template_id ?>">
<i class="fas fa-plus me-2"></i>Add ticket templates
<i class="fas fa-plus me-2"></i>Add Ticket Templates
</button>
<button type="button" class="btn btn-outline-secondary ajax-modal" data-modal-url="modals/project_template/project_template_edit.php?project_template_id=<?= $project_template_id ?>">
<i class="fas fa-edit me-2"></i>Edit

View File

@@ -107,13 +107,13 @@ $devices_in = intval(mysqli_fetch_row(mysqli_query($mysqli, "SELECT COUNT(*) FRO
<a class="btn btn-outline-light me-1" href="<?= escapeHtml($dashboard) ?>" target="_blank" rel="noopener noreferrer" title="<?= escapeHtml($name) ?>'s dashboard"><i class="fas fa-fw fa-external-link-alt"></i><span class="d-none d-lg-inline ms-2">Open <?= escapeHtml($short) ?></span></a>
<?php } ?>
<?php if ($usable) { ?>
<a class="btn btn-primary" href="post.php?sync_rmm=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>" data-rmm-sync title="Bring in the linked clients' devices now"><i class="fas fa-fw fa-sync-alt"></i><span class="d-none d-lg-inline ms-2">Sync now</span></a>
<a class="btn btn-primary" href="post.php?sync_rmm=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>" data-rmm-sync title="Bring in the linked clients' devices now"><i class="fas fa-fw fa-sync-alt"></i><span class="d-none d-lg-inline ms-2">Sync Now</span></a>
<?php } ?>
<div class="dropdown dropstart d-inline-block ms-1">
<button class="btn btn-outline-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $edit_url ?>"><i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit</a>
<a class="dropdown-item" href="post.php?test_rmm_provider=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-vial text-secondary me-2"></i>Test the connection</a>
<a class="dropdown-item" href="post.php?test_rmm_provider=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-vial text-secondary me-2"></i>Test the Connection</a>
<?php if ($suggestions) { ?>
<a class="dropdown-item" href="post.php?link_rmm_suggested=all&amp;provider_id=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>" data-rmm-sync><i class="fas fa-fw fa-link text-secondary me-2"></i>Link the <?= count($suggestions) ?> suggested</a>
<?php } ?>
@@ -121,10 +121,10 @@ $devices_in = intval(mysqli_fetch_row(mysqli_query($mysqli, "SELECT COUNT(*) FRO
<a class="dropdown-item confirm-link" href="post.php?turn_rmm_provider_off=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>"
data-confirm-title="Turn <?= escapeHtml($name) ?> off?" data-confirm-button="Turn off"
data-confirm-text="Nothing more is brought in from it. Assets keep what it last said about them until it is on again.">
<i class="fas fa-fw fa-toggle-off text-secondary me-2"></i>Turn off
<i class="fas fa-fw fa-toggle-off text-secondary me-2"></i>Turn Off
</a>
<?php } else { ?>
<a class="dropdown-item" href="post.php?turn_rmm_provider_on=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-toggle-on text-secondary me-2"></i>Turn on</a>
<a class="dropdown-item" href="post.php?turn_rmm_provider_on=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-toggle-on text-secondary me-2"></i>Turn On</a>
<?php } ?>
</div>
</div>
@@ -281,7 +281,7 @@ $devices_in = intval(mysqli_fetch_row(mysqli_query($mysqli, "SELECT COUNT(*) FRO
'icon' => $kind['icon'],
'title' => escapeHtml($show === 'unlinked' ? "Every $short client is linked" : "No $short clients yet"),
'text' => $show === 'unlinked' ? '' : escapeHtml($provider['rmm_provider_sync_at'] ? "$name has no clients this key can see." : "Sync now asks $name for its clients."),
'actions' => $usable && !$provider['rmm_provider_sync_at'] ? [['label' => 'Sync now', 'href' => "post.php?sync_rmm=$provider_id&csrf_token=$csrf", 'icon' => 'fa-sync-alt']] : [],
'actions' => $usable && !$provider['rmm_provider_sync_at'] ? [['label' => 'Sync Now', 'href' => "post.php?sync_rmm=$provider_id&csrf_token=$csrf", 'icon' => 'fa-sync-alt']] : [],
'filtered' => $q !== '',
];
?>

View File

@@ -197,10 +197,10 @@ $csrf = $_SESSION['csrf_token'];
<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 } ?>
<?php if ($usable) { ?>
<a class="dropdown-item" href="post.php?sync_rmm=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>" data-rmm-sync title="Bring in its linked clients' devices now"><i class="fas fa-fw fa-sync-alt text-secondary me-2"></i>Sync now</a>
<a class="dropdown-item" href="post.php?sync_rmm=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>" data-rmm-sync title="Bring in its linked clients' devices now"><i class="fas fa-fw fa-sync-alt text-secondary me-2"></i>Sync Now</a>
<?php } ?>
<?php if ($kind) { ?>
<a class="dropdown-item" href="post.php?test_rmm_provider=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-vial text-secondary me-2"></i>Test the connection</a>
<a class="dropdown-item" href="post.php?test_rmm_provider=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-vial text-secondary me-2"></i>Test the Connection</a>
<?php } ?>
<?php if ($dashboard !== '') { ?>
<a class="dropdown-item" href="<?= escapeHtml($dashboard) ?>" target="_blank" rel="noopener noreferrer"><i class="fas fa-fw fa-external-link-alt text-secondary me-2"></i>Open <?= escapeHtml($kind['short']) ?></a>
@@ -209,10 +209,10 @@ $csrf = $_SESSION['csrf_token'];
<a class="dropdown-item confirm-link" href="post.php?turn_rmm_provider_off=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>"
data-confirm-title="Turn <?= escapeHtml($name) ?> off?" data-confirm-button="Turn off"
data-confirm-text="Nothing more is brought in from it. Assets keep what it last said about them until it is on again.">
<i class="fas fa-fw fa-toggle-off text-secondary me-2"></i>Turn off
<i class="fas fa-fw fa-toggle-off text-secondary me-2"></i>Turn Off
</a>
<?php } else { ?>
<a class="dropdown-item" href="post.php?turn_rmm_provider_on=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-toggle-on text-secondary me-2"></i>Turn on</a>
<a class="dropdown-item" href="post.php?turn_rmm_provider_on=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>"><i class="fas fa-fw fa-toggle-on text-secondary me-2"></i>Turn On</a>
<?php } ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger confirm-link" href="post.php?delete_rmm_provider=<?= $provider_id ?>&amp;csrf_token=<?= $csrf ?>"

View File

@@ -159,7 +159,7 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php if ($agent_count) { ?>
<a class="dropdown-item" href="users.php?role=<?= $role_id ?>">
<i class="fas fa-fw fa-users text-secondary me-2"></i>Its agents
<i class="fas fa-fw fa-users text-secondary me-2"></i>Its Agents
</a>
<?php } ?>
<div class="dropdown-divider"></div>

View File

@@ -224,7 +224,7 @@ $page_title = 'Saved Cards';
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item" href="?<?= escapeHtml(http_build_query(['client' => $client_id])) ?>">
<i class="fas fa-fw fa-filter text-secondary me-2"></i>This client's cards
<i class="fas fa-fw fa-filter text-secondary me-2"></i>This Client's Cards
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger confirm-link" href="post.php?delete_saved_payment=<?= $saved_id ?>&csrf_token=<?= $csrf ?>"

View File

@@ -47,7 +47,7 @@ echo settingsPageStart('company');
<?= settingsSectionStart('company', 'Your company', 'As it is named on invoices, quotes and the emails ITFlow sends.') ?>
<?= settingsInput('company_name', $company['company_name'], ['icon' => 'fa-building', 'required' => true, 'maxlength' => 200, 'placeholder' => 'Company name', 'autocomplete' => 'organization']) ?>
<?= settingsInput('company_tax_id', $company['company_tax_id'], ['icon' => 'fa-balance-scale', 'maxlength' => 200, 'placeholder' => 'Tax ID',
'help' => 'Shown on invoices when Invoices and billing says so.']) ?>
'help' => 'Shown on invoices when Invoices and Billing says so.']) ?>
<?= settingsSectionEnd() ?>
<?= settingsSectionStart('address', 'Address', 'Where your company is - on invoices, and the country phone numbers start from.') ?>
@@ -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 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

@@ -189,7 +189,7 @@ $retention_field = function ($name, $forever_name, $days, $label, $help) {
</div>
<?= settingsSectionEnd() ?>
<?= settingsSaveBar('edit_log_settings', 'Save', '<button type="submit" name="test_log_forward" class="btn btn-outline-secondary" title="Saves, then sends one test message to the server"><i class="fas fa-paper-plane me-2"></i>Save and send a test</button>') ?>
<?= settingsSaveBar('edit_log_settings', 'Save', '<button type="submit" name="test_log_forward" class="btn btn-outline-secondary" title="Saves, then sends one test message to the server"><i class="fas fa-paper-plane me-2"></i>Save and Send a Test</button>') ?>
</div>
</div>
</form>

View File

@@ -474,7 +474,7 @@ if (!$config_module_enable_ticketing) {
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<input type="hidden" name="email" value="<?= escapeHtml($preview_first) ?>" data-preview-key>
<button type="submit" name="send_email_preview" class="btn btn-sm btn-primary" <?= emailReady() ? '' : 'disabled title="Set up Sending first"' ?>>
<i class="fas fa-fw fa-paper-plane me-1"></i>Send me a copy
<i class="fas fa-fw fa-paper-plane me-1"></i>Send Me a Copy
</button>
</form>
</div>

View File

@@ -47,7 +47,7 @@ echo settingsPageStart('notification');
'help' => 'Addresses, separated by commas. Empty, every admin gets it.']) ?>
</div>
<div class="d-flex flex-wrap align-items-center gap-2 mt-2">
<button type="submit" form="weeklySummaryNow" class="btn btn-sm btn-outline-secondary" <?= empty($config_smtp_provider) ? 'disabled' : '' ?> data-weekly-now><i class="fas fa-paper-plane me-2"></i>Send me one now</button>
<button type="submit" form="weeklySummaryNow" class="btn btn-sm btn-outline-secondary" <?= empty($config_smtp_provider) ? 'disabled' : '' ?> data-weekly-now><i class="fas fa-paper-plane me-2"></i>Send Me One Now</button>
<span class="small text-body-secondary">The last seven days, to <?= escapeHtml($session_email ?? 'you') ?> - to see what it looks like.</span>
</div>
<?= settingsSectionEnd() ?>

View File

@@ -74,7 +74,7 @@ echo settingsPageStart('theme');
<?= settingsInput('favicon', '', ['icon' => 'fa-image', 'type' => 'file', 'label' => $own_favicon ? 'Replace it' : 'Use your own', 'accept' => '.ico,image/x-icon,image/vnd.microsoft.icon',
'data' => ['settings-preview' => 'settingsFaviconPreview'], 'help' => 'An .ico file, up to 1 MB.']) ?>
<?php if ($own_favicon) { ?>
<a href="post.php?reset_favicon&csrf_token=<?= $_SESSION['csrf_token'] ?>" class="btn btn-sm btn-outline-secondary mt-2 confirm-link" data-settings-reset-favicon><i class="fas fa-redo-alt me-2"></i>Back to ITFlow's icon</a>
<a href="post.php?reset_favicon&csrf_token=<?= $_SESSION['csrf_token'] ?>" class="btn btn-sm btn-outline-secondary mt-2 confirm-link" data-settings-reset-favicon><i class="fas fa-redo-alt me-2"></i>Back to ITFlow's Icon</a>
<?php } ?>
</div>
</div>

View File

@@ -35,7 +35,7 @@ echo settingsPageStart('ticket');
<?= settingsSwitch('config_ticket_email_parse_unknown_senders', $config_ticket_email_parse_unknown_senders, ['help' => 'From someone who isn\'t a contact, at a domain no client has - otherwise those are left in the mailbox, flagged and unread.']) ?>
<?php // What an email from someone with some subject would become, without sending one (functions/ticket_mail_try.php) ?>
<div class="d-flex flex-wrap align-items-center gap-2 mt-2">
<button type="button" class="btn btn-sm btn-outline-secondary ajax-modal" data-modal-url="modals/ticket_mail/ticket_mail_try.php" data-ticket-mail-try><i class="fas fa-vial me-2"></i>Try an email</button>
<button type="button" class="btn btn-sm btn-outline-secondary ajax-modal" data-modal-url="modals/ticket_mail/ticket_mail_try.php" data-ticket-mail-try><i class="fas fa-vial me-2"></i>Try an Email</button>
<span class="small text-body-secondary">What an email from someone would become - a reply, a ticket, or left in the mailbox - and why. Uses the saved settings.</span>
</div>
</div>
@@ -116,7 +116,7 @@ echo settingsPageStart('ticket');
. ($assigned_sent_by ? 'Sent on moving into <strong>' . escapeHtml(implode(', ', $assigned_sent_by)) . '</strong>.' : 'No status sends it yet.')]) ?>
<?php if (ticketNoResponseReady()) { ?>
<?= settingsTextarea('config_ticket_no_response_message', ticketNoResponseMessage(), ['rows' => 7, 'maxlength' => 5000,
'help' => 'For a client who never answered: the arrow beside a ticket\'s Resolve button has <strong>Resolve - no response</strong>, which sends this - changed for the ticket first, if need be - in place of the usual "resolved" words, resolves it, and closes it later without asking how we did. <code>[Agent]</code> is whoever sends it.']) ?>
'help' => 'For a client who never answered: the arrow beside a ticket\'s Resolve button has <strong>Resolve - No Response</strong>, which sends this - changed for the ticket first, if need be - in place of the usual "resolved" words, resolves it, and closes it later without asking how we did. <code>[Agent]</code> is whoever sends it.']) ?>
<?php } ?>
<?= settingsSectionEnd() ?>
<?php } ?>

View File

@@ -242,25 +242,25 @@ $pill_url = function ($view) use ($on_days) {
<div class="dropdown-menu dropdown-menu-end">
<?php if ($on_days) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/sla/holiday_generate.php" data-sla-us-holidays>
<i class="fas fa-fw fa-magic text-secondary me-2"></i>Add US holidays
<i class="fas fa-fw fa-magic text-secondary me-2"></i>Add US Holidays
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/sla/sla_add.php">
<i class="fas fa-fw fa-stopwatch text-secondary me-2"></i>New SLA
</a>
<?php } else { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/sla/holiday_add.php">
<i class="fas fa-fw fa-calendar-times text-secondary me-2"></i>New closure day
<i class="fas fa-fw fa-calendar-times text-secondary me-2"></i>New Closure Day
</a>
<a class="dropdown-item" href="ticket_statuses.php" title="Which statuses pause the resolution clock">
<i class="fas fa-fw fa-pause-circle text-secondary me-2"></i>Ticket statuses
<i class="fas fa-fw fa-pause-circle text-secondary me-2"></i>Ticket Statuses
</a>
<?php } ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/reports/sla_summary.php">
<i class="fas fa-fw fa-chart-line text-secondary me-2"></i>SLA Performance report
<i class="fas fa-fw fa-chart-line text-secondary me-2"></i>SLA Performance Report
</a>
<a class="dropdown-item" href="/agent/reports/sla_by_client.php">
<i class="fas fa-fw fa-users text-secondary me-2"></i>SLA by Client report
<i class="fas fa-fw fa-users text-secondary me-2"></i>SLA by Client Report
</a>
</div>
</div>
@@ -429,7 +429,7 @@ $pill_url = function ($view) use ($on_days) {
'text' => 'Holidays and other days the office is shut. No SLA clock runs on them.',
'actions' => [
['label' => 'New Closure Day', 'modal' => 'modals/sla/holiday_add.php'],
['label' => 'Add US holidays', 'modal' => 'modals/sla/holiday_generate.php', 'icon' => 'fa-magic'],
['label' => 'Add US Holidays', 'modal' => 'modals/sla/holiday_generate.php', 'icon' => 'fa-magic'],
],
] : [
'thing' => 'SLAs',

View File

@@ -118,10 +118,10 @@ $facts = array_filter([
<div class="d-flex flex-wrap gap-2 d-print-none">
<?php if (!$archived) { ?>
<div class="btn-group">
<button type="button" class="btn btn-primary ajax-modal" data-modal-size="lg" data-modal-url="<?= $use_url ?>"><i class="fas fa-fw fa-plus me-2"></i>New license for a client</button>
<button type="button" class="btn btn-primary ajax-modal" data-modal-size="lg" data-modal-url="<?= $use_url ?>"><i class="fas fa-fw fa-plus me-2"></i>New License for a Client</button>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-label="More ways to make one"></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>"><i class="fas fa-fw fa-copy me-2"></i>For several clients</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>"><i class="fas fa-fw fa-copy me-2"></i>For Several Clients</a>
<?php if ($coverage && $coverage['missing']) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $several_url ?>&missing=1"><i class="fas fa-fw fa-clipboard-check me-2"></i>For <?= $missing_text ?></a>
<?php } ?>
@@ -132,7 +132,7 @@ $facts = array_filter([
<div class="dropdown">
<button class="btn btn-outline-secondary" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item 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 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-download me-2"></i>Export</a>
<?php if ($archived) { ?>
@@ -187,9 +187,9 @@ $facts = array_filter([
</button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $renew_url ?>" data-modal-size="lg" data-bulk="true"><i class="fas fa-fw fa-redo-alt me-2"></i>Renew</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $true_up_url ?>" data-modal-size="lg" data-bulk="true"><i class="fas fa-fw fa-balance-scale me-2"></i>True up seats</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $true_up_url ?>" data-modal-size="lg" data-bulk="true"><i class="fas fa-fw fa-balance-scale me-2"></i>True Up Seats</a>
<?php if ($has_product) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $bill_url ?>" data-modal-size="lg" data-bulk="true"><i class="fas fa-fw fa-file-invoice-dollar me-2"></i>Bill seats</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $bill_url ?>" data-modal-size="lg" data-bulk="true"><i class="fas fa-fw fa-file-invoice-dollar me-2"></i>Bill Seats</a>
<?php } ?>
</div>
</div>
@@ -260,12 +260,12 @@ $facts = array_filter([
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $renew_url ?>?id=<?= $software_id ?>"><i class="fas fa-fw fa-redo-alt text-secondary me-2"></i>Renew</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $true_up_url ?>&software_ids[]=<?= $software_id ?>"><i class="fas fa-fw fa-balance-scale text-secondary me-2"></i>True up seats</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $true_up_url ?>&software_ids[]=<?= $software_id ?>"><i class="fas fa-fw fa-balance-scale text-secondary me-2"></i>True Up Seats</a>
<?php if ($has_product && !$billing) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $bill_url ?>&software_ids[]=<?= $software_id ?>"><i class="fas fa-fw fa-file-invoice-dollar text-secondary me-2"></i>Bill seats</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $bill_url ?>&software_ids[]=<?= $software_id ?>"><i class="fas fa-fw fa-file-invoice-dollar text-secondary me-2"></i>Bill Seats</a>
<?php } ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/software.php?client_id=<?= $client_id ?>"><i class="fas fa-fw fa-cube text-secondary me-2"></i>The client's Licenses</a>
<a class="dropdown-item" href="/agent/software.php?client_id=<?= $client_id ?>"><i class="fas fa-fw fa-cube text-secondary me-2"></i>The Client's Licenses</a>
</div>
</div>
</td>

View File

@@ -126,10 +126,10 @@ $csrf = $_SESSION['csrf_token'];
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/reports/license_templates.php">
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>How they are used
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>How They Are Used
</a>
<a class="dropdown-item" href="starter_content.php">
<i class="fas fa-fw fa-seedling text-secondary me-2"></i>Starter license templates
<i class="fas fa-fw fa-seedling text-secondary me-2"></i>Starter License Templates
</a>
</div>
</div>
@@ -238,14 +238,14 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php if (!$row['software_template_archived_at']) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/software_template/software_template_use.php?id=<?= $template_id ?>">
<i class="fas fa-fw fa-plus text-secondary me-2"></i>New license for a client
<i class="fas fa-fw fa-plus text-secondary me-2"></i>New License for a Client
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/software_template/software_template_use_several.php?id=<?= $template_id ?>">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>For several clients
<i class="fas fa-fw fa-copy text-secondary me-2"></i>For Several Clients
</a>
<?php } ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/software_template/software_template_required.php?id=<?= $template_id ?>">
<i class="fas fa-fw fa-clipboard-check text-secondary me-2"></i>Who should have it
<i class="fas fa-fw fa-clipboard-check text-secondary me-2"></i>Who Should Have It
</a>
<a class="dropdown-item" href="post.php?copy_software_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="A new template starting from this one">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
@@ -285,7 +285,7 @@ $csrf = $_SESSION['csrf_token'];
'view' => $show === 'required' ? ['title' => 'No required templates', 'text' => 'Set one up from its page - <strong>Who should have it</strong> - to see which clients are missing a license from it.'] : null,
'text' => 'A license you sell or look after again and again - Microsoft 365 Business Premium, an endpoint protection agent, a backup product - ready to start a client\'s from. Agents start one from <strong>New License</strong> on a client\'s Licenses.',
'actions' => [['label' => 'New License Template', 'modal' => $add_url, 'size' => 'lg'], ['label' => 'Import', 'modal' => 'modals/software_template/software_template_import.php', 'icon' => 'fa-file-upload'],
['label' => 'Starter license templates', 'href' => 'starter_content.php', 'icon' => 'fa-seedling']],
['label' => 'Starter License Templates', 'href' => 'starter_content.php', 'icon' => 'fa-seedling']],
];
require_once "../includes/filter_footer.php";
?>

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 me-2"></i>Remove demo data
<i class="fas fa-fw fa-trash me-2"></i>Remove Demo Data
</button>
</form>
<?php } ?>

View File

@@ -128,7 +128,7 @@ $csrf = $_SESSION['csrf_token'];
</button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/tag/tag_merge.php" data-bulk="true">
<i class="fas fa-fw fa-compress-alt text-secondary me-2"></i>Merge into one...
<i class="fas fa-fw fa-compress-alt text-secondary me-2"></i>Merge into One...
</a>
<?php if ($show_archived) { ?>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_restore_tags">
@@ -222,7 +222,7 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/tag/tag_merge.php?tag_ids[]=<?= $tag_id ?>">
<i class="fas fa-fw fa-compress-alt text-secondary me-2"></i>Merge into...
<i class="fas fa-fw fa-compress-alt text-secondary me-2"></i>Merge Into...
</a>
<?php if ($used) { ?>
<a class="dropdown-item" href="<?= escapeHtml($list_url) ?>">

View File

@@ -161,7 +161,7 @@ $sort_link = function ($column, $label) use ($url_query_strings_sort, $sort, $di
<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>
<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>
<?php } ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger ajax-modal" href="#" data-modal-url="modals/tax/tax_archive.php?id=<?= $tax_id ?>"><i class="fas fa-fw fa-archive me-2"></i>Archive</a>

View File

@@ -66,7 +66,7 @@ $csrf = $_SESSION['csrf_token'];
<h3 class="card-title mt-2"><i class="fas fa-fw fa-sms me-2"></i>Text Messaging</h3>
<div class="card-tools">
<a class="btn btn-outline-light me-1 ajax-modal" href="#" data-modal-url="modals/sms_provider/sms_numbers.php" title="Numbers that replied STOP, and numbers blocked as spam">
<i class="fas fa-fw fa-ban"></i><span class="d-none d-lg-inline ms-2">Opted out and blocked</span><?php if ($opted_out + $blocked) { ?> <span class="badge text-bg-light ms-1"><?= $opted_out + $blocked ?></span><?php } ?>
<i class="fas fa-fw fa-ban"></i><span class="d-none d-lg-inline ms-2">Opted Out and Blocked</span><?php if ($opted_out + $blocked) { ?> <span class="badge text-bg-light ms-1"><?= $opted_out + $blocked ?></span><?php } ?>
</a>
<a class="btn btn-outline-light me-1" href="text_messages.php"><i class="fas fa-fw fa-list"></i><span class="d-none d-lg-inline ms-2">Text Messages</span></a>
<?php if ($can_add) { ?>
@@ -150,22 +150,22 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php if ($on) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/sms_provider/sms_test.php?id=<?= $provider_id ?>">
<i class="fas fa-fw fa-vial text-secondary me-2"></i>Send a test text
<i class="fas fa-fw fa-vial text-secondary me-2"></i>Send a Test Text
</a>
<?php } ?>
<a class="dropdown-item confirm-link" href="post.php?new_sms_inbound_key=<?= $provider_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Make a new address for texts to come back to?" data-confirm-button="Make a new one"
data-confirm-text="The one <?= escapeHtml($name) ?> has stops working - paste the new one into its portal, or texts to the number won't reach ITFlow.">
<i class="fas fa-fw fa-sync-alt text-secondary me-2"></i>New inbound address
<i class="fas fa-fw fa-sync-alt text-secondary me-2"></i>New Inbound Address
</a>
<?php if ($on) { ?>
<a class="dropdown-item confirm-link" href="post.php?turn_sms_provider_off=<?= $provider_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Turn <?= escapeHtml($name) ?> off?" data-confirm-text="No texts go out, and texts to the number aren't taken in until it is on again. Waiting texts wait." data-confirm-button="Turn off">
<i class="fas fa-fw fa-toggle-off text-secondary me-2"></i>Turn off
<i class="fas fa-fw fa-toggle-off text-secondary me-2"></i>Turn Off
</a>
<?php } else { ?>
<a class="dropdown-item" href="post.php?turn_sms_provider_on=<?= $provider_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-toggle-on text-secondary me-2"></i>Turn on
<i class="fas fa-fw fa-toggle-on text-secondary me-2"></i>Turn On
</a>
<?php } ?>
<div class="dropdown-divider"></div>

View File

@@ -182,18 +182,18 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php if ($tickets) { ?>
<a class="dropdown-item" href="<?= escapeHtml($tickets_url) ?>">
<i class="fas fa-fw fa-life-ring text-secondary me-2"></i>See its tickets
<i class="fas fa-fw fa-life-ring text-secondary me-2"></i>See Its Tickets
</a>
<?php } ?>
<?php if ($can_reorder) { ?>
<?php if ($position > 0) { ?>
<a class="dropdown-item" href="post.php?move_ticket_status=<?= $ticket_status_id ?>&direction=up&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-arrow-up text-secondary me-2"></i>Move up
<i class="fas fa-fw fa-arrow-up text-secondary me-2"></i>Move Up
</a>
<?php } ?>
<?php if ($position < $num_rows[0] - 1) { ?>
<a class="dropdown-item" href="post.php?move_ticket_status=<?= $ticket_status_id ?>&direction=down&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-arrow-down text-secondary me-2"></i>Move down
<i class="fas fa-fw fa-arrow-down text-secondary me-2"></i>Move Down
</a>
<?php } ?>
<?php } ?>
@@ -201,11 +201,11 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-divider"></div>
<?php if ($active) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/ticket_status/ticket_status_remove.php?id=<?= $ticket_status_id ?>&action=off" title="Kept, but it can't be picked - and it comes off the board">
<i class="fas fa-fw fa-power-off text-secondary me-2"></i>Switch off
<i class="fas fa-fw fa-power-off text-secondary me-2"></i>Switch Off
</a>
<?php } else { ?>
<a class="dropdown-item" href="post.php?switch_on_ticket_status=<?= $ticket_status_id ?>&csrf_token=<?= $csrf ?>" title="Back in the pickers and on the board">
<i class="fas fa-fw fa-power-off text-secondary me-2"></i>Switch on
<i class="fas fa-fw fa-power-off text-secondary me-2"></i>Switch On
</a>
<?php } ?>
<a class="dropdown-item text-danger ajax-modal" href="#" data-modal-url="modals/ticket_status/ticket_status_remove.php?id=<?= $ticket_status_id ?>&action=delete">

View File

@@ -123,7 +123,7 @@ $edit_url = "modals/ticket_template/ticket_template_edit.php?id=$ticket_template
</div>
<div class="d-flex flex-wrap gap-2">
<?php if (!$archived) { ?>
<a class="btn btn-primary" href="/agent/tickets.php?new_from_template=<?= $ticket_template_id ?>"><i class="fas fa-fw fa-plus me-2"></i>New ticket from it</a>
<a class="btn btn-primary" href="/agent/tickets.php?new_from_template=<?= $ticket_template_id ?>"><i class="fas fa-fw fa-plus me-2"></i>New Ticket from It</a>
<?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">

View File

@@ -100,10 +100,10 @@ $csrf = $_SESSION['csrf_token'];
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/reports/ticket_templates.php">
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>How they are used
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>How They Are Used
</a>
<a class="dropdown-item" href="starter_content.php">
<i class="fas fa-fw fa-seedling text-secondary me-2"></i>Starter templates
<i class="fas fa-fw fa-seedling text-secondary me-2"></i>Starter Templates
</a>
</div>
</div>
@@ -212,7 +212,7 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php if (!$row['ticket_template_archived_at']) { ?>
<a class="dropdown-item" href="/agent/tickets.php?new_from_template=<?= $template_id ?>">
<i class="fas fa-fw fa-plus text-secondary me-2"></i>New ticket from it
<i class="fas fa-fw fa-plus text-secondary me-2"></i>New Ticket from It
</a>
<?php } ?>
<a class="dropdown-item" href="post.php?copy_ticket_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="A new template starting from this one">

View File

@@ -253,7 +253,7 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-menu dropdown-menu-end">
<?php if (userInvitesReady() && !$agent_user_limit_reached) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/user/user_invite_bulk.php?role=<?= $role_filter ?>">
<i class="fa fa-fw fa-users text-secondary me-2"></i>Invite several
<i class="fa fa-fw fa-users text-secondary me-2"></i>Invite Several
</a>
<div class="dropdown-divider"></div>
<?php } ?>
@@ -264,11 +264,11 @@ $csrf = $_SESSION['csrf_token'];
<i class="fa fa-fw fa-user-tag text-secondary me-2"></i>Roles
</a>
<a class="dropdown-item" href="settings_security.php">
<i class="fa fa-fw fa-shield-alt text-secondary me-2"></i>Security settings
<i class="fa fa-fw fa-shield-alt text-secondary me-2"></i>Security Settings
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger ajax-modal" href="#" data-modal-url="modals/user/user_all_reset_password.php">
<i class="fas fa-fw fa-skull-crossbones me-2"></i>Incident response
<i class="fas fa-fw fa-skull-crossbones me-2"></i>Incident Response
</a>
</div>
</div>
@@ -324,20 +324,20 @@ $csrf = $_SESSION['csrf_token'];
data-confirm-title="Email them a password link?" data-confirm-icon="info"
data-confirm-text="Each one who signs in with a password is emailed a link to choose a new one, good for <?= PORTAL_RESET_LINK_MINUTES ?> minutes. Their password stays as it is until they use it."
data-confirm-button="Email the links">
<i class="fas fa-fw fa-key text-secondary me-2"></i>Email a password link
<i class="fas fa-fw fa-key text-secondary me-2"></i>Email a Password Link
</button>
<?php } ?>
<button class="dropdown-item confirm-link" type="submit" form="bulkActions" name="bulk_portal_reset_mfa"
data-confirm-text="They sign in with their password alone until they set two-step sign-in up again, and are emailed that it was turned off. For a lost or replaced phone."
data-confirm-button="Turn off two-step">
<i class="fas fa-fw fa-mobile-alt text-secondary me-2"></i>Turn off two-step sign-in
<i class="fas fa-fw fa-mobile-alt text-secondary me-2"></i>Turn Off Two-step Sign-in
</button>
<?php if ($portal_access !== 'off') { ?>
<div class="dropdown-divider"></div>
<button class="dropdown-item text-danger confirm-link" type="submit" form="bulkActions" name="bulk_portal_access_off"
data-confirm-text="They are signed out of the client portal and can't sign in. Their contact stays as it is - turn their access back on here or from the contact."
data-confirm-button="Turn off access">
<i class="fas fa-fw fa-user-slash me-2"></i>Turn off portal access
<i class="fas fa-fw fa-user-slash me-2"></i>Turn Off Portal Access
</button>
<?php } ?>
</div>
@@ -350,10 +350,10 @@ $csrf = $_SESSION['csrf_token'];
<i class="fas fa-fw fa-lock text-secondary me-2"></i>Require MFA
</button>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_unrequire_mfa_users">
<i class="fas fa-fw fa-lock-open text-secondary me-2"></i>Stop requiring MFA
<i class="fas fa-fw fa-lock-open text-secondary me-2"></i>Stop Requiring MFA
</button>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_revoke_remember_users">
<i class="fas fa-fw fa-laptop text-secondary me-2"></i>Forget remembered browsers
<i class="fas fa-fw fa-laptop text-secondary me-2"></i>Forget Remembered Browsers
</button>
<?php if ($show !== 'archived') { ?>
<div class="dropdown-divider"></div>
@@ -494,15 +494,15 @@ $csrf = $_SESSION['csrf_token'];
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item" href="<?= $contact_url ?>">
<i class="fas fa-fw fa-address-card text-secondary me-2"></i>Open contact
<i class="fas fa-fw fa-address-card text-secondary me-2"></i>Open Contact
</a>
<?php if ($is_on && intval($config_client_portal_enable)) { ?>
<a class="dropdown-item" href="/agent/post.php?portal_view_as=<?= $contact_id ?>&csrf_token=<?= $csrf ?>" title="The portal as they see it, read only">
<i class="fas fa-fw fa-eye text-secondary me-2"></i>View the portal as them
<i class="fas fa-fw fa-eye text-secondary me-2"></i>View the Portal as Them
</a>
<?php } ?>
<a class="dropdown-item" href="audit_logs.php?user=<?= $user_id ?>">
<i class="fas fa-fw fa-history text-secondary me-2"></i>Audit log
<i class="fas fa-fw fa-history text-secondary me-2"></i>Audit Log
</a>
<?php if ($is_on && $portal_mail_ready) { ?>
<?php if ($is_local) { ?>
@@ -510,12 +510,12 @@ $csrf = $_SESSION['csrf_token'];
data-confirm-title="Email <?= $name ?> a password link?" data-confirm-icon="info"
data-confirm-text="<?= $name ?> is emailed a link to choose a new password, good for <?= PORTAL_RESET_LINK_MINUTES ?> minutes. Their password stays as it is until they use it."
data-confirm-button="Email the link">
<i class="fas fa-fw fa-key text-secondary me-2"></i>Email a password link
<i class="fas fa-fw fa-key text-secondary me-2"></i>Email a Password Link
</a>
<?php } ?>
<?php if (!$login) { ?>
<a class="dropdown-item" href="post.php?portal_user_invite=<?= $user_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-paper-plane text-secondary me-2"></i>Send the invite again
<i class="fas fa-fw fa-paper-plane text-secondary me-2"></i>Send the Invite Again
</a>
<?php } ?>
<?php } ?>
@@ -523,7 +523,7 @@ $csrf = $_SESSION['csrf_token'];
<a class="dropdown-item confirm-link" href="post.php?portal_user_reset_mfa=<?= $user_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-text="<?= $name ?> signs in with their password alone until they set two-step sign-in up again, and is emailed that it was turned off. For a lost or replaced phone."
data-confirm-button="Turn off two-step">
<i class="fas fa-fw fa-mobile-alt text-secondary me-2"></i>Turn off two-step sign-in
<i class="fas fa-fw fa-mobile-alt text-secondary me-2"></i>Turn Off Two-step Sign-in
</a>
<?php } ?>
<?php if ($remember_count) { ?>
@@ -537,12 +537,12 @@ $csrf = $_SESSION['csrf_token'];
data-confirm-title="Turn off portal access for <?= $name ?>?"
data-confirm-text="<?= $name ?> is signed out of the client portal and can't sign in. Their contact stays as it is - turn their access back on here or from the contact."
data-confirm-button="Turn off access">
<i class="fas fa-fw fa-user-slash me-2"></i>Turn off portal access
<i class="fas fa-fw fa-user-slash me-2"></i>Turn Off Portal Access
</a>
<?php } elseif ($can_turn_on) { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/portal_user/portal_user_access.php?id=<?= $user_id ?>">
<i class="fas fa-fw fa-user-check text-secondary me-2"></i>Turn on portal access
<i class="fas fa-fw fa-user-check text-secondary me-2"></i>Turn On Portal Access
</a>
<?php } ?>
</div>
@@ -641,24 +641,24 @@ $csrf = $_SESSION['csrf_token'];
<div class="dropdown-menu">
<?php if ($invite_mail_ready) { ?>
<a class="dropdown-item" href="post.php?resend_user_invite=<?= $invite_id ?>&csrf_token=<?= $csrf ?>">
<i class="fas fa-fw fa-paper-plane text-secondary me-2"></i>Send again
<i class="fas fa-fw fa-paper-plane text-secondary me-2"></i>Send Again
</a>
<?php } ?>
<a class="dropdown-item confirm-link" href="post.php?link_user_invite=<?= $invite_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Get a new invite link?" data-confirm-icon="info"
data-confirm-text="A new link is made for you to send <?= $invite_name ?> yourself, shown once. Any link sent before stops working, and it works for <?= USER_INVITE_LINK_DAYS ?> days."
data-confirm-button="Get the link">
<i class="fas fa-fw fa-link text-secondary me-2"></i>Get the link
<i class="fas fa-fw fa-link text-secondary me-2"></i>Get the Link
</a>
<a class="dropdown-item" href="audit_logs.php?q=<?= rawurlencode($invite['invite_email']) ?>">
<i class="fas fa-fw fa-history text-secondary me-2"></i>Audit log
<i class="fas fa-fw fa-history text-secondary me-2"></i>Audit Log
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger confirm-link" href="post.php?cancel_user_invite=<?= $invite_id ?>&csrf_token=<?= $csrf ?>"
data-confirm-title="Cancel <?= $invite_name ?>'s invite?"
data-confirm-text="The link <?= $invite_name ?> has stops working<?= $agent_user_limit > 0 && !$invite_expired ? ', and the seat it holds is free again' : '' ?>. Invite them again any time."
data-confirm-button="Cancel invite">
<i class="fas fa-fw fa-ban me-2"></i>Cancel invite
<i class="fas fa-fw fa-ban me-2"></i>Cancel Invite
</a>
</div>
</div>
@@ -774,14 +774,14 @@ $csrf = $_SESSION['csrf_token'];
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $quick_url ?>">
<i class="fas fa-fw fa-eye text-secondary me-2"></i>Quick look
<i class="fas fa-fw fa-eye text-secondary me-2"></i>Quick Look
</a>
<a class="dropdown-item" href="audit_logs.php?user=<?= $user_id ?>">
<i class="fas fa-fw fa-history text-secondary me-2"></i>Audit log
<i class="fas fa-fw fa-history text-secondary me-2"></i>Audit Log
</a>
<?php if ($is_self) { ?>
<a class="dropdown-item" href="/agent/user/user_details.php">
<i class="fas fa-fw fa-user-cog text-secondary me-2"></i>Your account
<i class="fas fa-fw fa-user-cog text-secondary me-2"></i>Your Account
</a>
<?php } elseif ($is_archived) { ?>
<div class="dropdown-divider"></div>

View File

@@ -144,21 +144,21 @@ foreach (vendorTemplateFieldLabels() as $field) {
<?php if (!$archived) { ?>
<?php if ($missing_text) { ?>
<div class="btn-group">
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="<?= $clients_url ?>"><i class="fas fa-fw fa-users me-2"></i>Add to clients</button>
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="<?= $clients_url ?>"><i class="fas fa-fw fa-users me-2"></i>Add to Clients</button>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-label="More ways to add it"></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $clients_url ?>&missing=1"><i class="fas fa-fw fa-clipboard-check me-2"></i>To <?= $missing_text ?></a>
</div>
</div>
<?php } else { ?>
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="<?= $clients_url ?>"><i class="fas fa-fw fa-users me-2"></i>Add to clients</button>
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="<?= $clients_url ?>"><i class="fas fa-fw fa-users me-2"></i>Add to Clients</button>
<?php } ?>
<?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-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 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-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>
@@ -217,7 +217,7 @@ foreach (vendorTemplateFieldLabels() as $field) {
<i class="fas fa-fw fa-layer-group me-1"></i>Bulk Action (<span id="selectedCount"></span>)
</button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $in_line_url ?>" data-bulk="true"><i class="fas fa-fw fa-sync-alt me-2"></i>Bring in line</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $in_line_url ?>" data-bulk="true"><i class="fas fa-fw fa-sync-alt me-2"></i>Bring in Line</a>
</div>
</div>
<?php } ?>
@@ -246,7 +246,7 @@ foreach (vendorTemplateFieldLabels() as $field) {
<button type="button" class="btn btn-sm btn-primary ms-auto ajax-modal" data-modal-size="lg" data-view-action
data-modal-url="<?= escapeHtml($in_line_url . '&' . implode('&', array_map(function ($id) {
return 'vendor_ids[]=' . $id;
}, array_keys($vendors)))) ?>"><i class="fas fa-fw fa-sync-alt me-1"></i>Bring these in line</button>
}, array_keys($vendors)))) ?>"><i class="fas fa-fw fa-sync-alt me-1"></i>Bring These in Line</button>
</div>
<?php } ?>
<?php } ?>
@@ -300,9 +300,9 @@ foreach (vendorTemplateFieldLabels() as $field) {
<div class="dropdown dropstart">
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item" href="<?= $vendor_url ?>"><i class="fas fa-fw fa-building text-secondary me-2"></i>Open their vendor</a>
<a class="dropdown-item" href="<?= $vendor_url ?>"><i class="fas fa-fw fa-building text-secondary me-2"></i>Open Their Vendor</a>
<?php if ($differences) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $update_url ?>?vendor_id=<?= $vendor_id ?>"><i class="fas fa-fw fa-sync-alt text-secondary me-2"></i>Bring in line</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $update_url ?>?vendor_id=<?= $vendor_id ?>"><i class="fas fa-fw fa-sync-alt text-secondary me-2"></i>Bring in Line</a>
<?php } ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item confirm-link" href="/agent/post.php?unlink_vendor_template=<?= $vendor_id ?>&amp;csrf_token=<?= $csrf ?>"

View File

@@ -131,7 +131,7 @@ $csrf = $_SESSION['csrf_token'];
<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 ajax-modal" href="#" data-modal-url="<?= $clients_url ?>">
<i class="fas fa-fw fa-users text-secondary me-2"></i>Add one to clients
<i class="fas fa-fw fa-users text-secondary me-2"></i>Add One to Clients
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $import_url ?>">
@@ -142,10 +142,10 @@ $csrf = $_SESSION['csrf_token'];
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/agent/reports/vendor_templates.php">
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>How they are used
<i class="fas fa-fw fa-chart-bar text-secondary me-2"></i>How They Are Used
</a>
<a class="dropdown-item" href="starter_content.php">
<i class="fas fa-fw fa-seedling text-secondary me-2"></i>Starter vendor templates
<i class="fas fa-fw fa-seedling text-secondary me-2"></i>Starter Vendor Templates
</a>
</div>
</div>
@@ -273,11 +273,11 @@ $csrf = $_SESSION['csrf_token'];
</a>
<?php if (!$row['vendor_template_archived_at']) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $clients_url ?>?template_id=<?= $template_id ?>">
<i class="fas fa-fw fa-users text-secondary me-2"></i>Add to clients
<i class="fas fa-fw fa-users text-secondary me-2"></i>Add to Clients
</a>
<?php } ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/vendor_template/vendor_template_required.php?id=<?= $template_id ?>">
<i class="fas fa-fw fa-clipboard-check text-secondary me-2"></i>Who should have it
<i class="fas fa-fw fa-clipboard-check text-secondary me-2"></i>Who Should Have It
</a>
<a class="dropdown-item" href="post.php?copy_vendor_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>" title="A new template starting from this one">
<i class="fas fa-fw fa-copy text-secondary me-2"></i>Copy
@@ -318,7 +318,7 @@ $csrf = $_SESSION['csrf_token'];
'out' => ['title' => 'Every vendor is in step', 'text' => 'Every client\'s vendor made from a template says what the template says.']][$show] ?? null,
'text' => 'A vendor your clients use again and again - an ISP, a hardware maker, the software they run - set up once with its support line, hours and site, ready to add to any client. Agents start one from <strong>New Vendor</strong> on a client\'s Vendors.',
'actions' => [['label' => 'New Vendor Template', 'modal' => $add_url, 'size' => 'lg'], ['label' => 'Import', 'modal' => $import_url, 'icon' => 'fa-file-upload'],
['label' => 'Starter vendor templates', 'href' => 'starter_content.php', 'icon' => 'fa-seedling']],
['label' => 'Starter Vendor Templates', 'href' => 'starter_content.php', 'icon' => 'fa-seedling']],
];
require_once "../includes/filter_footer.php";
?>

View File

@@ -109,11 +109,11 @@ $month_url = 'canned_date=custom&dtf=' . $stats['month_start'] . '&dtt=' . date(
<?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>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="expense_import.php"><i class="fa fa-fw fa-file-import text-secondary me-2"></i>Import Statement - expenses</a>
<a class="dropdown-item" href="income_import.php"><i class="fa fa-fw fa-file-import text-secondary me-2"></i>Import Deposits - income</a>
<a class="dropdown-item" href="expense_import.php"><i class="fa fa-fw fa-file-import text-secondary me-2"></i>Import Statement - Expenses</a>
<a class="dropdown-item" href="income_import.php"><i class="fa fa-fw fa-file-import text-secondary me-2"></i>Import Deposits - Income</a>
<div class="dropdown-divider"></div>
<?php } ?>
<a class="dropdown-item" href="transactions.php"><i class="fa fa-fw fa-list-alt text-secondary me-2"></i>Every account's transactions</a>
<a class="dropdown-item" href="transactions.php"><i class="fa fa-fw fa-list-alt text-secondary me-2"></i>Every Account's Transactions</a>
<a class="dropdown-item" href="transactions.php?show=transfers"><i class="fa fa-fw fa-exchange-alt text-secondary me-2"></i>Transfers</a>
</div>
</div>
@@ -210,8 +210,8 @@ $month_url = 'canned_date=custom&dtf=' . $stats['month_start'] . '&dtt=' . date(
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item" href="transactions.php?account=<?= $account_id ?>"><i class="fas fa-fw fa-list-alt text-secondary me-2"></i>Transactions</a>
<a class="dropdown-item" href="income.php?account=<?= $account_id ?>"><i class="fas fa-fw fa-hand-holding-usd text-secondary me-2"></i>Income into it</a>
<a class="dropdown-item" href="expenses.php?account=<?= $account_id ?>"><i class="fas fa-fw fa-shopping-cart text-secondary me-2"></i>Expenses from it</a>
<a class="dropdown-item" href="income.php?account=<?= $account_id ?>"><i class="fas fa-fw fa-hand-holding-usd text-secondary me-2"></i>Income into It</a>
<a class="dropdown-item" href="expenses.php?account=<?= $account_id ?>"><i class="fas fa-fw fa-shopping-cart text-secondary me-2"></i>Expenses from It</a>
<a class="dropdown-item" href="reconcile.php?account=<?= $account_id ?>"><i class="fas fa-fw fa-tasks text-secondary me-2"></i><?= $account['reconciling_id'] ? 'Carry on reconciling' : 'Reconcile' ?></a>
<?php if ($can_edit && !$account['account_archived_at']) { ?>
<div class="dropdown-divider"></div>
@@ -219,7 +219,7 @@ $month_url = 'canned_date=custom&dtf=' . $stats['month_start'] . '&dtt=' . date(
<?php if ($card) { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/transfer/transfer_add.php?to=<?= $account_id ?>"><i class="fas fa-fw fa-credit-card text-secondary me-2"></i>Pay the Card</a>
<?php } else { ?>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/transfer/transfer_add.php?from=<?= $account_id ?>"><i class="fas fa-fw fa-exchange-alt text-secondary me-2"></i>Transfer from it</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/transfer/transfer_add.php?from=<?= $account_id ?>"><i class="fas fa-fw fa-exchange-alt text-secondary me-2"></i>Transfer from It</a>
<?php } ?>
<div class="dropdown-divider"></div>
<?php if (abs($balance) < 0.005) { ?>

View File

@@ -1672,7 +1672,7 @@ if (isset($_GET['ticket_also_open'])) {
. '<a class="text-body" href="' . escapeHtml($also_url) . '">' . escapeHtml($row['ticket_subject']) . '</a></div>'
. '<div class="text-body-secondary text-truncate">' . escapeHtml($also_who) . ' · ' . escapeHtml(timeAgo($row['ticket_updated_at'] ?: $row['ticket_created_at'])) . '</div></div>'
. '<span class="flex-shrink-0">' . ticketStatusHtml($row['ticket_status_name'], $row['ticket_status_color'], 'detail') . '</span>'
. '<button type="button" class="btn btn-sm btn-outline-dark flex-shrink-0" data-ticket-work="' . intval($row['ticket_id']) . '" data-url="' . escapeHtml($also_url) . '">Work on this one</button></div>';
. '<button type="button" class="btn btn-sm btn-outline-dark flex-shrink-0" data-ticket-work="' . intval($row['ticket_id']) . '" data-url="' . escapeHtml($also_url) . '">Work on This One</button></div>';
} else {
$html .= '<div class="d-flex align-items-center gap-2 text-truncate">' . ticketLink($row)
. ' <span class="ms-auto flex-shrink-0">' . ticketStatusHtml($row['ticket_status_name'], $row['ticket_status_color'], 'detail') . '</span></div>';

View File

@@ -325,7 +325,7 @@ if (mysqli_num_rows($sql) == 0) {
</a>
<?php } ?>
<button type="button" class="btn btn-outline-secondary clipboardjs" data-clipboard-text="<?= escapeHtml(assetDetailsText($asset_id)) ?>" title="Copy its make, serial, OS, address, warranty and where it is as text - for a vendor's support case or an email">
<i class="far fa-clipboard me-2"></i>Copy details
<i class="far fa-clipboard me-2"></i>Copy Details
</button>
<?php if ($can_edit) { ?>
<div class="dropdown">
@@ -714,7 +714,7 @@ if (mysqli_num_rows($sql) == 0) {
<button type="button" class="btn btn-sm btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown"></button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/asset/asset_interface_multiple_add.php?asset_id=<?= $asset_id ?>">
<i class="fa fa-fw fa-th me-2"></i>Add a run of ports
<i class="fa fa-fw fa-th me-2"></i>Add a Run of Ports
</a>
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/asset/asset_interface_import.php?asset_id=<?= $asset_id ?>">
<i class="fa fa-fw fa-upload me-2"></i>Import
@@ -853,7 +853,7 @@ if (mysqli_num_rows($sql) == 0) {
</a>
<?php if (!$interface_primary) { ?>
<a class="dropdown-item" href="post.php?primary_asset_interface=<?= $interface_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-star text-secondary me-2"></i>Make primary
<i class="fas fa-fw fa-star text-secondary me-2"></i>Make Primary
</a>
<?php } ?>
<?php if ($link) { ?>
@@ -865,7 +865,7 @@ if (mysqli_num_rows($sql) == 0) {
<?php } ?>
<?php if ($row['interface_network_id'] && $ip !== false) { ?>
<a class="dropdown-item" href="<?= escapeHtml(networkUrl($row['interface_network_id'], $client_id)) ?>#addresses">
<i class="fas fa-fw fa-list-ol text-secondary me-2"></i>On the address plan
<i class="fas fa-fw fa-list-ol text-secondary me-2"></i>On the Address Plan
</a>
<?php } ?>
<?php if ($can_delete && !$interface_primary) { ?>
@@ -987,7 +987,7 @@ if (mysqli_num_rows($sql) == 0) {
</a>
<a class="dropdown-item confirm-link" href="post.php?force_recurring_ticket=<?= $recurring_ticket_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>"
data-confirm-text="A ticket is raised now, and the next run moves on a step - this takes its place.">
<i class="fa fa-fw fa-paper-plane text-secondary me-2"></i>Raise now
<i class="fa fa-fw fa-paper-plane text-secondary me-2"></i>Raise Now
</a>
<?php if ($can_delete) { ?>
<div class="dropdown-divider"></div>

View File

@@ -79,7 +79,7 @@ foreach ($sources as $key => $source) {
<div class="card-body">
<?php if ($can_add_event) { ?>
<button type="button" class="btn btn-primary w-100 mb-3" id="calendarNewEvent"><i class="fas fa-plus me-2"></i>New event</button>
<button type="button" class="btn btn-primary w-100 mb-3" id="calendarNewEvent"><i class="fas fa-plus me-2"></i>New Event</button>
<?php } ?>
<label class="form-label small text-body-secondary text-uppercase fw-semibold mb-1" for="calendarAgent">Whose</label>

View File

@@ -217,7 +217,7 @@ $export_extra = [
<div class="dropdown-menu dropdown-menu-end">
<?php if (!$archived) { ?>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_check_certificates">
<i class="fas fa-fw fa-sync-alt me-2"></i>Check now
<i class="fas fa-fw fa-sync-alt me-2"></i>Check Now
</button>
<?php } ?>
<button class="dropdown-item" type="submit" form="bulkActions" name="bulk_favorite_certificates">
@@ -402,11 +402,11 @@ $export_extra = [
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
<div class="dropdown-menu">
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $quick_url ?>">
<i class="fas fa-fw fa-eye text-secondary me-2"></i>Quick look
<i class="fas fa-fw fa-eye text-secondary me-2"></i>Quick Look
</a>
<?php if ($host) { ?>
<a class="dropdown-item" href="https://<?= escapeHtml($host['display']) ?>" target="_blank" rel="noopener noreferrer">
<i class="fas fa-fw fa-external-link-alt text-secondary me-2"></i>Open the site
<i class="fas fa-fw fa-external-link-alt text-secondary me-2"></i>Open the Site
</a>
<?php } ?>
<?php if ($can_edit && !$certificate_archived_at) { ?>
@@ -415,7 +415,7 @@ $export_extra = [
</a>
<?php if ($host) { ?>
<a class="dropdown-item" href="post.php?check_certificate=<?= $certificate_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
<i class="fas fa-fw fa-sync-alt text-secondary me-2"></i>Check now
<i class="fas fa-fw fa-sync-alt text-secondary me-2"></i>Check Now
</a>
<?php } ?>
<a class="dropdown-item" href="post.php?<?= $certificate_favorite ? 'unfavorite_certificate' : 'favorite_certificate' ?>=<?= $certificate_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">

View File

@@ -177,7 +177,7 @@ define('FROM_CLIENT_ONBOARDING', true);
<form action="post.php" method="post" class="m-0">
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<input type="hidden" name="client_id" value="<?= $client_id ?>">
<button type="submit" name="client_onboarding_skip" value="<?= escapeHtml($co_step) ?>" class="btn btn-outline-secondary" data-co-skip>Skip for now</button>
<button type="submit" name="client_onboarding_skip" value="<?= escapeHtml($co_step) ?>" class="btn btn-outline-secondary" data-co-skip>Skip for Now</button>
</form>
<?php } ?>
</div>

View File

@@ -98,6 +98,6 @@ foreach ($co_templates as $co_template_id => $co_template) {
</div>
<?php } ?>
</div>
<button type="submit" name="client_onboarding_agreement" value="1" class="btn btn-primary" data-gs-save><i class="fas fa-file-signature me-2"></i>Start the contract</button>
<button type="submit" name="client_onboarding_agreement" value="1" class="btn btn-primary" data-gs-save><i class="fas fa-file-signature me-2"></i>Start the Contract</button>
</form>
<?php } ?>

View File

@@ -167,6 +167,6 @@ $co_ticked = function ($name, $id, $should) use ($settings_kept) {
<?php } ?>
<?php } ?>
<button type="submit" name="client_onboarding_it" value="1" class="btn btn-primary" data-gs-save><i class="fas fa-check me-2"></i>Add them</button>
<button type="submit" name="client_onboarding_it" value="1" class="btn btn-primary" data-gs-save><i class="fas fa-check me-2"></i>Add Them</button>
</form>
<?php unset($_SESSION['co_kept_it']); ?>

View File

@@ -95,5 +95,5 @@ while ($co_contact = mysqli_fetch_assoc($co_sql)) {
</div>
<?php } ?>
</div>
<button type="submit" name="client_onboarding_kickoff" value="1" class="btn btn-primary" data-gs-save><i class="fas fa-flag me-2"></i>Start the project</button>
<button type="submit" name="client_onboarding_kickoff" value="1" class="btn btn-primary" data-gs-save><i class="fas fa-flag me-2"></i>Start the Project</button>
</form>

View File

@@ -356,7 +356,7 @@ $total_leads = intval($row['leads']);
<div class="dropdown-menu dropdown-menu-end">
<?php if ($can_onboard) { ?>
<a class="dropdown-item" href="<?= clientOnboardingUrl() ?>" data-onboard-new>
<i class="fa fa-fw fa-route me-2"></i>Onboard a client
<i class="fa fa-fw fa-route me-2"></i>Onboard a Client
</a>
<div class="dropdown-divider"></div>
<?php } ?>
@@ -754,7 +754,7 @@ $total_leads = intval($row['leads']);
'text' => $leads_filter ? 'Prospects you are talking to, kept apart from your clients.' : 'Add the companies you look after, or import them all at once.',
'actions' => $can_edit ? array_merge(
[['label' => $leads_filter ? 'New Lead' : 'New Client', 'modal' => 'modals/client/client_add.php' . ($leads_filter ? '?lead=1' : '')]],
$leads_filter || !$can_onboard ? [] : [['label' => 'Onboard a client', 'href' => clientOnboardingUrl(), 'icon' => 'fa-route']],
$leads_filter || !$can_onboard ? [] : [['label' => 'Onboard a Client', 'href' => clientOnboardingUrl(), 'icon' => 'fa-route']],
$leads_filter ? [] : [['label' => 'Import', 'modal' => 'modals/import/import.php?kind=clients', 'icon' => 'fa-upload', 'size' => 'lg']]
) : [],
];

Some files were not shown because too many files have changed in this diff Show More