mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 11:57:25 +00:00
QoL 52: fw-bold for text-bold, text-body-secondary for text-muted and fas for the fa icon prefix everywhere, the user menu buttons as btn-light border, the dead AdminLTE 3 shims and small-box styles removed from itflow_custom.css, and the inert tooltip toggles on menu counts dropped
This commit is contained in:
@@ -449,6 +449,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
|
||||
- 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.
|
||||
- Lists: `sortLink($column, $label, $first, $title, $class)` in `functions/format.php` draws a sortable column header from what `includes/filter_header.php` sets, and `sortFirstOrder()` picks the first direction from the column's name. It replaces the 48 copied `$sort_link` closures and the 115 header links written out by hand; a page with its own first directions passes `$first`.
|
||||
- Tab titles: `includes/page_title.php` takes a report's title from `reportCatalog()`, a settings page's from `settingsPages()` and a few others from a short list, and makes the rest from the file name with its acronyms in capitals. `$page_title` is no longer HTML-escaped there - the footer writes it with `json_encode()` and `emptyStateHtml()` escapes it.
|
||||
- Bootstrap 5 classes: `fw-bold` in place of the `text-bold` shim, `text-body-secondary` in place of `text-muted`, and `fas` as the icon prefix in place of Font Awesome 5's `fa` alias, everywhere. The user menu's buttons are `btn-light border`. `css/itflow_custom.css` loses the shims for `text-bold`, `text-xs`, `btn-default`, `btn-flat`, `bg-olive`, `bg-pink` and `bg-purple` and the unused `.small-box` styles. The `data-bs-toggle="tooltip"` on the menu counts did nothing - their `title` still shows - and is gone.
|
||||
|
||||
## [26.11.8]
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<div class="col-lg-5 col-md-6">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search banners..." title="Title or message">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6">
|
||||
@@ -180,7 +180,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<i class="fas fa-fw fa-archive me-2"></i>Archive
|
||||
</a>
|
||||
<?php } ?>
|
||||
<a class="dropdown-item text-danger text-bold confirm-link" href="/agent/post.php?delete_agent_banner=<?= $announcement_id ?>&csrf_token=<?= $csrf ?>"
|
||||
<a class="dropdown-item text-danger fw-bold confirm-link" href="/agent/post.php?delete_agent_banner=<?= $announcement_id ?>&csrf_token=<?= $csrf ?>"
|
||||
data-confirm-title="Delete <?= $title ?>?" data-confirm-text="It goes for good." data-confirm-button="Delete">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete
|
||||
</a>
|
||||
|
||||
@@ -84,7 +84,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<div class="col-lg-5 col-md-6">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search AI models..." title="Name, provider, use case or instructions">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6">
|
||||
|
||||
@@ -79,7 +79,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<div class="col-lg-5 col-md-6">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search AI providers..." title="Name, kind, address or a model on it">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -136,7 +136,7 @@ $ms_text = function ($ms) {
|
||||
<div class="col-lg-4 col-md-12">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search AI usage..." title="Model, provider, feature, who, client or what went wrong">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-6">
|
||||
|
||||
@@ -97,7 +97,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<div class="col-md-5">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search API keys..." title="Key name or the agent it acts as">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
@@ -107,7 +107,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<i class="fas fa-fw fa-layer-group me-2"></i>Bulk Action (<span id="selectedCount">0</span>)
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-end">
|
||||
<button class="dropdown-item text-danger text-bold confirm-link" type="submit" form="bulkActions" name="bulk_delete_api_keys"
|
||||
<button class="dropdown-item text-danger fw-bold confirm-link" type="submit" form="bulkActions" name="bulk_delete_api_keys"
|
||||
data-confirm-title="Delete these keys?" data-confirm-text="Anything using them stops working." data-confirm-button="Delete">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete
|
||||
</button>
|
||||
@@ -221,7 +221,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<i class="fas fa-fw fa-ban me-2"></i>Revoke
|
||||
</a>
|
||||
<?php } else { ?>
|
||||
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?delete_api_key=<?= $api_key_id ?>&csrf_token=<?= $csrf ?>"
|
||||
<a class="dropdown-item text-danger fw-bold confirm-link" href="post.php?delete_api_key=<?= $api_key_id ?>&csrf_token=<?= $csrf ?>"
|
||||
data-confirm-title="Delete <?= $name ?>?" data-confirm-text="It has expired, so nothing can be using it." data-confirm-button="Delete">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete
|
||||
</a>
|
||||
|
||||
@@ -114,7 +114,7 @@ $filters_url = function ($modal) use ($dtf, $dtt, $view, $category_filter) {
|
||||
<div class="col-lg-5 col-md-12">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search the app logs..." title="The category or what it says">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6">
|
||||
|
||||
@@ -126,7 +126,7 @@ $view_empty = [
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search the audit log..." title="What was done, who did it, the client, the IP address or the browser">
|
||||
<button class="btn btn-outline-secondary <?= $more_filters ? 'active' : '' ?>" title="More filters" type="button" data-bs-toggle="collapse" data-bs-target="#auditMoreFilters"><i class="fas fa-filter"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-6">
|
||||
@@ -173,7 +173,7 @@ $view_empty = [
|
||||
<div class="row g-2 mt-0 align-items-center">
|
||||
<div class="col-lg-3 col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-bolt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-bolt"></i></span>
|
||||
<select class="form-select select2" name="action" onchange="this.form.submit()" aria-label="Action">
|
||||
<option value="">- Any action -</option>
|
||||
<?php
|
||||
|
||||
@@ -574,7 +574,7 @@ $status_looks = [
|
||||
<div class="input-group mb-2">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-key"></i></span>
|
||||
<input type="password" class="form-control font-monospace" data-toggle="password" value="<?= escapeHtml($backup_key) ?>" readonly autocomplete="off" aria-label="Backup encryption key" data-backup-key>
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-eye"></i></span>
|
||||
<button class="btn btn-light border clipboardjs" type="button" title="Copy the key" data-clipboard-text="<?= escapeHtml($backup_key) ?>"><i class="far fa-fw fa-copy"></i></button>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
@@ -614,7 +614,7 @@ $status_looks = [
|
||||
</div>
|
||||
<label class="form-label" for="devMailTo">Test inbox</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-envelope"></i></span>
|
||||
<input type="email" class="form-control" id="devMailTo" name="dev_mail_to" maxlength="200" placeholder="dev@yourcompany.com" value="<?= escapeHtml($dev_mail_to) ?>">
|
||||
</div>
|
||||
<div class="form-text">Every email goes here, with who it was for at the front of its subject.</div>
|
||||
@@ -645,7 +645,7 @@ $config_dev_mail_to = '<?= escapeHtml($dev_mail_to !== '' ? $dev_mail_to : 'dev@
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-key"></i></span>
|
||||
<input type="password" class="form-control" data-toggle="password" name="restore_key" placeholder="Its key, if from another ITFlow" autocomplete="off" aria-label="Its encryption key">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-eye"></i></span>
|
||||
</div>
|
||||
<div class="form-text">Up to <?= escapeHtml(backupFormatBytes(BACKUP_RESTORE_MAX_BYTES)) ?>. It joins the list as Uploaded, and its Restore window opens. A restore needs free space of about three times the backup's size.</div>
|
||||
<button type="submit" name="backup_upload" class="btn btn-sm btn-light border mt-2" data-backup-upload-button><i class="fas fa-fw fa-upload me-1"></i>Upload</button>
|
||||
|
||||
@@ -127,7 +127,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<div class="col-lg-5 col-md-6">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search canned responses..." title="Name or what it says">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-6">
|
||||
@@ -236,7 +236,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<i class="fas fa-fw fa-archive me-2"></i>Archive
|
||||
</a>
|
||||
<?php } ?>
|
||||
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?delete_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>"
|
||||
<a class="dropdown-item text-danger fw-bold confirm-link" href="post.php?delete_canned_response=<?= $canned_response_id ?>&csrf_token=<?= $csrf ?>"
|
||||
data-confirm-title="Delete <?= $name ?>?" data-confirm-text="It goes for good, with its record of use. Replies it went into stay as they are." data-confirm-button="Delete">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete
|
||||
</a>
|
||||
|
||||
@@ -126,7 +126,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<div class="col-lg-6 col-md-8">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?= escapeHtml($search) ?>" placeholder="Search <?= escapeHtml($config['many']) ?>..." title="Name or description">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-4">
|
||||
@@ -253,7 +253,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<?php if ($blocker !== '') { ?>
|
||||
<span class="dropdown-item disabled" title="<?= escapeHtml($blocker) ?>"><i class="fas fa-fw fa-trash me-2"></i>Delete</span>
|
||||
<?php } else { ?>
|
||||
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?delete_category=<?= $category_id ?>&csrf_token=<?= $csrf ?>"
|
||||
<a class="dropdown-item text-danger fw-bold confirm-link" href="post.php?delete_category=<?= $category_id ?>&csrf_token=<?= $csrf ?>"
|
||||
data-confirm-title="Delete <?= $name ?>?" data-confirm-text="Nothing uses it, so no record changes." data-confirm-button="Delete">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete
|
||||
</a>
|
||||
|
||||
@@ -70,7 +70,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header bg-dark py-2">
|
||||
<h3 class="card-title mt-2"><i class="fa fa-fw fa-file-contract me-2"></i>Contract Templates</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-file-contract me-2"></i>Contract Templates</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/contract_template/contract_template_add.php" data-modal-size="lg">
|
||||
<i class="fas fa-plus"></i><span class="d-none d-lg-inline ms-2">New Template</span>
|
||||
@@ -84,7 +84,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<div class="col-lg-5 col-md-6">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search templates..." title="Name, description or support hours">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -178,7 +178,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<?php } else { ?>
|
||||
<a class="dropdown-item text-danger" href="post.php?archive_contract_template=<?= $id ?>&csrf_token=<?= $csrf ?>" title="Kept, but not offered on a new contract"><i class="fas fa-fw fa-archive me-2"></i>Archive</a>
|
||||
<?php } ?>
|
||||
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?delete_contract_template=<?= $id ?>&csrf_token=<?= $csrf ?>"
|
||||
<a class="dropdown-item text-danger fw-bold confirm-link" href="post.php?delete_contract_template=<?= $id ?>&csrf_token=<?= $csrf ?>"
|
||||
data-confirm-title="Delete <?= $name ?>?" data-confirm-text="<?= intval($row['n_contracts']) ? 'The ' . intval($row['n_contracts']) . ' contract' . (intval($row['n_contracts']) === 1 ? '' : 's') . ' started from it keep their terms.' : 'Nothing was started from it.' ?>" data-confirm-button="Delete">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete
|
||||
</a>
|
||||
|
||||
@@ -536,7 +536,7 @@ $status_looks = [
|
||||
</div>
|
||||
<label class="form-label" for="cronAlertTo">Send to</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-envelope"></i></span>
|
||||
<input type="text" class="form-control" id="cronAlertTo" name="cron_alert_to" maxlength="500" placeholder="Every active admin" value="<?= escapeHtml($alert_to) ?>">
|
||||
</div>
|
||||
<div class="form-text">
|
||||
|
||||
@@ -85,7 +85,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<div class="col-lg-5 col-md-6">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search links..." title="Name, address or description">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -193,7 +193,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<i class="fas fa-fw fa-archive me-2"></i>Archive
|
||||
</a>
|
||||
<?php } ?>
|
||||
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?delete_custom_link=<?= $custom_link_id ?>&csrf_token=<?= $csrf ?>"
|
||||
<a class="dropdown-item text-danger fw-bold confirm-link" href="post.php?delete_custom_link=<?= $custom_link_id ?>&csrf_token=<?= $csrf ?>"
|
||||
data-confirm-title="Delete <?= $name ?>?" data-confirm-text="It goes from the <?= escapeHtml($location_config['label']) ?> for good. Archive it instead to keep it." data-confirm-button="Delete">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete
|
||||
</a>
|
||||
|
||||
@@ -123,7 +123,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<div class="col-lg-5 col-md-6">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search document templates..." title="Name, summary or what it says">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -227,7 +227,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<i class="fas fa-fw fa-archive me-2"></i>Archive
|
||||
</a>
|
||||
<?php } ?>
|
||||
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?delete_document_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>"
|
||||
<a class="dropdown-item text-danger fw-bold confirm-link" href="post.php?delete_document_template=<?= $template_id ?>&csrf_token=<?= $csrf ?>"
|
||||
data-confirm-title="Delete <?= $name ?>?" data-confirm-text="Its images go with it. Documents made from it stay as they are." data-confirm-button="Delete">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete
|
||||
</a>
|
||||
|
||||
@@ -26,7 +26,7 @@ $gs_backup_on = settingsChecked('backup_enabled', true);
|
||||
<div class="fw-semibold mb-1"><i class="fas fa-key text-body-secondary me-2"></i>Your backup key</div>
|
||||
<p class="small text-body-secondary mb-2">Every backup is locked with it, and without it none can be restored - on this server or another. Keep a copy somewhere other than this server, as a password manager.</p>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-lock"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-lock"></i></span>
|
||||
<input type="password" class="form-control font-monospace" value="<?= escapeHtml($gs_key) ?>" id="gsBackupKey" aria-label="Backup key" readonly data-gs-secret>
|
||||
<button type="button" class="btn btn-outline-secondary" data-gs-show="gsBackupKey" title="Show"><i class="far fa-eye"></i></button>
|
||||
<button type="button" class="btn btn-outline-secondary clipboardjs" data-clipboard-text="<?= escapeHtml($gs_key) ?>" title="Copy"><i class="far fa-copy"></i></button>
|
||||
|
||||
@@ -34,9 +34,9 @@ echo settingsPageStart('identity');
|
||||
<div class="itflow-settings-field" data-setting="redirect_uri">
|
||||
<label class="form-label" for="settingsRedirectUri">Redirect address</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-link"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-link"></i></span>
|
||||
<input type="text" class="form-control font-monospace" id="settingsRedirectUri" value="<?= escapeHtml($redirect_uri) ?>" readonly data-sso-redirect>
|
||||
<button type="button" class="btn btn-outline-secondary clipboardjs" data-clipboard-target="#settingsRedirectUri" title="Copy"><i class="fa fa-fw fa-copy"></i></button>
|
||||
<button type="button" class="btn btn-outline-secondary clipboardjs" data-clipboard-target="#settingsRedirectUri" title="Copy"><i class="fas fa-fw fa-copy"></i></button>
|
||||
</div>
|
||||
<div class="form-text">Under Authentication in the app registration, as a Web platform.</div>
|
||||
</div>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<p>
|
||||
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>
|
||||
<span class="right badge text-light" title="Steps done or skipped"><?= $nav_getting_started['done'] ?>/<?= $nav_getting_started['total'] ?></span>
|
||||
<?php } ?>
|
||||
</p>
|
||||
</a>
|
||||
@@ -158,7 +158,7 @@
|
||||
Managed Instances
|
||||
<?php $nav_managed_offline = managedOfflineCount(); ?>
|
||||
<?php if ($nav_managed_offline) { ?>
|
||||
<span class="right badge text-bg-danger" data-bs-toggle="tooltip" title="Not checking in" data-nav-managed-offline><?= $nav_managed_offline ?></span>
|
||||
<span class="right badge text-bg-danger" title="Not checking in" data-nav-managed-offline><?= $nav_managed_offline ?></span>
|
||||
<?php } ?>
|
||||
</p>
|
||||
</a>
|
||||
@@ -188,7 +188,7 @@
|
||||
Mail Queue
|
||||
<?php $nav_mail_failed = mailQueueSummary()['failed_week']; ?>
|
||||
<?php if ($nav_mail_failed) { ?>
|
||||
<span class="right badge text-bg-danger" data-bs-toggle="tooltip" title="Failed to send in the last week" data-nav-mail-failed><?= $nav_mail_failed ?></span>
|
||||
<span class="right badge text-bg-danger" title="Failed to send in the last week" data-nav-mail-failed><?= $nav_mail_failed ?></span>
|
||||
<?php } ?>
|
||||
</p>
|
||||
</a>
|
||||
|
||||
@@ -109,7 +109,7 @@ $money = function ($amount) use ($currency_format, $session_company_currency) {
|
||||
<div class="col-lg-5 col-md-6">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search agents..." title="Name or email">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -99,7 +99,7 @@ $filtered_dates = isset($_GET['dtf']) && $_GET['dtf'] !== '' && $_GET['dtf'] !==
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search the mail queue..." title="Who it is to or from, the subject, why it failed, or its number">
|
||||
<button class="btn btn-secondary" title="When it was queued" type="button" data-bs-toggle="collapse" data-bs-target="#advancedFilter"><i class="fas fa-calendar-alt"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-7 col-md-6">
|
||||
|
||||
@@ -77,7 +77,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<div class="col-md-5">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search instances..." title="Name, address, client or version">
|
||||
<button class="btn btn-dark" title="Search"><i class="fa fa-search"></i></button>
|
||||
<button class="btn btn-dark" title="Search"><i class="fas fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -191,7 +191,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<i class="fas fa-fw fa-unlink me-2"></i>Remove
|
||||
</a>
|
||||
<?php } else { ?>
|
||||
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?delete_managed_instance=<?= $instance_id ?>&csrf_token=<?= $csrf ?>"
|
||||
<a class="dropdown-item text-danger fw-bold confirm-link" href="post.php?delete_managed_instance=<?= $instance_id ?>&csrf_token=<?= $csrf ?>"
|
||||
data-confirm-title="Delete <?= $name ?>?" data-confirm-text="Its record and history here go for good. The instance itself isn't touched." data-confirm-button="Delete">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete
|
||||
</a>
|
||||
|
||||
@@ -55,7 +55,7 @@ ob_start();
|
||||
|
||||
?>
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-brain me-2"></i><?= $row ? 'Edit AI Model <span class="fw-normal text-white-50 ms-1">' . escapeHtml($row['ai_model_name']) . '</span>' : 'New AI Model' ?></h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-brain me-2"></i><?= $row ? 'Edit AI Model <span class="fw-normal text-white-50 ms-1">' . escapeHtml($row['ai_model_name']) . '</span>' : 'New AI Model' ?></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off" novalidate data-ai-model-form data-taken="<?= escapeHtml(json_encode($taken)) ?>" data-csrf="<?= $_SESSION['csrf_token'] ?>">
|
||||
@@ -71,7 +71,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="aiModelProvider">Provider <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-robot"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-robot"></i></span>
|
||||
<select class="form-select select2" name="provider" id="aiModelProvider" data-ai-model-provider>
|
||||
<option value="">- Select a provider -</option>
|
||||
<?php foreach ($providers as $id => $provider) { ?>
|
||||
@@ -85,7 +85,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="aiModelName">Model <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-brain"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-brain"></i></span>
|
||||
<input type="text" class="form-control font-monospace" name="model" id="aiModelName" maxlength="200" spellcheck="false" list="aiModelList" value="<?= escapeHtml($row['ai_model_name'] ?? '') ?>" placeholder="As the provider names it" data-ai-model-name>
|
||||
</div>
|
||||
<?= $error_for('model') ?>
|
||||
@@ -96,7 +96,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="aiModelUseCase">For <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-th-list"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-th-list"></i></span>
|
||||
<select class="form-select select2" name="use_case" id="aiModelUseCase" data-ai-model-use-case>
|
||||
<?php foreach ($use_cases as $case => $about) { ?>
|
||||
<option value="<?= escapeHtml($case) ?>" <?= $case === $use_case ? 'selected' : '' ?><?= selectOptionData(['description' => $about]) ?>><?= escapeHtml($case) ?></option>
|
||||
@@ -120,7 +120,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="aiModelTemperature">Temperature</label>
|
||||
<div class="input-group has-validation" style="max-width: 16rem;">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-thermometer-half"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-thermometer-half"></i></span>
|
||||
<input type="text" class="form-control" name="temperature" id="aiModelTemperature" inputmode="decimal" maxlength="5" value="<?= escapeHtml($temperature) ?>" placeholder="The model's own">
|
||||
</div>
|
||||
<?= $error_for('temperature') ?>
|
||||
@@ -134,10 +134,10 @@ ob_start();
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="<?= $row ? 'edit_ai_model' : 'add_ai_model' ?>" class="btn btn-primary text-bold" data-ai-save <?= $providers ? '' : 'disabled' ?>>
|
||||
<i class="fa fa-check me-2"></i><?= $row ? 'Save' : 'Create' ?>
|
||||
<button type="submit" name="<?= $row ? 'edit_ai_model' : 'add_ai_model' ?>" class="btn btn-primary fw-bold" data-ai-save <?= $providers ? '' : 'disabled' ?>>
|
||||
<i class="fas fa-check me-2"></i><?= $row ? 'Save' : 'Create' ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ ob_start();
|
||||
|
||||
?>
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-robot me-2"></i><?= $row ? 'Edit AI Provider <span class="fw-normal text-white-50 ms-1">' . escapeHtml($row['ai_provider_name']) . '</span>' : 'New AI Provider' ?></h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-robot me-2"></i><?= $row ? 'Edit AI Provider <span class="fw-normal text-white-50 ms-1">' . escapeHtml($row['ai_provider_name']) . '</span>' : 'New AI Provider' ?></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off" novalidate data-ai-provider-form data-kinds="<?= escapeHtml(json_encode($kinds_js)) ?>" data-has-key="<?= $has_key ? '1' : '0' ?>">
|
||||
@@ -56,7 +56,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="aiProviderKind">Kind <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-shapes"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-shapes"></i></span>
|
||||
<select class="form-select select2" name="kind" id="aiProviderKind" data-ai-kind>
|
||||
<?php foreach ($kinds as $key => $info) { ?>
|
||||
<option value="<?= $key ?>" <?= $key === $kind_key ? 'selected' : '' ?><?= selectOptionData(['icon' => aiProviderIcon($key), 'description' => $info['local'] ? 'Runs on your own network - nothing leaves it' : ($key === 'custom' ? 'Any other service that speaks the OpenAI API' : (string) parse_url($info['url'], PHP_URL_HOST))]) ?>><?= escapeHtml($info['name']) ?></option>
|
||||
@@ -69,7 +69,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="aiProviderName">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tag"></i></span>
|
||||
<input type="text" class="form-control" name="name" id="aiProviderName" maxlength="200" value="<?= escapeHtml($row ? $row['ai_provider_name'] : $kind['name']) ?>" placeholder="What you call it">
|
||||
</div>
|
||||
<?= $error_for('name') ?>
|
||||
@@ -78,7 +78,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="aiProviderUrl">Address <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-globe"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-globe"></i></span>
|
||||
<input type="url" class="form-control font-monospace small" name="url" id="aiProviderUrl" maxlength="500" spellcheck="false" value="<?= escapeHtml($row ? $row['ai_provider_api_url'] : $kind['url']) ?>" placeholder="https://.../v1/chat/completions">
|
||||
</div>
|
||||
<?= $error_for('url') ?>
|
||||
@@ -88,7 +88,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="aiProviderKey">API key <strong class="text-danger <?= $kind['key'] && !$has_key ? '' : 'd-none' ?>" data-ai-key-required>*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-key"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-key"></i></span>
|
||||
<input type="password" class="form-control font-monospace" name="api_key" id="aiProviderKey" maxlength="500" spellcheck="false" autocomplete="new-password"
|
||||
placeholder="<?= $has_key ? 'Saved - type a new one to replace it' : 'Paste its API key' ?>">
|
||||
</div>
|
||||
@@ -114,7 +114,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="aiProviderFirstModel">Model to use</label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-brain"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-brain"></i></span>
|
||||
<input type="text" class="form-control font-monospace" name="first_model" id="aiProviderFirstModel" maxlength="200" spellcheck="false" list="aiProviderModelList" placeholder="<?= escapeHtml($kind['example']) ?>" data-ai-first-model>
|
||||
</div>
|
||||
<?= $error_for('first_model') ?>
|
||||
@@ -130,10 +130,10 @@ ob_start();
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="<?= $row ? 'edit_ai_provider' : 'add_ai_provider' ?>" class="btn btn-primary text-bold" data-ai-save>
|
||||
<i class="fa fa-check me-2"></i><?= $row ? 'Save' : 'Create' ?>
|
||||
<button type="submit" name="<?= $row ? 'edit_ai_provider' : 'add_ai_provider' ?>" class="btn btn-primary fw-bold" data-ai-save>
|
||||
<i class="fas fa-check me-2"></i><?= $row ? 'Save' : 'Create' ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -324,7 +324,7 @@ ob_start();
|
||||
// Only that it didn't answer - it can be saved anyway
|
||||
if (answer.soft) {
|
||||
saveAnyway.value = '1';
|
||||
save.innerHTML = '<i class="fa fa-check me-2"></i>Save anyway';
|
||||
save.innerHTML = '<i class="fas fa-check me-2"></i>Save anyway';
|
||||
save.classList.remove('btn-primary');
|
||||
save.classList.add('btn-warning');
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-sticky-note"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-sticky-note"></i></span>
|
||||
<input type="text" class="form-control" name="name" placeholder="What uses it - the RMM, a PSA sync" maxlength="255" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
@@ -48,7 +48,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Expires <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar"></i></span>
|
||||
<input type="date" class="form-control" name="expire" min="<?= date('Y-m-d', strtotime('+1 day')) ?>" max="2999-12-31" value="<?= date('Y-m-d', strtotime('+1 year')) ?>" required>
|
||||
</div>
|
||||
<div class="form-text">It works until the start of that day.</div>
|
||||
@@ -62,7 +62,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">API key</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-key"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-key"></i></span>
|
||||
<input type="text" class="form-control font-monospace" value="<?= $key ?>" readonly>
|
||||
<button class="btn btn-outline-secondary clipboardjs" title="Copy API key" type="button" data-clipboard-text="<?= $key ?>"><i class="far fa-fw fa-copy"></i></button>
|
||||
</div>
|
||||
@@ -72,7 +72,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Credential decryption password</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-unlock-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-unlock-alt"></i></span>
|
||||
<input type="text" class="form-control font-monospace" value="<?= $decryptPW ?>" readonly>
|
||||
<button class="btn btn-outline-secondary clipboardjs" title="Copy decryption password" type="button" data-clipboard-text="<?= $decryptPW ?>"><i class="far fa-fw fa-copy"></i></button>
|
||||
</div>
|
||||
@@ -89,7 +89,7 @@ ob_start();
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_api_key" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Create</button>
|
||||
<button type="submit" name="add_api_key" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
@@ -34,7 +34,7 @@ if (!$row) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-sticky-note"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-sticky-note"></i></span>
|
||||
<input type="text" class="form-control" name="name" placeholder="What uses it" maxlength="255" value="<?= escapeHtml($row['api_key_name']) ?>" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
@@ -42,7 +42,7 @@ if (!$row) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Expires <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar"></i></span>
|
||||
<input type="date" class="form-control" name="expire" max="2999-12-31" value="<?= escapeHtml($row['api_key_expire']) ?>" required>
|
||||
</div>
|
||||
<div class="form-text">It works until the start of that day. A later day brings an expired key back.</div>
|
||||
@@ -52,7 +52,7 @@ if (!$row) { ?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_api_key" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="submit" name="edit_api_key" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -148,7 +148,7 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Close</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Close</button>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -67,7 +67,7 @@ ob_start();
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<?php if ($total) { ?>
|
||||
<button type="submit" name="clear_app_logs" class="btn btn-danger text-bold"><i class="fas fa-trash me-2"></i>Clear</button>
|
||||
<button type="submit" name="clear_app_logs" class="btn btn-danger fw-bold"><i class="fas fa-trash me-2"></i>Clear</button>
|
||||
<?php } ?>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@ $filter_categories = appLogCategories();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Search</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-search"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-search"></i></span>
|
||||
<input type="text" class="form-control" name="q" value="<?= escapeHtml($q_filter) ?>" placeholder="The category or what it says">
|
||||
</div>
|
||||
</div>
|
||||
@@ -25,7 +25,7 @@ $filter_categories = appLogCategories();
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Level</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-signal"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-signal"></i></span>
|
||||
<select class="form-select select2" name="view">
|
||||
<?php foreach ($views as $key => $definition) { ?>
|
||||
<option value="<?= $key ?>" <?= $view_filter === $key ? 'selected' : '' ?><?= selectOptionData(['icon' => 'fas ' . $definition['icon'], 'description' => $definition['title']]) ?>><?= $key === '' ? 'Every level' : escapeHtml($definition['label']) ?></option>
|
||||
@@ -36,7 +36,7 @@ $filter_categories = appLogCategories();
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Category</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-folder"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-folder"></i></span>
|
||||
<select class="form-select select2" name="category">
|
||||
<option value="">- Any category -</option>
|
||||
<?php foreach ($filter_categories as $category => $count) { ?>
|
||||
@@ -48,14 +48,14 @@ $filter_categories = appLogCategories();
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">From</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar"></i></span>
|
||||
<input type="date" class="form-control" name="dtf" value="<?= $date_from_filter ?>" max="2999-12-31">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">To</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar"></i></span>
|
||||
<input type="date" class="form-control" name="dtt" value="<?= $date_to_filter ?>" max="2999-12-31">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -189,7 +189,7 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Close</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Close</button>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -45,7 +45,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Search</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-search"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-search"></i></span>
|
||||
<input type="text" class="form-control" name="q" value="<?= escapeHtml($q_filter) ?>" placeholder="What was done, who, the client, the IP address or the browser">
|
||||
</div>
|
||||
</div>
|
||||
@@ -53,7 +53,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Showing</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-layer-group"></i></span>
|
||||
<select class="form-select select2" name="view">
|
||||
<?php foreach ($views as $key => $definition) { ?>
|
||||
<option value="<?= $key ?>" <?= $view_filter === $key ? 'selected' : '' ?><?= selectOptionData(['icon' => 'fas ' . $definition['icon'], 'description' => $definition['title']]) ?>><?= $key === '' ? 'Everything' : escapeHtml($definition['label']) ?></option>
|
||||
@@ -66,7 +66,7 @@ ob_start();
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Who</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-user"></i></span>
|
||||
<select class="form-select select2" name="user">
|
||||
<option value="">- Anyone -</option>
|
||||
<option value="system" <?= $user_filter === 'system' ? 'selected' : '' ?><?= selectOptionData(['icon' => 'fas fa-cog']) ?>>ITFlow itself</option>
|
||||
@@ -82,7 +82,7 @@ ob_start();
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Client</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-building"></i></span>
|
||||
<select class="form-select select2" name="client">
|
||||
<option value="">- Any client -</option>
|
||||
<?php
|
||||
@@ -97,7 +97,7 @@ ob_start();
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Type</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-shapes"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-shapes"></i></span>
|
||||
<select class="form-select select2" name="type">
|
||||
<option value="">- Any type -</option>
|
||||
<?php
|
||||
@@ -111,7 +111,7 @@ ob_start();
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Action</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-bolt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-bolt"></i></span>
|
||||
<select class="form-select select2" name="action">
|
||||
<option value="">- Any action -</option>
|
||||
<?php
|
||||
@@ -125,14 +125,14 @@ ob_start();
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">From</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar"></i></span>
|
||||
<input type="date" class="form-control" name="dtf" value="<?= $date_from_filter ?>" max="2999-12-31">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">To</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar"></i></span>
|
||||
<input type="date" class="form-control" name="dtt" value="<?= $date_to_filter ?>" max="2999-12-31">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -32,11 +32,11 @@ ob_start();
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-lock"></i></span>
|
||||
<input type="password" class="form-control" data-toggle="password" name="password" id="backupMasterKeyPassword" placeholder="To confirm it's you" autocomplete="current-password" required autofocus>
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-eye"></i></span>
|
||||
</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 fw-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>
|
||||
|
||||
@@ -69,7 +69,7 @@ ob_start();
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-key"></i></span>
|
||||
<input type="password" class="form-control" data-toggle="password" name="restore_key" id="restoreKey" placeholder="From Backup on the ITFlow that made it" autocomplete="off" required>
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-eye"></i></span>
|
||||
</div>
|
||||
<div class="form-text mb-3">This ITFlow's key doesn't open it - it was made on another ITFlow, whose Maintenance > Backup has its key. <span class="text-body-secondary">(<?= escapeHtml($restore_problem) ?>)</span></div>
|
||||
<?php } ?>
|
||||
@@ -78,7 +78,7 @@ ob_start();
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-lock"></i></span>
|
||||
<input type="password" class="form-control" data-toggle="password" name="password" id="restorePassword" placeholder="To confirm it's you" autocomplete="current-password" required>
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-eye"></i></span>
|
||||
</div>
|
||||
|
||||
<label class="form-label" for="restoreConfirm">Type <strong>RESTORE</strong> to confirm <strong class="text-danger">*</strong></label>
|
||||
@@ -91,7 +91,7 @@ ob_start();
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<?php if ($restore_can) { ?>
|
||||
<button type="submit" name="restore_backup" class="btn btn-danger text-bold"><i class="fas fa-fw fa-undo me-2"></i>Restore</button>
|
||||
<button type="submit" name="restore_backup" class="btn btn-danger fw-bold"><i class="fas fa-fw fa-undo me-2"></i>Restore</button>
|
||||
<?php } ?>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
|
||||
@@ -14,7 +14,7 @@ ob_start();
|
||||
|
||||
?>
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-comment-dots me-2"></i>New Canned Response</h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-comment-dots me-2"></i>New Canned Response</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">
|
||||
@@ -24,8 +24,8 @@ ob_start();
|
||||
<?php require __DIR__ . '/../../../includes/canned_response_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_canned_response" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="add_canned_response" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ if (!$response) { ?>
|
||||
$response_category_ids = cannedResponseCategoryIds($canned_response_id); ?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-comment-dots me-2"></i>Edit Canned Response <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($response['canned_response_name']) ?></span></h5>
|
||||
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-comment-dots me-2"></i>Edit Canned Response <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($response['canned_response_name']) ?></span></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" enctype="multipart/form-data" autocomplete="off">
|
||||
@@ -32,8 +32,8 @@ if (!$response) { ?>
|
||||
<?php require __DIR__ . '/../../../includes/canned_response_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_canned_response" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="edit_canned_response" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -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="fas 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">
|
||||
@@ -29,7 +29,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Canned responses</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-comment-dots"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-comment-dots"></i></span>
|
||||
<select class="form-select select2" name="canned_response_ids[]" multiple data-placeholder="Every current one">
|
||||
<?php while ($row = mysqli_fetch_assoc($sql)) { ?>
|
||||
<option value="<?= intval($row['canned_response_id']) ?>"><?= escapeHtml($row['canned_response_name']) ?><?= $row['canned_response_archived_at'] ? ' (archived)' : '' ?></option>
|
||||
@@ -50,8 +50,8 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="export_canned_responses" class="btn btn-primary text-bold"><i class="fa fa-download me-2"></i>Download</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="export_canned_responses" class="btn btn-primary fw-bold"><i class="fas fa-download me-2"></i>Download</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -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="fas 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">
|
||||
@@ -25,7 +25,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">File <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-file-code"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-file-code"></i></span>
|
||||
<input type="file" class="form-control" name="file" accept=".json,application/json" required>
|
||||
</div>
|
||||
</div>
|
||||
@@ -33,7 +33,7 @@ ob_start();
|
||||
<div class="mb-1">
|
||||
<label class="form-label">A canned response already here by name</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-clone"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-clone"></i></span>
|
||||
<select class="form-select select2" name="existing">
|
||||
<option value="skip" data-description="Yours stays as it is">Leave it</option>
|
||||
<option value="copy" data-description="The file's comes in under a name of its own - Waiting on you (2)">Add the file's as well</option>
|
||||
@@ -44,8 +44,8 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="import_canned_responses" class="btn btn-primary text-bold"><i class="fa fa-upload me-2"></i>Import</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="import_canned_responses" class="btn btn-primary fw-bold"><i class="fas fa-upload me-2"></i>Import</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ ob_start();
|
||||
<?php require __DIR__ . '/category_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_category" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="submit" name="add_category" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -37,7 +37,7 @@ if (!$category) { ?>
|
||||
<?php require __DIR__ . '/category_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_category" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="submit" name="edit_category" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -46,7 +46,7 @@ $c_max = $c_config['max'] ?? 200;
|
||||
<div class="mb-3">
|
||||
<label class="form-label">For <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-layer-group"></i></span>
|
||||
<select class="form-select select2" name="type" required>
|
||||
<option value="">- Select a type -</option>
|
||||
<?php foreach (categoryKinds() as $kind_key => $kind_config) { ?>
|
||||
@@ -62,7 +62,7 @@ $c_max = $c_config['max'] ?? 200;
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-list-ul"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-list-ul"></i></span>
|
||||
<input type="text" class="form-control" name="name" maxlength="<?= $c_max ?>" placeholder="<?= escapeHtml(ucfirst($c_config['one'] ?? 'category')) ?> name" value="<?= escapeHtml($c['category_name'] ?? '') ?>" required<?= $c ? '' : ' autofocus' ?> data-category-name>
|
||||
</div>
|
||||
<?php if ($c && $c_config && $c_config['by'] === 'name' && $c_used['all']) { ?>
|
||||
@@ -73,7 +73,7 @@ $c_max = $c_config['max'] ?? 200;
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Description</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" maxlength="255" placeholder="What it's for, and when to use it" value="<?= escapeHtml($c['category_description'] ?? '') ?>">
|
||||
</div>
|
||||
</div>
|
||||
@@ -89,7 +89,7 @@ $c_max = $c_config['max'] ?? 200;
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="input-group input-group-sm w-auto" title="Any other color">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-paint-brush"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-paint-brush"></i></span>
|
||||
<input type="color" class="form-control form-control-color" value="<?= $c_color ?: '#6c757d' ?>" aria-label="Custom color" data-category-color-pick>
|
||||
<input type="text" class="form-control font-monospace" style="width: 6rem" maxlength="7" value="<?= $c_color ?>" placeholder="None" pattern="#?[0-9a-fA-F]{6}" aria-label="Color as hex" data-category-color-hex>
|
||||
</div>
|
||||
@@ -100,7 +100,7 @@ $c_max = $c_config['max'] ?? 200;
|
||||
<label class="form-label">Icon</label>
|
||||
<input type="hidden" name="icon" value="<?= $c_icon ?>" data-category-icon>
|
||||
<div class="input-group mb-2">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-search"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-search"></i></span>
|
||||
<input type="search" class="form-control" placeholder="Search icons - or type any Font Awesome icon's name" aria-label="Search icons" data-category-icon-search>
|
||||
</div>
|
||||
<div class="itflow-tag-icons border rounded p-1" role="group" aria-label="Icons" data-category-icons>
|
||||
|
||||
@@ -87,7 +87,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Into <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-list-ul"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-list-ul"></i></span>
|
||||
<select class="form-select select2" name="into_category_id" data-placeholder="- Keep which <?= escapeHtml($config['one']) ?> -" required>
|
||||
<option value=""></option>
|
||||
<?php foreach ($into as $into_id => $row) { ?>
|
||||
@@ -100,7 +100,7 @@ ob_start();
|
||||
<p class="small text-secondary mb-0"><?= escapeHtml($merge_text) ?></p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="merge_categories" class="btn btn-primary text-bold"><i class="fas fa-compress-alt me-2"></i>Merge</button>
|
||||
<button type="submit" name="merge_categories" class="btn btn-primary fw-bold"><i class="fas fa-compress-alt me-2"></i>Merge</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -12,7 +12,7 @@ ob_start();
|
||||
?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-file-contract me-2"></i>New Contract Template</h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-file-contract me-2"></i>New Contract Template</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -21,8 +21,8 @@ ob_start();
|
||||
<?php require __DIR__ . '/contract_template_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_contract_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="add_contract_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ if (!$template) { ?>
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-file-contract me-2"></i>Edit Contract Template <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($template['contract_template_name']) ?></span></h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-file-contract me-2"></i>Edit Contract Template <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($template['contract_template_name']) ?></span></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -30,8 +30,8 @@ if (!$template) { ?>
|
||||
<small class="text-secondary d-block mt-3">Contracts already started from it keep their own terms.</small>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_contract_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="edit_contract_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -38,14 +38,14 @@ $tab = 'templateTab' . bin2hex(random_bytes(3));
|
||||
<div class="col-md-7">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tag"></i></span>
|
||||
<input type="text" class="form-control" name="name" maxlength="255" placeholder="Managed Services - Gold" value="<?= escapeHtml($t_value('name')) ?>" required<?= $t ? '' : ' autofocus' ?>>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<label class="form-label">Type</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-layer-group"></i></span>
|
||||
<select class="form-select select2" name="type">
|
||||
<?php foreach (CONTRACT_TYPES as $key => $type) { ?>
|
||||
<option value="<?= $key ?>"<?= $t_value('type', 'managed') === $key ? ' selected' : '' ?><?= selectOptionData(['description' => $type['about']]) ?>><?= escapeHtml($type['label']) ?></option>
|
||||
@@ -57,7 +57,7 @@ $tab = 'templateTab' . bin2hex(random_bytes(3));
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Description</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" maxlength="1000" placeholder="Who it suits, and what sets it apart" value="<?= escapeHtml($t_value('description')) ?>">
|
||||
</div>
|
||||
</div>
|
||||
@@ -65,7 +65,7 @@ $tab = 'templateTab' . bin2hex(random_bytes(3));
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Term</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-history"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-history"></i></span>
|
||||
<select class="form-select select2" name="term_months">
|
||||
<?php $terms = CONTRACT_TERMS + (!isset(CONTRACT_TERMS[$t_term]) ? [$t_term => contractTermLabel($t_term)] : []);
|
||||
ksort($terms);
|
||||
@@ -78,7 +78,7 @@ $tab = 'templateTab' . bin2hex(random_bytes(3));
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Notice to end it</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-bell"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-bell"></i></span>
|
||||
<input type="number" class="form-control" name="notice_days" min="0" max="365" value="<?= intval($t_value('notice_days', 30)) ?>">
|
||||
<span class="input-group-text">days</span>
|
||||
</div>
|
||||
@@ -96,7 +96,7 @@ $tab = 'templateTab' . bin2hex(random_bytes(3));
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Support hours</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-business-time"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-business-time"></i></span>
|
||||
<input type="text" class="form-control" name="support_hours" maxlength="100" placeholder="Mon-Fri 8am-6pm, emergencies 24/7" value="<?= escapeHtml($t_value('support_hours')) ?>">
|
||||
</div>
|
||||
</div>
|
||||
@@ -105,7 +105,7 @@ $tab = 'templateTab' . bin2hex(random_bytes(3));
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Hours included each month</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-hourglass-half"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-hourglass-half"></i></span>
|
||||
<input type="text" inputmode="decimal" class="form-control" name="monthly_hours" placeholder="None" value="<?= escapeHtml($t_hours($t_value('monthly_hours', 0))) ?>">
|
||||
<span class="input-group-text">hours</span>
|
||||
</div>
|
||||
@@ -113,7 +113,7 @@ $tab = 'templateTab' . bin2hex(random_bytes(3));
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Tell the owner under</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-bell"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-bell"></i></span>
|
||||
<input type="text" inputmode="decimal" class="form-control" name="hours_alert" placeholder="Don't tell" value="<?= escapeHtml($t_hours($t_value('hours_alert', 0))) ?>">
|
||||
<span class="input-group-text">hours left</span>
|
||||
</div>
|
||||
@@ -125,21 +125,21 @@ $tab = 'templateTab' . bin2hex(random_bytes(3));
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Hourly rate</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-dollar-sign"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-dollar-sign"></i></span>
|
||||
<input type="text" inputmode="decimal" class="form-control" name="rate_standard" placeholder="<?= escapeHtml($t_hints['rate']) ?>" value="<?= escapeHtml($t_money($t_value('rate_standard', ''))) ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">After hours</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-moon"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-moon"></i></span>
|
||||
<input type="text" inputmode="decimal" class="form-control" name="rate_after_hours" placeholder="<?= escapeHtml($t_hints['after_hours']) ?>" value="<?= escapeHtml($t_money($t_value('rate_after_hours', ''))) ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Net terms</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar"></i></span>
|
||||
<input type="number" class="form-control" name="net_terms" min="0" max="365" placeholder="<?= escapeHtml($t_hints['net_terms']) ?>" value="<?= escapeHtml((string) $t_value('net_terms', '')) ?>">
|
||||
<span class="input-group-text">days</span>
|
||||
</div>
|
||||
@@ -149,7 +149,7 @@ $tab = 'templateTab' . bin2hex(random_bytes(3));
|
||||
<label class="form-label">SLA by ticket priority</label>
|
||||
<?php foreach (CONTRACT_SLA_PRIORITIES as $priority => $part) { ?>
|
||||
<div class="input-group mb-2">
|
||||
<span class="input-group-text" style="width: 7rem;"><i class="fa fa-fw fa-stopwatch me-2"></i><?= $priority ?></span>
|
||||
<span class="input-group-text" style="width: 7rem;"><i class="fas fa-fw fa-stopwatch me-2"></i><?= $priority ?></span>
|
||||
<select class="form-select select2" name="sla_<?= $part ?>" aria-label="<?= $priority ?> priority SLA">
|
||||
<option value="0"><?= escapeHtml($t_hints['slas'][$priority]) ?></option>
|
||||
<?php foreach ($t_slas as $sla_id => $sla) { ?>
|
||||
|
||||
@@ -27,7 +27,7 @@ if (empty($cron_job_daily_at)) {
|
||||
ob_start();
|
||||
?>
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-clock me-2"></i>Edit Job <span class="fw-normal text-white-50 ms-1"><?= $cron_job_label ?></span></h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-clock me-2"></i>Edit Job <span class="fw-normal text-white-50 ms-1"><?= $cron_job_label ?></span></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -44,13 +44,13 @@ ob_start();
|
||||
<input type="checkbox" class="form-check-input" name="enabled" value="1" id="cronJobEnabledSwitch" <?= $cron_job_enabled == 1 ? 'checked' : '' ?>>
|
||||
<label class="form-check-label" for="cronJobEnabledSwitch">Runs on its schedule</label>
|
||||
</div>
|
||||
<small class="text-muted">Switched off, it only runs when someone asks it to with Run now.</small>
|
||||
<small class="text-body-secondary">Switched off, it only runs when someone asks it to with Run now.</small>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Schedule</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar"></i></span>
|
||||
<select class="form-select select2" name="schedule" id="cronJobSchedule">
|
||||
<?php if ($cron_job_interval_safe) { ?>
|
||||
<option value="Interval" <?= $cron_job_schedule === 'Interval' ? 'selected' : '' ?>>Every so many minutes</option>
|
||||
@@ -59,33 +59,33 @@ ob_start();
|
||||
</select>
|
||||
</div>
|
||||
<?php if (!$cron_job_interval_safe) { ?>
|
||||
<small class="text-muted">It only runs once a day - run more often, its work would be done twice.</small>
|
||||
<small class="text-body-secondary">It only runs once a day - run more often, its work would be done twice.</small>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="mb-3" id="cronJobIntervalGroup">
|
||||
<label class="form-label">Run every</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-redo"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-redo"></i></span>
|
||||
<input type="number" class="form-control" name="interval_minutes" value="<?= $cron_job_interval_minutes ?>" min="1" max="1440">
|
||||
<span class="input-group-text">minutes</span>
|
||||
</div>
|
||||
<small class="text-muted">Cron wakes once a minute, so 1 is as often as anything can run.</small>
|
||||
<small class="text-body-secondary">Cron wakes once a minute, so 1 is as often as anything can run.</small>
|
||||
</div>
|
||||
|
||||
<div class="mb-3" id="cronJobDailyGroup">
|
||||
<label class="form-label">Run at</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-clock"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-clock"></i></span>
|
||||
<input type="time" class="form-control" name="daily_at" value="<?= $cron_job_daily_at ?>">
|
||||
</div>
|
||||
<small class="text-muted">In ITFlow's time zone<?= !empty($session_timezone) ? ', ' . escapeHtml($session_timezone) : '' ?>. A run missed because the server was off happens when it's back, not a day later.</small>
|
||||
<small class="text-body-secondary">In ITFlow's time zone<?= !empty($session_timezone) ? ', ' . escapeHtml($session_timezone) : '' ?>. A run missed because the server was off happens when it's back, not a day later.</small>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_cron_job" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="edit_cron_job" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ ob_start();
|
||||
<?php require __DIR__ . '/custom_link_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_custom_link" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="submit" name="add_custom_link" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -32,7 +32,7 @@ if (!$custom_link) { ?>
|
||||
<?php require __DIR__ . '/custom_link_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_custom_link" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="submit" name="edit_custom_link" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -40,7 +40,7 @@ $l_description = (string) ($l['custom_link_description'] ?? '');
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tag"></i></span>
|
||||
<input type="text" class="form-control" name="name" maxlength="200" placeholder="What the menu says - RMM, Documentation, Book a call" value="<?= escapeHtml($l_name) ?>" required<?= $l ? '' : ' autofocus' ?> data-custom-link-name>
|
||||
</div>
|
||||
</div>
|
||||
@@ -48,7 +48,7 @@ $l_description = (string) ($l['custom_link_description'] ?? '');
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Goes to <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-link"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-link"></i></span>
|
||||
<input type="text" class="form-control" name="uri" maxlength="500" placeholder="https://..., /agent/page.php, mailto: or tel:" value="<?= escapeHtml($l['custom_link_uri'] ?? '') ?>" required data-custom-link-uri>
|
||||
<div class="invalid-feedback" data-custom-link-uri-problem></div>
|
||||
</div>
|
||||
@@ -61,7 +61,7 @@ $l_description = (string) ($l['custom_link_description'] ?? '');
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Shows in <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-bars"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-bars"></i></span>
|
||||
<select class="form-select select2" name="location" required data-custom-link-location>
|
||||
<?php foreach ($l_locations as $location => $location_config) { ?>
|
||||
<option value="<?= $location ?>"<?= $location === $l_location ? ' selected' : '' ?> data-about="<?= escapeHtml($location_config['about']) ?>"><?= escapeHtml($location_config['label']) ?></option>
|
||||
@@ -77,7 +77,7 @@ $l_description = (string) ($l['custom_link_description'] ?? '');
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Description</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" maxlength="500" placeholder="Shown when the link is hovered - what it's for" value="<?= escapeHtml($l_description) ?>" data-custom-link-description>
|
||||
</div>
|
||||
</div>
|
||||
@@ -86,7 +86,7 @@ $l_description = (string) ($l['custom_link_description'] ?? '');
|
||||
<label class="form-label">Icon</label>
|
||||
<input type="hidden" name="icon" value="<?= escapeHtml($l_icon) ?>" data-custom-link-icon>
|
||||
<div class="input-group mb-2">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-search"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-search"></i></span>
|
||||
<input type="search" class="form-control" placeholder="Search icons - or type any Font Awesome icon's name" aria-label="Search icons" data-custom-link-icon-search>
|
||||
</div>
|
||||
<div class="itflow-tag-icons border rounded p-1" role="group" aria-label="Icons">
|
||||
|
||||
@@ -12,7 +12,7 @@ ob_start();
|
||||
|
||||
?>
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-file-alt me-2"></i>New Document Template</h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-file-alt me-2"></i>New Document Template</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -22,8 +22,8 @@ ob_start();
|
||||
<?php require __DIR__ . '/document_template_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_document_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="add_document_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -12,14 +12,14 @@ 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="fas 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>
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-file-alt me-2"></i>Edit Document Template <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($template['document_template_name']) ?></span></h5>
|
||||
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-file-alt me-2"></i>Edit Document Template <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($template['document_template_name']) ?></span></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -30,8 +30,8 @@ if (!$template) { ?>
|
||||
<?php require __DIR__ . '/document_template_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_document_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="edit_document_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -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="fas 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">
|
||||
@@ -28,7 +28,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Document templates</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-file-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-file-alt"></i></span>
|
||||
<select class="form-select select2" name="document_template_ids[]" multiple data-placeholder="Every current one">
|
||||
<?php while ($row = mysqli_fetch_assoc($sql)) { ?>
|
||||
<option value="<?= intval($row['document_template_id']) ?>"><?= escapeHtml($row['document_template_name']) ?><?= $row['document_template_archived_at'] ? ' (archived)' : '' ?></option>
|
||||
@@ -45,8 +45,8 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="export_document_templates" class="btn btn-primary text-bold"><i class="fa fa-download me-2"></i>Download</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="export_document_templates" class="btn btn-primary fw-bold"><i class="fas fa-download me-2"></i>Download</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ ob_start();
|
||||
|
||||
if (!$template || ($name !== '' && !$fill_in)) { ?>
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-pen-square me-2"></i>Fill-in</h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-pen-square me-2"></i>Fill-in</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 fill-in is gone - it may have been taken out of the template.</div>
|
||||
@@ -35,7 +35,7 @@ if (!$template || ($name !== '' && !$fill_in)) { ?>
|
||||
?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-pen-square me-2"></i><?= $fill_in ? 'Edit Fill-in' : 'New Fill-in' ?> <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($template['document_template_name']) ?></span></h5>
|
||||
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-pen-square me-2"></i><?= $fill_in ? 'Edit Fill-in' : 'New Fill-in' ?> <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($template['document_template_name']) ?></span></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -48,7 +48,7 @@ if (!$template || ($name !== '' && !$fill_in)) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-pen-square"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-pen-square"></i></span>
|
||||
<input type="text" class="form-control" name="name" placeholder="Firewall Model" maxlength="41" pattern="[A-Za-z][A-Za-z0-9 _\-\/]{0,40}" value="<?= escapeHtml($fill_in['name'] ?? '') ?>" required autofocus>
|
||||
</div>
|
||||
<div class="form-text">
|
||||
@@ -60,7 +60,7 @@ if (!$template || ($name !== '' && !$fill_in)) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Answer</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-sliders-h"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-sliders-h"></i></span>
|
||||
<select class="form-select select2" name="type" id="documentFillInType">
|
||||
<?php foreach (TICKET_FILL_IN_TYPES as $key => $kind) { ?>
|
||||
<option value="<?= $key ?>" <?= $type === $key ? 'selected' : '' ?> data-icon="fas <?= $kind['icon'] ?>"><?= $kind['label'] ?></option>
|
||||
@@ -72,7 +72,7 @@ if (!$template || ($name !== '' && !$fill_in)) { ?>
|
||||
<div class="mb-3" id="documentFillInChoices" <?= $type === 'list' ? '' : 'hidden' ?>>
|
||||
<label class="form-label">Choices <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-list-ul"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-list-ul"></i></span>
|
||||
<textarea class="form-control" name="options" rows="4" placeholder="Critical High Normal"><?= escapeHtml(implode("\n", $fill_in['options'] ?? [])) ?></textarea>
|
||||
</div>
|
||||
<div class="form-text">One per line.</div>
|
||||
@@ -81,7 +81,7 @@ if (!$template || ($name !== '' && !$fill_in)) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Help</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-info-circle"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-info-circle"></i></span>
|
||||
<input type="text" class="form-control" name="help" maxlength="255" placeholder="Shown under it - as on the label on the back" value="<?= escapeHtml($fill_in['help'] ?? '') ?>">
|
||||
</div>
|
||||
</div>
|
||||
@@ -94,8 +94,8 @@ if (!$template || ($name !== '' && !$fill_in)) { ?>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="save_document_template_fill_in" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="save_document_template_fill_in" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -24,14 +24,14 @@ $ai_model = aiReady('Documentation') ? getAiModel('Documentation') : null;
|
||||
<div class="col-lg-5">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-file-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-file-alt"></i></span>
|
||||
<input type="text" class="form-control" name="name" placeholder="What it is - Network Overview" maxlength="200" value="<?= escapeHtml($t['document_template_name'] ?? '') ?>" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-7">
|
||||
<label class="form-label">Summary</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" placeholder="One line on what it covers - shown when an agent picks a template" maxlength="500" value="<?= escapeHtml($t['document_template_description'] ?? '') ?>">
|
||||
</div>
|
||||
</div>
|
||||
@@ -41,9 +41,9 @@ $ai_model = aiReady('Documentation') ? getAiModel('Documentation') : null;
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="documentTemplatePrompt">Draft it with AI</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-magic"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-magic"></i></span>
|
||||
<input type="text" class="form-control" id="documentTemplatePrompt" placeholder="What it is for - a network troubleshooting guide for junior technicians" data-document-template-prompt>
|
||||
<button class="btn btn-info" type="button" data-document-template-generate><i class="fa fa-fw fa-magic me-1"></i>Draft</button>
|
||||
<button class="btn btn-info" type="button" data-document-template-generate><i class="fas fa-fw fa-magic me-1"></i>Draft</button>
|
||||
</div>
|
||||
<small class="text-secondary">Replaces what is in the editor below.</small>
|
||||
</div>
|
||||
@@ -81,7 +81,7 @@ $ai_model = aiReady('Documentation') ? getAiModel('Documentation') : null;
|
||||
}
|
||||
var label = button.innerHTML;
|
||||
button.disabled = true;
|
||||
button.innerHTML = '<i class="fa fa-spinner fa-spin me-1"></i>Drafting...';
|
||||
button.innerHTML = '<i class="fas fa-spinner fa-spin me-1"></i>Drafting...';
|
||||
fetch('/agent/ajax.php?ai_create_document_template', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||
|
||||
@@ -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="fas 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">
|
||||
@@ -25,7 +25,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">File <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-file-code"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-file-code"></i></span>
|
||||
<input type="file" class="form-control" name="file" accept=".json,application/json" required>
|
||||
</div>
|
||||
</div>
|
||||
@@ -33,7 +33,7 @@ ob_start();
|
||||
<div class="mb-1">
|
||||
<label class="form-label">A document template already here by name</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-clone"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-clone"></i></span>
|
||||
<select class="form-select select2" name="existing">
|
||||
<option value="skip" data-description="Yours stays as it is">Leave it</option>
|
||||
<option value="copy" data-description="The file's comes in under a name of its own - Network Overview (2)">Add the file's as well</option>
|
||||
@@ -44,8 +44,8 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="import_document_templates" class="btn btn-primary text-bold"><i class="fa fa-upload me-2"></i>Import</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="import_document_templates" class="btn btn-primary fw-bold"><i class="fas fa-upload me-2"></i>Import</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -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="fas 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="fas 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">
|
||||
@@ -40,7 +40,7 @@ if (!$template) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Every one of these should have a document from it</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-users"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-users"></i></span>
|
||||
<select class="form-select select2" name="required" id="documentTemplateRequired">
|
||||
<option value="<?= DOCUMENT_TEMPLATE_REQUIRED_NONE ?>" <?= $required === DOCUMENT_TEMPLATE_REQUIRED_NONE ? 'selected' : '' ?>>No one in particular</option>
|
||||
<option value="<?= DOCUMENT_TEMPLATE_REQUIRED_EVERY ?>" <?= $required === DOCUMENT_TEMPLATE_REQUIRED_EVERY ? 'selected' : '' ?>>Every client</option>
|
||||
@@ -53,7 +53,7 @@ if (!$template) { ?>
|
||||
<div class="mb-3" id="documentTemplateRequiredTags" <?= $required === DOCUMENT_TEMPLATE_REQUIRED_TAGGED ? '' : 'hidden' ?>>
|
||||
<label class="form-label">Client tags</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tags"></i></span>
|
||||
<select class="form-select select2" name="tags[]" multiple data-placeholder="- Select client tags -">
|
||||
<?php foreach (tagOptionsFor('client', $tag_ids) as $tag) { ?>
|
||||
<?= tagOptionHtml($tag, $tag_ids) ?>
|
||||
@@ -66,7 +66,7 @@ if (!$template) { ?>
|
||||
<div class="mb-1">
|
||||
<label class="form-label">Review the documents made from it</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar-check"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar-check"></i></span>
|
||||
<select class="form-select select2" name="review_months">
|
||||
<?php foreach (DOCUMENT_TEMPLATE_REVIEW_MONTHS as $months => $label) { ?>
|
||||
<option value="<?= $months ?>" <?= intval($template['document_template_review_months']) === $months ? 'selected' : '' ?>><?= $label ?></option>
|
||||
@@ -79,8 +79,8 @@ if (!$template) { ?>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="save_document_template_required" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="save_document_template_required" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -19,14 +19,14 @@ 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="fas 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>
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-file-alt me-2"></i>New document from <strong><?= escapeHtml($template['document_template_name']) ?></strong></h5>
|
||||
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-file-alt me-2"></i>New document from <strong><?= escapeHtml($template['document_template_name']) ?></strong></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="/agent/post.php" method="post" autocomplete="off" data-doc-template-make>
|
||||
@@ -37,7 +37,7 @@ if (!$template || $template['document_template_archived_at']) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Client <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-user"></i></span>
|
||||
<select class="form-select select2" name="client_id" required data-doc-template-client>
|
||||
<option value="">- Select a client -</option>
|
||||
<?php
|
||||
@@ -55,7 +55,7 @@ if (!$template || $template['document_template_archived_at']) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-file-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-file-alt"></i></span>
|
||||
<input type="text" class="form-control" name="name" placeholder="<?= escapeHtml($template['document_template_name']) ?>" maxlength="200">
|
||||
</div>
|
||||
</div>
|
||||
@@ -63,15 +63,15 @@ if (!$template || $template['document_template_archived_at']) { ?>
|
||||
<div class="mb-2">
|
||||
<label class="form-label">Summary</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" placeholder="<?= escapeHtml($template['document_template_description'] ?: 'One line on what it covers') ?>" maxlength="500">
|
||||
</div>
|
||||
</div>
|
||||
<small class="text-secondary">It goes in the client's Files at the top level, and opens to fill in.</small>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_document_from_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="add_document_from_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -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="fas fa-fw fa-copy me-2"></i>New Documents</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body text-center text-secondary py-5">That document template is gone or archived.</div>
|
||||
@@ -34,7 +34,7 @@ if (!$template || $template['document_template_archived_at']) { ?>
|
||||
?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-copy me-2"></i>New documents from <strong><?= escapeHtml($template['document_template_name']) ?></strong></h5>
|
||||
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-copy me-2"></i>New documents from <strong><?= escapeHtml($template['document_template_name']) ?></strong></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -45,7 +45,7 @@ if (!$template || $template['document_template_archived_at']) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Clients <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-users"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-users"></i></span>
|
||||
<select class="form-select select2" name="client_ids[]" multiple required data-placeholder="- Select clients -">
|
||||
<?php
|
||||
$sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name, client_lead FROM clients WHERE client_archived_at IS NULL" . clientNotLeadSql($picked) . " ORDER BY client_name ASC");
|
||||
@@ -87,8 +87,8 @@ if (!$template || $template['document_template_archived_at']) { ?>
|
||||
<small class="text-secondary">Each goes in its client's Files at the top level, named and summed up as the template is.</small>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="make_documents_from_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="make_documents_from_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ ob_start();
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_labor_cost_default" class="btn btn-primary text-bold"><i class="fas fa-fw fa-check me-2"></i>Save</button>
|
||||
<button type="submit" name="edit_labor_cost_default" class="btn btn-primary fw-bold"><i class="fas fa-fw fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -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 fw-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>
|
||||
|
||||
@@ -213,7 +213,7 @@ if (!managerEnabled()) { ?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="<?= $is_new ? 'add_managed_instance' : 'edit_managed_instance' ?>" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i><?= $is_new ? 'Create' : 'Save' ?></button>
|
||||
<button type="submit" name="<?= $is_new ? 'add_managed_instance' : 'edit_managed_instance' ?>" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i><?= $is_new ? 'Create' : 'Save' ?></button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -118,8 +118,8 @@ if (!officesReady()) { ?>
|
||||
<?php if ($office) { ?>
|
||||
<a href="post.php?remove_office=<?= $office_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" class="btn btn-outline-danger me-auto confirm-link" data-confirm-title="Remove this office?" data-confirm-text="Those who work there go back to the main office." data-confirm-button="Remove" data-office-remove><i class="fas fa-trash me-2"></i>Remove</a>
|
||||
<?php } ?>
|
||||
<button type="submit" name="save_office" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i><?= $office ? 'Save' : 'Create' ?></button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="save_office" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i><?= $office ? 'Save' : 'Create' ?></button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ ob_start();
|
||||
?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-credit-card me-2"></i>New Payment Method</h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-credit-card me-2"></i>New Payment Method</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -23,8 +23,8 @@ ob_start();
|
||||
<?php require __DIR__ . '/payment_method_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_payment_method" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="add_payment_method" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ if (!$payment_method) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Change them to <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-random"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-random"></i></span>
|
||||
<select class="form-select select2" name="move_to" required>
|
||||
<option value="">- Select a payment method -</option>
|
||||
<?php foreach ($others as $other_id => $other) { ?>
|
||||
@@ -60,7 +60,7 @@ if (!$payment_method) { ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="delete_payment_method" class="btn btn-danger text-bold"><i class="fas fa-trash me-2"></i><?= $usage['total'] ? 'Merge and delete' : 'Delete' ?></button>
|
||||
<button type="submit" name="delete_payment_method" class="btn btn-danger fw-bold"><i class="fas fa-trash me-2"></i><?= $usage['total'] ? 'Merge and delete' : 'Delete' ?></button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -16,7 +16,7 @@ if (!$payment_method) { ?>
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-credit-card me-2"></i>Edit Payment Method <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($payment_method['payment_method_name']) ?></span></h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-credit-card me-2"></i>Edit Payment Method <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($payment_method['payment_method_name']) ?></span></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -30,8 +30,8 @@ if (!$payment_method) { ?>
|
||||
<?php require __DIR__ . '/payment_method_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_payment_method" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="edit_payment_method" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ $m_usage = $m ? paymentMethodUsageFor($m_name) : ['total' => 0];
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-credit-card"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-credit-card"></i></span>
|
||||
<input type="text" class="form-control" name="name" maxlength="200" placeholder="Check, ACH, Cash, Company Amex" value="<?= escapeHtml($m_name) ?>" required<?= $m_online ? ' readonly' : ($m ? '' : ' autofocus') ?>>
|
||||
</div>
|
||||
<?php if ($m_online) { ?>
|
||||
@@ -33,7 +33,7 @@ $m_usage = $m ? paymentMethodUsageFor($m_name) : ['total' => 0];
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Description</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" maxlength="250" placeholder="Which account, card or bank - what it's for" value="<?= escapeHtml($m['payment_method_description'] ?? '') ?>">
|
||||
</div>
|
||||
</div>
|
||||
@@ -41,7 +41,7 @@ $m_usage = $m ? paymentMethodUsageFor($m_name) : ['total' => 0];
|
||||
<div class="mb-1">
|
||||
<label class="form-label">Offered for</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-exchange-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-exchange-alt"></i></span>
|
||||
<select class="form-select select2" name="use">
|
||||
<?php foreach (PAYMENT_METHOD_USES as $value => $use) { ?>
|
||||
<option value="<?= $value ?>"<?= $value === $m_use ? ' selected' : '' ?>><?= escapeHtml($use['label']) ?></option>
|
||||
|
||||
@@ -64,7 +64,7 @@ ob_start();
|
||||
?>
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title">
|
||||
<i class="fa fa-fw fa-credit-card me-2"></i><?= $row ? 'Edit Payment Provider <span class="fw-normal text-white-50 ms-1">' . escapeHtml($name) . '</span>' : 'New Payment Provider' ?>
|
||||
<i class="fas fa-fw fa-credit-card me-2"></i><?= $row ? 'Edit Payment Provider <span class="fw-normal text-white-50 ms-1">' . escapeHtml($name) . '</span>' : 'New Payment Provider' ?>
|
||||
<?php if ($mode !== '') { ?>
|
||||
<span class="badge <?= $mode === 'live' ? 'text-bg-success' : 'text-bg-warning' ?> ms-2 align-middle" data-provider-mode><?= $mode === 'live' ? 'Live' : 'Test' ?></span>
|
||||
<?php } ?>
|
||||
@@ -85,7 +85,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="paymentProviderName">Provider <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-credit-card"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-credit-card"></i></span>
|
||||
<select class="form-select select2" name="provider" id="paymentProviderName">
|
||||
<?php foreach ($kinds as $kind_name => $kind_info) { ?>
|
||||
<option value="<?= escapeHtml($kind_name) ?>" <?= $kind_name === $name ? 'selected' : '' ?> <?= isset($taken[$kind_name]) ? 'disabled' : '' ?>><?= escapeHtml($kind_name) ?><?= isset($taken[$kind_name]) ? ' - set up already' : '' ?></option>
|
||||
@@ -107,7 +107,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="paymentProviderDescription">Description</label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" id="paymentProviderDescription" maxlength="250" placeholder="What it is for, if you like" value="<?= escapeHtml($row['payment_provider_description'] ?? '') ?>">
|
||||
</div>
|
||||
<?= $error_for('description') ?>
|
||||
@@ -119,7 +119,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="paymentProviderPublicKey">Publishable key <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-eye"></i></span>
|
||||
<input type="text" class="form-control font-monospace" name="public_key" id="paymentProviderPublicKey" maxlength="250" spellcheck="false" placeholder="<?= escapeHtml($kind['public_example']) ?>" value="<?= escapeHtml($row['payment_provider_public_key'] ?? '') ?>">
|
||||
</div>
|
||||
<?= $error_for('public_key') ?>
|
||||
@@ -128,7 +128,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="paymentProviderSecretKey">Secret key <?= $row ? '' : '<strong class="text-danger">*</strong>' ?></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-key"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-key"></i></span>
|
||||
<input type="password" class="form-control font-monospace" name="private_key" id="paymentProviderSecretKey" maxlength="250" spellcheck="false" autocomplete="new-password"
|
||||
placeholder="<?= $row && trim((string) $row['payment_provider_private_key']) !== '' ? 'Saved - type a new one to replace it' : escapeHtml($kind['secret_example']) ?>">
|
||||
</div>
|
||||
@@ -146,7 +146,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="paymentProviderAccount">Payments go into <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-piggy-bank"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-piggy-bank"></i></span>
|
||||
<select class="form-select select2" name="account" id="paymentProviderAccount">
|
||||
<option value="">- Select an account -</option>
|
||||
<?php while ($account = mysqli_fetch_assoc($accounts)) { ?>
|
||||
@@ -162,7 +162,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="paymentProviderThreshold">Card limit</label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-shopping-cart"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-shopping-cart"></i></span>
|
||||
<input type="text" class="form-control" name="threshold" id="paymentProviderThreshold" inputmode="decimal" maxlength="16" placeholder="No limit" value="<?= $threshold > 0 ? escapeHtml(number_format($threshold, 2, '.', '')) : '' ?>">
|
||||
<?php if ($currency !== '') { ?><span class="input-group-text"><?= escapeHtml($currency) ?></span><?php } ?>
|
||||
</div>
|
||||
@@ -184,7 +184,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="paymentProviderVendor">Paid to <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-building"></i></span>
|
||||
<select class="form-select select2" name="expense_vendor" id="paymentProviderVendor">
|
||||
<option value="">- Select a vendor -</option>
|
||||
<?php while ($vendor = mysqli_fetch_assoc($vendors)) { ?>
|
||||
@@ -199,7 +199,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="paymentProviderCategory">Category <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-list"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-list"></i></span>
|
||||
<select class="form-select select2" name="expense_category" id="paymentProviderCategory">
|
||||
<option value="">- Select a category -</option>
|
||||
<?= categoryOptionsHtml('Expense', $category_id ?: null) ?>
|
||||
@@ -224,7 +224,7 @@ ob_start();
|
||||
<div class="col-sm-6 mb-3">
|
||||
<label class="form-label" for="paymentProviderCardFeePercent">Percent</label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-percent"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-percent"></i></span>
|
||||
<input type="text" class="form-control" name="card_fee_percent" id="paymentProviderCardFeePercent" inputmode="decimal" maxlength="5" placeholder="2.9" value="<?= $card_fee_percent > 0 ? escapeHtml(rtrim(rtrim(number_format($card_fee_percent, 2, '.', ''), '0'), '.')) : '' ?>">
|
||||
<span class="input-group-text">%</span>
|
||||
</div>
|
||||
@@ -233,7 +233,7 @@ ob_start();
|
||||
<div class="col-sm-6 mb-3">
|
||||
<label class="form-label" for="paymentProviderCardFeeFixed">Plus</label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-coins"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-coins"></i></span>
|
||||
<input type="text" class="form-control" name="card_fee_fixed" id="paymentProviderCardFeeFixed" inputmode="decimal" maxlength="6" placeholder="0.30" value="<?= $card_fee_fixed > 0 ? escapeHtml(number_format($card_fee_fixed, 2, '.', '')) : '' ?>">
|
||||
<?php if ($currency !== '') { ?><span class="input-group-text"><?= escapeHtml($currency) ?></span><?php } ?>
|
||||
</div>
|
||||
@@ -245,10 +245,10 @@ ob_start();
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="<?= $row ? 'edit_payment_provider' : 'add_payment_provider' ?>" class="btn btn-primary text-bold" data-provider-save <?= !$row && !$free_kinds ? 'disabled' : '' ?>>
|
||||
<i class="fa fa-check me-2"></i><?= $row ? 'Save' : 'Create' ?>
|
||||
<button type="submit" name="<?= $row ? 'edit_payment_provider' : 'add_payment_provider' ?>" class="btn btn-primary fw-bold" data-provider-save <?= !$row && !$free_kinds ? 'disabled' : '' ?>>
|
||||
<i class="fas fa-check me-2"></i><?= $row ? 'Save' : 'Create' ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ ob_start();
|
||||
|
||||
?>
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-bullhorn me-2"></i>New Announcement</h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-bullhorn me-2"></i>New Announcement</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -18,8 +18,8 @@ ob_start();
|
||||
<?php require __DIR__ . '/../../../includes/announcement_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_portal_announcement" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Post Announcement</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="add_portal_announcement" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Post Announcement</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ if (!$announcement) { ?>
|
||||
<div class="modal-body text-center text-secondary py-5">That announcement is gone.</div>
|
||||
<?php } else { ?>
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-bullhorn me-2"></i>Edit Announcement <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($announcement['announcement_title']) ?></span></h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-bullhorn me-2"></i>Edit Announcement <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($announcement['announcement_title']) ?></span></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -23,8 +23,8 @@ if (!$announcement) { ?>
|
||||
<?php require __DIR__ . '/../../../includes/announcement_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_portal_announcement" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="edit_portal_announcement" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php }
|
||||
|
||||
@@ -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 fw-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>
|
||||
|
||||
@@ -28,8 +28,8 @@ ob_start();
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_project_template" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="add_project_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_project_template" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="edit_project_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -53,7 +53,7 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_ticket_template_to_project_template" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Add</button>
|
||||
<button type="submit" name="add_ticket_template_to_project_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Add</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -46,7 +46,7 @@ ob_start();
|
||||
|
||||
<label class="form-label">ITFlow client <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-user"></i></span>
|
||||
<select class="form-select select2" name="client_id" required>
|
||||
<option value="">- Select a client -</option>
|
||||
<?php while ($client = mysqli_fetch_assoc($clients)) {
|
||||
@@ -58,8 +58,8 @@ ob_start();
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="link_rmm_client" class="btn btn-primary text-bold"><i class="fa fa-link me-2"></i>Link</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="link_rmm_client" class="btn btn-primary fw-bold"><i class="fas fa-link me-2"></i>Link</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php
|
||||
|
||||
@@ -68,7 +68,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="rmmProviderKind">RMM <?= $row ? '' : '<strong class="text-danger">*</strong>' ?></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-shapes"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-shapes"></i></span>
|
||||
<select class="form-select select2" name="kind" id="rmmProviderKind" data-rmm-kind <?= $row ? 'disabled' : '' ?>>
|
||||
<?php foreach ($kinds as $key => $info) { ?>
|
||||
<option value="<?= escapeHtml($key) ?>" <?= $key === $kind_key ? 'selected' : '' ?><?= selectOptionData(['icon' => $info['icon'], 'description' => $info['about']]) ?>><?= escapeHtml($info['name']) ?></option>
|
||||
@@ -82,7 +82,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="rmmProviderName">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tag"></i></span>
|
||||
<input type="text" class="form-control" name="name" id="rmmProviderName" maxlength="100" value="<?= escapeHtml($row ? $row['rmm_provider_name'] : $kind['name']) ?>" placeholder="What you call it">
|
||||
</div>
|
||||
<?= $error_for('name') ?>
|
||||
@@ -104,7 +104,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="<?= $id ?>"><?= escapeHtml($about['label']) ?> <?= !empty($about['required']) && !($secret && $saved !== '') ? '<strong class="text-danger">*</strong>' : '' ?></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw <?= escapeHtml($about['icon']) ?>"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw <?= escapeHtml($about['icon']) ?>"></i></span>
|
||||
<?php if ($secret) { ?>
|
||||
<input type="password" class="form-control font-monospace" name="<?= $field ?>" id="<?= $id ?>" maxlength="500" spellcheck="false" autocomplete="new-password" placeholder="<?= escapeHtml($placeholder) ?>" <?= $shown ? '' : 'disabled' ?>>
|
||||
<?php } else { ?>
|
||||
@@ -125,7 +125,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="rmmProviderAlertLevel">Alerts open tickets</label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-bell"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-bell"></i></span>
|
||||
<select class="form-select select2" name="alert_level" id="rmmProviderAlertLevel" data-rmm-alert-level>
|
||||
<?php foreach (rmmAlertLevels() as $level_key => $level_label) { ?>
|
||||
<option value="<?= $level_key ?>" <?= $level_key === $alert_level ? 'selected' : '' ?>><?= escapeHtml($level_label) ?></option>
|
||||
@@ -139,7 +139,7 @@ ob_start();
|
||||
<div class="mb-3 <?= $alert_level === '' ? 'd-none' : '' ?>" data-rmm-alert-more>
|
||||
<label class="form-label" for="rmmProviderAlertCategory">Ticket category</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-layer-group"></i></span>
|
||||
<select class="form-select select2" name="alert_category_id" id="rmmProviderAlertCategory">
|
||||
<option value="0">- Not categorized -</option>
|
||||
<?= categoryOptionsHtml('Ticket', $alert_category_id ?: null) ?>
|
||||
@@ -152,10 +152,10 @@ ob_start();
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="<?= $row ? 'edit_rmm_provider' : 'add_rmm_provider' ?>" class="btn btn-primary text-bold" data-rmm-provider-save>
|
||||
<i class="fa fa-check me-2"></i><?= $row ? 'Save' : 'Create' ?>
|
||||
<button type="submit" name="<?= $row ? 'edit_rmm_provider' : 'add_rmm_provider' ?>" class="btn btn-primary fw-bold" data-rmm-provider-save>
|
||||
<i class="fas fa-check me-2"></i><?= $row ? 'Save' : 'Create' ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ ob_start();
|
||||
<?php require __DIR__ . '/role_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_role" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="submit" name="add_role" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -35,7 +35,7 @@ if (!$role) { ?>
|
||||
<?php require __DIR__ . '/role_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_role" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="submit" name="edit_role" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -22,7 +22,7 @@ $r_admin_locked = ($role_admin_blocker ?? '') !== '';
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user-tag"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-user-tag"></i></span>
|
||||
<input type="text" class="form-control" name="name" maxlength="200" placeholder="Help Desk, Billing, Field Tech" value="<?= escapeHtml($r['role_name'] ?? '') ?>" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
@@ -30,7 +30,7 @@ $r_admin_locked = ($role_admin_blocker ?? '') !== '';
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Description</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" maxlength="200" placeholder="Who it is for" value="<?= escapeHtml($r['role_description'] ?? '') ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -23,7 +23,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Date <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar-day"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar-day"></i></span>
|
||||
<input type="date" class="form-control" name="holiday_date" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
@@ -31,7 +31,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tag"></i></span>
|
||||
<input type="text" class="form-control" name="holiday_name" maxlength="200" placeholder="Christmas Day, Office closed for the move" required>
|
||||
</div>
|
||||
</div>
|
||||
@@ -39,7 +39,7 @@ ob_start();
|
||||
<div class="small text-secondary"><i class="fas fa-fw fa-stopwatch me-1"></i>No SLA clock runs on the day at all, the same as a day outside your business days. Adding it 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="add_holiday" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="submit" name="add_holiday" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -43,7 +43,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Year <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar-alt"></i></span>
|
||||
<input type="number" class="form-control" name="holiday_year" min="2000" max="2100" step="1" value="<?= $offer_year ?>" required autofocus>
|
||||
</div>
|
||||
<small class="text-secondary">
|
||||
@@ -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 fw-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>
|
||||
|
||||
@@ -24,7 +24,7 @@ ob_start();
|
||||
<?php require __DIR__ . '/sla_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_sla" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="submit" name="add_sla" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -38,7 +38,7 @@ if (!$sla) { ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_sla" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="submit" name="edit_sla" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -30,7 +30,7 @@ $f_day_minutes = slaBusinessDayMinutes();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-stopwatch"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-stopwatch"></i></span>
|
||||
<input type="text" class="form-control" name="name" maxlength="200" placeholder="Standard Support, Priority Support, Critical Response" value="<?= escapeHtml($f_name) ?>" required<?= $sla ? '' : ' autofocus' ?>>
|
||||
</div>
|
||||
</div>
|
||||
@@ -38,7 +38,7 @@ $f_day_minutes = slaBusinessDayMinutes();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Description</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" maxlength="500" placeholder="What it covers, and who gets it" value="<?= escapeHtml($f_description) ?>">
|
||||
</div>
|
||||
</div>
|
||||
@@ -46,7 +46,7 @@ $f_day_minutes = slaBusinessDayMinutes();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Response target <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-reply"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-reply"></i></span>
|
||||
<input type="number" class="form-control" name="response_hours" min="0" max="8760" step="1" placeholder="0" value="<?= $f_hours($f_response) ?>" aria-label="Response target, hours">
|
||||
<span class="input-group-text">hours</span>
|
||||
<input type="number" class="form-control" name="response_minutes" min="0" max="59" step="1" placeholder="0" value="<?= $f_minutes($f_response) ?>" aria-label="Response target, minutes">
|
||||
@@ -58,7 +58,7 @@ $f_day_minutes = slaBusinessDayMinutes();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Resolution target</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-flag-checkered"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-flag-checkered"></i></span>
|
||||
<input type="number" class="form-control" name="resolution_hours" min="0" max="8760" step="1" placeholder="0" value="<?= $f_hours($f_resolution) ?>" aria-label="Resolution target, hours">
|
||||
<span class="input-group-text">hours</span>
|
||||
<input type="number" class="form-control" name="resolution_minutes" min="0" max="59" step="1" placeholder="0" value="<?= $f_minutes($f_resolution) ?>" aria-label="Resolution target, minutes">
|
||||
|
||||
@@ -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="fas 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">
|
||||
@@ -83,7 +83,7 @@ ob_start();
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Close</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Close</button>
|
||||
</div>
|
||||
<?php
|
||||
require_once '../../../includes/modal_footer.php';
|
||||
|
||||
@@ -38,7 +38,7 @@ ob_start();
|
||||
|
||||
?>
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-sms me-2"></i><?= $row ? 'Edit Texting Provider <span class="fw-normal text-white-50 ms-1">' . escapeHtml($name) . '</span>' : 'New Texting Provider' ?></h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-sms me-2"></i><?= $row ? 'Edit Texting Provider <span class="fw-normal text-white-50 ms-1">' . escapeHtml($name) . '</span>' : 'New Texting Provider' ?></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off" novalidate data-sms-provider-form>
|
||||
@@ -55,7 +55,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="smsProviderName">Provider <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-sms"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-sms"></i></span>
|
||||
<select class="form-select select2" name="provider" id="smsProviderName">
|
||||
<?php foreach ($kinds as $kind_name => $kind_info) { ?>
|
||||
<option value="<?= escapeHtml($kind_name) ?>" <?= $kind_name === $name ? 'selected' : '' ?> <?= isset($taken[$kind_name]) ? 'disabled' : '' ?>><?= escapeHtml($kind_name) ?><?= isset($taken[$kind_name]) ? ' - set up already' : '' ?></option>
|
||||
@@ -78,7 +78,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="smsProviderDescription">Description</label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" id="smsProviderDescription" maxlength="250" placeholder="What it is for, if you like" value="<?= escapeHtml($row['sms_provider_description'] ?? '') ?>">
|
||||
</div>
|
||||
<?= $error_for('description') ?>
|
||||
@@ -87,7 +87,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="smsProviderNumber">Number texts go from <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-phone"></i></span>
|
||||
<input type="tel" class="form-control" name="number" id="smsProviderNumber" maxlength="30" placeholder="+1 412 555 0100" value="<?= escapeHtml($number) ?>">
|
||||
</div>
|
||||
<?= $error_for('number') ?>
|
||||
@@ -100,7 +100,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="smsProviderUsername"><?= escapeHtml($kind['username_label']) ?> <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-id-badge"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-id-badge"></i></span>
|
||||
<input type="text" class="form-control font-monospace" name="username" id="smsProviderUsername" maxlength="250" spellcheck="false" value="<?= escapeHtml($row['sms_provider_username'] ?? '') ?>">
|
||||
</div>
|
||||
<?= $error_for('username') ?>
|
||||
@@ -109,7 +109,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="smsProviderSecret"><?= escapeHtml($kind['secret_label']) ?> <?= $row ? '' : '<strong class="text-danger">*</strong>' ?></label>
|
||||
<div class="input-group has-validation">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-key"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-key"></i></span>
|
||||
<input type="password" class="form-control font-monospace" name="secret" id="smsProviderSecret" maxlength="500" spellcheck="false" autocomplete="new-password"
|
||||
placeholder="<?= $row && trim((string) $row['sms_provider_secret']) !== '' ? 'Saved - type a new one to replace it' : '' ?>">
|
||||
</div>
|
||||
@@ -120,7 +120,7 @@ ob_start();
|
||||
<h6 class="fw-semibold mt-4 mb-1">Texts coming back</h6>
|
||||
<p class="small text-body-secondary mb-2">In <?= escapeHtml($name) ?>'s portal, open the number, then SMS: send texts to this Callback URL, by POST.</p>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-link"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-link"></i></span>
|
||||
<input type="text" class="form-control font-monospace" readonly id="smsProviderInbound" value="<?= escapeHtml(smsInboundUrl($row)) ?>" aria-label="Where texts come back to">
|
||||
<button type="button" class="btn btn-outline-secondary clipboardjs" data-clipboard-target="#smsProviderInbound" title="Copy"><i class="far fa-fw fa-copy"></i></button>
|
||||
</div>
|
||||
@@ -130,10 +130,10 @@ ob_start();
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="<?= $row ? 'edit_sms_provider' : 'add_sms_provider' ?>" class="btn btn-primary text-bold" data-sms-provider-save <?= !$row && !$free_kinds ? 'disabled' : '' ?>>
|
||||
<i class="fa fa-check me-2"></i><?= $row ? 'Save' : 'Create' ?>
|
||||
<button type="submit" name="<?= $row ? 'edit_sms_provider' : 'add_sms_provider' ?>" class="btn btn-primary fw-bold" data-sms-provider-save <?= !$row && !$free_kinds ? 'disabled' : '' ?>>
|
||||
<i class="fas fa-check me-2"></i><?= $row ? 'Save' : 'Create' ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -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="fas 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">
|
||||
@@ -31,7 +31,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label" for="smsTestNumber">To <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-mobile-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-mobile-alt"></i></span>
|
||||
<input type="tel" class="form-control" name="number" id="smsTestNumber" maxlength="30" placeholder="+1 412 555 0100" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
@@ -39,14 +39,14 @@ ob_start();
|
||||
<div class="mb-0">
|
||||
<label class="form-label" for="smsTestText">Text</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-comment"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-comment"></i></span>
|
||||
<textarea class="form-control" name="text" id="smsTestText" rows="3" maxlength="<?= SMS_TEXT_LIMIT ?>"><?= escapeHtml(($company !== '' ? "$company: " : '') . 'a test text from ITFlow.') ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="send_sms_test" class="btn btn-primary text-bold"><i class="fa fa-paper-plane me-2"></i>Send</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="send_sms_test" class="btn btn-primary fw-bold"><i class="fas fa-paper-plane me-2"></i>Send</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php
|
||||
|
||||
@@ -12,7 +12,7 @@ ob_start();
|
||||
|
||||
?>
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-cube me-2"></i>New License Template</h5>
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-cube me-2"></i>New License Template</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -22,8 +22,8 @@ ob_start();
|
||||
<?php require __DIR__ . '/software_template_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_software_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="add_software_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -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="fas 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="fas 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">
|
||||
@@ -65,7 +65,7 @@ if (!$template) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Count</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-users"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-users"></i></span>
|
||||
<select class="form-select select2" name="count">
|
||||
<option value="total" <?= $count === 'total' ? 'selected' : '' ?>>The seats bought</option>
|
||||
<option value="used" <?= $count === 'used' ? 'selected' : '' ?>>The seats in use - devices and users on it</option>
|
||||
@@ -102,7 +102,7 @@ if (!$template) { ?>
|
||||
<td class="pe-2">
|
||||
<?php if ($options) { ?>
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-redo-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-redo-alt"></i></span>
|
||||
<select class="form-select select2" name="recurring[<?= $software_id ?>]">
|
||||
<?php foreach ($options as $recurring_id => $option) { ?>
|
||||
<option value="<?= $recurring_id ?>" <?= $recurring_id === $default ? 'selected' : '' ?>><?= escapeHtml($option['number'] . ' · ' . (recurringInvoiceFrequencies()[$option['recurring_invoice_frequency']] ?? $option['recurring_invoice_frequency']) . (trim((string) $option['recurring_invoice_scope']) !== '' ? ' · ' . $option['recurring_invoice_scope'] : '') . (intval($option['recurring_invoice_status']) === 1 ? '' : ' (paused)')) ?></option>
|
||||
@@ -125,9 +125,9 @@ 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 fw-bold"><i class="fas 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>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i><?= $sellable && $licenses ? 'Cancel' : 'Close' ?></button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -12,14 +12,14 @@ 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="fas 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>
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-cube me-2"></i>Edit License Template <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($template['software_template_name']) ?></span></h5>
|
||||
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-cube me-2"></i>Edit License Template <span class="fw-normal text-white-50 ms-1"><?= escapeHtml($template['software_template_name']) ?></span></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -30,8 +30,8 @@ if (!$template) { ?>
|
||||
<?php require __DIR__ . '/software_template_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_software_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="edit_software_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -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="fas 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">
|
||||
@@ -28,7 +28,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">License templates</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-cube"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-cube"></i></span>
|
||||
<select class="form-select select2" name="software_template_ids[]" multiple data-placeholder="Every current one">
|
||||
<?php while ($row = mysqli_fetch_assoc($sql)) { ?>
|
||||
<option value="<?= intval($row['software_template_id']) ?>"<?= selectOptionData(['icon' => 'fas ' . softwareTypeStyle($row['software_template_type'])['icon'], 'description' => $row['software_template_archived_at'] ? 'Archived' : $row['software_template_type']]) ?>><?= escapeHtml($row['software_template_name']) ?></option>
|
||||
@@ -45,8 +45,8 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="export_software_templates" class="btn btn-primary text-bold"><i class="fa fa-download me-2"></i>Download</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="export_software_templates" class="btn btn-primary fw-bold"><i class="fas fa-download me-2"></i>Download</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -47,28 +47,28 @@ while ($row = mysqli_fetch_assoc($sql)) {
|
||||
<div class="col-md-8">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-cube"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-cube"></i></span>
|
||||
<input type="text" class="form-control" name="name" placeholder="Microsoft 365 Business Premium" maxlength="200" value="<?= escapeHtml($t['software_template_name'] ?? '') ?>" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Version</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-code-branch"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-code-branch"></i></span>
|
||||
<input type="text" class="form-control" name="version" placeholder="2024" maxlength="200" value="<?= escapeHtml($t['software_template_version'] ?? '') ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label class="form-label">Summary</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" placeholder="One line on what it is - shown when an agent picks a template" maxlength="500" value="<?= escapeHtml($t['software_template_description'] ?? '') ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Type <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tag"></i></span>
|
||||
<select class="form-select select2" name="type" required>
|
||||
<option value="">- Select a type -</option>
|
||||
<?= categoryOptionsHtml('software_type', $type) ?>
|
||||
@@ -79,7 +79,7 @@ while ($row = mysqli_fetch_assoc($sql)) {
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">License type</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-certificate"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-certificate"></i></span>
|
||||
<select class="form-select select2" name="license_type">
|
||||
<option value="">- None -</option>
|
||||
<?php foreach ($license_types as $option) { ?>
|
||||
@@ -91,7 +91,7 @@ while ($row = mysqli_fetch_assoc($sql)) {
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Seats</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-users"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-users"></i></span>
|
||||
<input type="number" class="form-control" name="seats" min="0" max="1000000" step="1" placeholder="No limit" value="<?= $seats === null ? '' : intval($seats) ?>">
|
||||
</div>
|
||||
<div class="form-text">What a license starts with - change it for each client.</div>
|
||||
@@ -99,7 +99,7 @@ while ($row = mysqli_fetch_assoc($sql)) {
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Renews every</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-redo-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-redo-alt"></i></span>
|
||||
<select class="form-select select2" name="term">
|
||||
<option value="">- Doesn't renew -</option>
|
||||
<?php foreach (SOFTWARE_RENEWAL_TERMS as $value => $label) { ?>
|
||||
@@ -112,7 +112,7 @@ while ($row = mysqli_fetch_assoc($sql)) {
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Vendor</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-building"></i></span>
|
||||
<select class="form-select select2" name="vendor_template_id">
|
||||
<option value="0">- None -</option>
|
||||
<?php foreach ($vendor_templates as $row) { ?>
|
||||
@@ -125,7 +125,7 @@ while ($row = mysqli_fetch_assoc($sql)) {
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Sold as</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-box-open"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-box-open"></i></span>
|
||||
<select class="form-select select2" name="product_id">
|
||||
<option value="0">- None -</option>
|
||||
<?php foreach ($products as $row) {
|
||||
@@ -140,7 +140,7 @@ while ($row = mysqli_fetch_assoc($sql)) {
|
||||
<div class="col-12">
|
||||
<label class="form-label">Notes</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text align-items-start pt-2"><i class="fa fa-fw fa-sticky-note"></i></span>
|
||||
<span class="input-group-text align-items-start pt-2"><i class="fas fa-fw fa-sticky-note"></i></span>
|
||||
<textarea class="form-control" name="notes" rows="6" placeholder="What every license from it should say - where to download it, how it is installed, who to call"><?= escapeHtml($t['software_template_notes'] ?? '') ?></textarea>
|
||||
</div>
|
||||
<div class="form-text">A license made from it starts with all of this - change anything there after.</div>
|
||||
|
||||
@@ -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="fas 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">
|
||||
@@ -25,7 +25,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">File <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-file-code"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-file-code"></i></span>
|
||||
<input type="file" class="form-control" name="file" accept=".json,application/json" required>
|
||||
</div>
|
||||
</div>
|
||||
@@ -33,7 +33,7 @@ ob_start();
|
||||
<div class="mb-1">
|
||||
<label class="form-label">A license template already here by name</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-clone"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-clone"></i></span>
|
||||
<select class="form-select select2" name="existing">
|
||||
<option value="skip" data-description="Yours stays as it is">Leave it</option>
|
||||
<option value="copy" data-description="The file's comes in under a name of its own - Microsoft 365 Business Premium (2)">Add the file's as well</option>
|
||||
@@ -44,8 +44,8 @@ ob_start();
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="import_software_templates" class="btn btn-primary text-bold"><i class="fa fa-upload me-2"></i>Import</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="import_software_templates" class="btn btn-primary fw-bold"><i class="fas fa-upload me-2"></i>Import</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -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="fas 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="fas 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">
|
||||
@@ -39,7 +39,7 @@ if (!$template) { ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Every one of these should have a license from it</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-users"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-users"></i></span>
|
||||
<select class="form-select select2" name="required" id="softwareTemplateRequired">
|
||||
<option value="<?= SOFTWARE_TEMPLATE_REQUIRED_NONE ?>" <?= $required === SOFTWARE_TEMPLATE_REQUIRED_NONE ? 'selected' : '' ?>>No one in particular</option>
|
||||
<option value="<?= SOFTWARE_TEMPLATE_REQUIRED_EVERY ?>" <?= $required === SOFTWARE_TEMPLATE_REQUIRED_EVERY ? 'selected' : '' ?>>Every client</option>
|
||||
@@ -52,7 +52,7 @@ if (!$template) { ?>
|
||||
<div class="mb-1" id="softwareTemplateRequiredTags" <?= $required === SOFTWARE_TEMPLATE_REQUIRED_TAGGED ? '' : 'hidden' ?>>
|
||||
<label class="form-label">Client tags</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tags"></i></span>
|
||||
<select class="form-select select2" name="tags[]" multiple data-placeholder="- Select client tags -">
|
||||
<?php foreach (tagOptionsFor('client', $tag_ids) as $tag) { ?>
|
||||
<?= tagOptionHtml($tag, $tag_ids) ?>
|
||||
@@ -65,8 +65,8 @@ if (!$template) { ?>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="save_software_template_required" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="save_software_template_required" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -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="fas 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="fas 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">
|
||||
@@ -66,7 +66,7 @@ if (!$template) { ?>
|
||||
<td class="text-end text-nowrap"><?= $seats['total'] > 0 ? $seats['total'] . ($seats['state'] === 'over' ? ' <span class="badge rounded-pill bg-danger-subtle text-danger-emphasis fw-normal">' . $seats['over'] . ' over</span>' : '') : '<span class="text-secondary">No limit</span>' ?></td>
|
||||
<td class="pe-2">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-users"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-users"></i></span>
|
||||
<input type="number" class="form-control" name="seats[<?= $software_id ?>]" min="0" max="1000000" step="1" placeholder="No limit" value="<?= escapeHtml($to) ?>" data-now="<?= escapeHtml($now) ?>" data-true-up-seats>
|
||||
</div>
|
||||
</td>
|
||||
@@ -80,9 +80,9 @@ 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 fw-bold"><i class="fas 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>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i><?= $licenses ? 'Cancel' : 'Close' ?></button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -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="fas 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>
|
||||
@@ -29,7 +29,7 @@ if (!$template || $template['software_template_archived_at']) { ?>
|
||||
?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-cube me-2"></i>New license from <strong><?= escapeHtml($template['software_template_name']) ?></strong></h5>
|
||||
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-cube me-2"></i>New license from <strong><?= escapeHtml($template['software_template_name']) ?></strong></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="/agent/post.php" method="post" autocomplete="off">
|
||||
@@ -41,7 +41,7 @@ if (!$template || $template['software_template_archived_at']) { ?>
|
||||
<div class="col-12">
|
||||
<label class="form-label">Client <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-user"></i></span>
|
||||
<select class="form-select select2" name="client_id" required>
|
||||
<option value="">- Select a client -</option>
|
||||
<?php
|
||||
@@ -55,28 +55,28 @@ if (!$template || $template['software_template_archived_at']) { ?>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Seats</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-users"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-users"></i></span>
|
||||
<input type="number" class="form-control" name="seats" min="0" step="1" placeholder="No limit" value="<?= $template['software_template_seats'] === null ? '' : intval($template['software_template_seats']) ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<label class="form-label">Key</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-key"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-key"></i></span>
|
||||
<input type="text" class="form-control font-monospace" name="key" maxlength="200" placeholder="The license key, if it has one">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Purchased</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-shopping-cart"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-shopping-cart"></i></span>
|
||||
<input type="date" class="form-control" name="purchase" max="2999-12-31">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Renews</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar-alt"></i></span>
|
||||
<input type="date" class="form-control" name="expire" max="2999-12-31">
|
||||
</div>
|
||||
<?php if (isset(SOFTWARE_RENEWAL_TERMS[$term])) { ?><div class="form-text">Blank is <?= escapeHtml(SOFTWARE_RENEWAL_TERMS[$term]) ?> after it was bought (or today).</div><?php } ?>
|
||||
@@ -84,7 +84,7 @@ if (!$template || $template['software_template_archived_at']) { ?>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">Order reference</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-receipt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-receipt"></i></span>
|
||||
<input type="text" class="form-control" name="purchase_reference" maxlength="200">
|
||||
</div>
|
||||
</div>
|
||||
@@ -92,8 +92,8 @@ if (!$template || $template['software_template_archived_at']) { ?>
|
||||
<div class="small text-secondary mt-3">Its name, type, license type, summary and notes come from the template<?= $vendor_name !== '' ? ', and its vendor is the client\'s <strong>' . escapeHtml($vendor_name) . '</strong> - added for them if they haven\'t got it' : '' ?>. Put devices and users on it from the client's Licenses.</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_software_from_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="add_software_from_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -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="fas fa-fw fa-copy me-2"></i>New Licenses</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<div class="modal-body text-center text-secondary py-5">That license template is gone or archived.</div>
|
||||
@@ -44,7 +44,7 @@ if (!$template || $template['software_template_archived_at']) { ?>
|
||||
?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title text-truncate"><i class="fa fa-fw fa-copy me-2"></i>New licenses from <strong><?= escapeHtml($template['software_template_name']) ?></strong></h5>
|
||||
<h5 class="modal-title text-truncate"><i class="fas fa-fw fa-copy me-2"></i>New licenses from <strong><?= escapeHtml($template['software_template_name']) ?></strong></h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
@@ -56,7 +56,7 @@ if (!$template || $template['software_template_archived_at']) { ?>
|
||||
<div class="col-12">
|
||||
<label class="form-label">Clients <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-users"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-users"></i></span>
|
||||
<select class="form-select select2" name="client_ids[]" multiple required data-placeholder="- Select clients -">
|
||||
<?php
|
||||
$sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name, client_abbreviation FROM clients WHERE client_archived_at IS NULL" . clientNotLeadSql($picked) . " ORDER BY client_name ASC");
|
||||
@@ -79,28 +79,28 @@ if (!$template || $template['software_template_archived_at']) { ?>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Seats</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-users"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-users"></i></span>
|
||||
<input type="number" class="form-control" name="seats" min="0" step="1" placeholder="No limit" value="<?= $template['software_template_seats'] === null ? '' : intval($template['software_template_seats']) ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Order reference</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-receipt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-receipt"></i></span>
|
||||
<input type="text" class="form-control" name="purchase_reference" maxlength="200">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Purchased</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-shopping-cart"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-shopping-cart"></i></span>
|
||||
<input type="date" class="form-control" name="purchase" max="2999-12-31">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Renews</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar-alt"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-calendar-alt"></i></span>
|
||||
<input type="date" class="form-control" name="expire" max="2999-12-31">
|
||||
</div>
|
||||
<?php if (isset(SOFTWARE_RENEWAL_TERMS[$term])) { ?><div class="form-text">Blank is <?= escapeHtml(SOFTWARE_RENEWAL_TERMS[$term]) ?> after it was bought (or today).</div><?php } ?>
|
||||
@@ -109,8 +109,8 @@ if (!$template || $template['software_template_archived_at']) { ?>
|
||||
<div class="small text-secondary mt-3">Each client gets the same license: its name, type, license type, summary and notes from the template<?= $vendor_name !== '' ? ', and the client\'s <strong>' . escapeHtml($vendor_name) . '</strong> as its vendor - added for those that haven\'t got it' : '' ?>. Keys, devices and users go on from each client's Licenses.</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="make_licenses_from_template" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fa fa-times me-2"></i>Cancel</button>
|
||||
<button type="submit" name="make_licenses_from_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ ob_start();
|
||||
</div>
|
||||
<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>
|
||||
<button type="submit" name="clear_starter_unused" value="<?= escapeHtml($pack) ?>" class="btn btn-danger fw-bold" data-starter-add>
|
||||
<i class="fas fa-fw fa-archive me-2"></i>Archive Them
|
||||
</button>
|
||||
<?php } ?>
|
||||
|
||||
@@ -20,7 +20,7 @@ ob_start();
|
||||
<?php require __DIR__ . '/tag_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_tag" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="submit" name="add_tag" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -29,7 +29,7 @@ if (!$tag) { ?>
|
||||
<?php require __DIR__ . '/tag_form.php'; ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="edit_tag" class="btn btn-primary text-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="submit" name="edit_tag" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Save</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -40,14 +40,14 @@ if (!in_array($t_icon, $t_icons, true)) {
|
||||
<div class="col-sm-7 mb-3">
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tag"></i></span>
|
||||
<input type="text" class="form-control" name="name" maxlength="200" placeholder="VIP, Managed, Retiring soon..." value="<?= escapeHtml($t['tag_name'] ?? '') ?>" required<?= $t ? '' : ' autofocus' ?> data-tag-name>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5 mb-3">
|
||||
<label class="form-label">For <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-layer-group"></i></span>
|
||||
<select class="form-select select2" name="type"<?= $t_kind_locked ? ' disabled' : '' ?> required>
|
||||
<?php foreach (tagKinds() as $kind_type => $kind_entity) {
|
||||
$kind_config = tagEntity($kind_entity); ?>
|
||||
@@ -64,7 +64,7 @@ if (!in_array($t_icon, $t_icons, true)) {
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Description</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-align-left"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-align-left"></i></span>
|
||||
<input type="text" class="form-control" name="description" maxlength="255" placeholder="What it means, and when to use it" value="<?= escapeHtml($t['tag_description'] ?? '') ?>">
|
||||
</div>
|
||||
<small class="text-secondary">Shown on the tag and in the tag picker</small>
|
||||
@@ -79,7 +79,7 @@ if (!in_array($t_icon, $t_icons, true)) {
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="input-group input-group-sm w-auto" title="Any other color">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-paint-brush"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-paint-brush"></i></span>
|
||||
<input type="color" class="form-control form-control-color" name="color" value="<?= $t_color ?>" aria-label="Custom color" data-tag-color>
|
||||
<input type="text" class="form-control font-monospace" style="width: 6rem" maxlength="7" value="<?= $t_color ?>" pattern="#?[0-9a-fA-F]{6}" aria-label="Color as hex" data-tag-color-hex>
|
||||
</div>
|
||||
@@ -90,7 +90,7 @@ if (!in_array($t_icon, $t_icons, true)) {
|
||||
<label class="form-label">Icon</label>
|
||||
<input type="hidden" name="icon" value="<?= $t_icon ?>" data-tag-icon>
|
||||
<div class="input-group mb-2">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-search"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-search"></i></span>
|
||||
<input type="search" class="form-control" placeholder="Search icons - or type any Font Awesome icon's name" aria-label="Search icons" data-tag-icon-search>
|
||||
</div>
|
||||
<div class="itflow-tag-icons border rounded p-1" role="group" aria-label="Icons" data-tag-icons>
|
||||
|
||||
@@ -91,7 +91,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Into <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tag"></i></span>
|
||||
<select class="form-select select2" name="into_tag_id" data-placeholder="- Keep which tag -" required>
|
||||
<option value=""></option>
|
||||
<?php foreach ($into as $into_id => $row) { ?>
|
||||
@@ -104,7 +104,7 @@ ob_start();
|
||||
<p class="small text-secondary mb-0"><?= $merge_text ?></p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="merge_tags" class="btn btn-primary text-bold"><i class="fas fa-compress-alt me-2"></i>Merge</button>
|
||||
<button type="submit" name="merge_tags" class="btn btn-primary fw-bold"><i class="fas fa-compress-alt me-2"></i>Merge</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -25,7 +25,7 @@ ob_start();
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_tax" class="btn btn-primary text-bold"><i class="fa fa-check me-2"></i>Create</button>
|
||||
<button type="submit" name="add_tax" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user