mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 11:57:25 +00:00
QoL 57: placeholders as plain examples without e.g. ex. or Enter, address fields with the url keyboard, the bulk phone field as tel, New Location and New Network opening at the large size like their edit windows, transaction amount filters as decimal text that take commas, and rel noopener on every new-tab link with noreferrer for external ones
This commit is contained in:
@@ -225,6 +225,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
|
||||
- Lists: the first click on a column you aren't sorting by sorts names A-Z and dates, money and counts newest or largest first, and a second click flips it. It used to go the opposite way to the column you were on, so the first click could go either way.
|
||||
- Badges and blanks: every badge is a rounded pill, the menu counts included, and an empty value shows as a grey dash everywhere. A request that can't be done - credit over the balance, say - shows in red like every other error, and the client portal's search boxes read Search ... like the agent pages'.
|
||||
- Sizes and lengths of time: a file or backup size reads 512 B or 1.5 MB everywhere - some pages said 1.53 MB, a portal attachment never less than 1 KB, and setup bytes. Booking lengths, the dispatch board and how long a cron job ran are written 1h 30m like time logged everywhere else - they read 1 hour 30 min and 2 min 5 s - and hours as a number are 12.5 h, project hours included.
|
||||
- Forms: hints inside empty fields are plain examples - example.com, Contracts, Closing remarks - rather than e.g. ..., ex. ... and Enter a ..., and address fields bring up the web keyboard on a phone. New Location and New Network open at the size their Edit windows do, and the transactions list's amount filters take 1,000.00 like every other money field.
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
@@ -456,6 +457,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
|
||||
- Messages: `flashAlert()` and `itflowToast()` are called with 'success', 'info', 'warning' and 'error' only - the 'danger' and 'alert' callers now say 'error' (both are still understood), and the unused 'errpr' alias is gone. Column headings are sentence case like field labels.
|
||||
- Menus: 30 menu items carried `text-dark`, which no other menu item has; it's gone.
|
||||
- Sizes: `formatBytes()` (one decimal, whole bytes, a unit at 1024) is the one formatter - `backupFormatBytes()` calls it, and the portal and setup scripts write sizes the same way.
|
||||
- New-tab links: every `target="_blank"` link has `rel="noopener"`, and `noopener noreferrer` when it leaves ITFlow.
|
||||
|
||||
## [26.11.8]
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ $l_description = (string) ($l['custom_link_description'] ?? '');
|
||||
<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="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>
|
||||
<input type="text" inputmode="url" 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>
|
||||
<div class="form-check form-switch mt-2">
|
||||
|
||||
@@ -91,7 +91,7 @@ if (!managerEnabled()) { ?>
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-server"></i></span>
|
||||
<input type="text" class="form-control" name="name" placeholder="e.g. Ravenwood Dental ITFlow" maxlength="200" value="<?= $value('managed_instance_name') ?>" required <?= $is_new ? 'autofocus' : '' ?>>
|
||||
<input type="text" class="form-control" name="name" placeholder="Ravenwood Dental ITFlow" maxlength="200" value="<?= $value('managed_instance_name') ?>" required <?= $is_new ? 'autofocus' : '' ?>>
|
||||
</div>
|
||||
<div class="form-text">What it's called here - its own company name shows from its reports.</div>
|
||||
</div>
|
||||
@@ -101,7 +101,7 @@ if (!managerEnabled()) { ?>
|
||||
<label class="form-label">Address</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-globe"></i></span>
|
||||
<input type="text" class="form-control" name="url" placeholder="e.g. itflow.ravenwooddental.com" maxlength="240" value="<?= escapeHtml(preg_replace('#^https?://#', '', (string) $form['managed_instance_url'])) ?>">
|
||||
<input type="text" inputmode="url" class="form-control" name="url" placeholder="itflow.ravenwooddental.com" maxlength="240" value="<?= escapeHtml(preg_replace('#^https?://#', '', (string) $form['managed_instance_url'])) ?>">
|
||||
</div>
|
||||
<div class="form-text">Where it's reached, without https:// - it goes in the command that sets up a new install for it. Once it connects, it's the address it says it has.</div>
|
||||
</div>
|
||||
@@ -199,7 +199,7 @@ if (!managerEnabled()) { ?>
|
||||
<label class="form-label">Message</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-comment"></i></span>
|
||||
<input type="text" class="form-control" name="mode_message" maxlength="500" placeholder="e.g. Your subscription has ended - call us to carry on" value="<?= $value('managed_instance_mode_message') ?>">
|
||||
<input type="text" class="form-control" name="mode_message" maxlength="500" placeholder="Your subscription has ended - call us to carry on" value="<?= $value('managed_instance_mode_message') ?>">
|
||||
</div>
|
||||
<div class="form-text">What its people see while it's read-only or suspended, with your company's email and phone. Left empty, a plain notice.</div>
|
||||
</div>
|
||||
|
||||
@@ -37,7 +37,7 @@ if (!$payment_method) { ?>
|
||||
<?php if ($usage['total']) { ?>
|
||||
<div class="alert alert-warning small py-2">
|
||||
<i class="fas fa-fw fa-exchange-alt me-1"></i>Used on <strong><?= escapeHtml(paymentMethodUsageText($usage)) ?></strong>.
|
||||
<?php if (moduleOn('bookkeeping')) { ?><a href="/agent/transactions.php?<?= escapeHtml(http_build_query(['method' => $payment_method['payment_method_name']])) ?>" target="_blank">See them</a><?php } ?>
|
||||
<?php if (moduleOn('bookkeeping')) { ?><a href="/agent/transactions.php?<?= escapeHtml(http_build_query(['method' => $payment_method['payment_method_name']])) ?>" target="_blank" rel="noopener">See them</a><?php } ?>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Change them to <strong class="text-danger">*</strong></label>
|
||||
|
||||
@@ -50,7 +50,7 @@ if (!$ticket_status || ticketStatusIsBuiltIn($ticket_status['ticket_status_id'])
|
||||
<?php if ($tickets) { ?>
|
||||
<div class="alert alert-<?= $delete ? 'warning' : 'secondary' ?> small py-2">
|
||||
<i class="fas fa-fw fa-life-ring me-1"></i><strong><?= $plural($tickets, 'ticket is', 'tickets are') ?></strong> in it<?= $counts['open'] !== $tickets ? ' - ' . $plural($counts['open'], 'open one', 'open ones') : '' ?>.
|
||||
<a href="/agent/tickets.php?status[]=<?= $ticket_status_id ?>" target="_blank">See them</a>
|
||||
<a href="/agent/tickets.php?status[]=<?= $ticket_status_id ?>" target="_blank" rel="noopener">See them</a>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Move <?= $tickets === 1 ? 'it' : 'them' ?> to <?php if ($delete) { ?><strong class="text-danger">*</strong><?php } ?></label>
|
||||
|
||||
@@ -107,7 +107,7 @@ $value = function ($key) use ($form) {
|
||||
<div class="mt-2" data-user-role-access="<?= $role_id ?>"<?= $form_role_id === $role_id ? '' : ' hidden' ?>><?= roleAccessHtml($form_role_rows[$role_id]) ?></div>
|
||||
<?php }
|
||||
} ?>
|
||||
<div class="form-text">What they can see and change. <a href="roles.php" target="_blank">Roles <i class="fas fa-external-link-alt small"></i></a></div>
|
||||
<div class="form-text">What they can see and change. <a href="roles.php" target="_blank" rel="noopener">Roles <i class="fas fa-external-link-alt small"></i></a></div>
|
||||
</div>
|
||||
<?= officeUserField($form_user_id ? officeIdForUser($form_user_id) : 0) ?>
|
||||
<?php if (!$is_new) { ?>
|
||||
|
||||
@@ -103,7 +103,7 @@ $contact_phone_value = ($vt['contact_phone'] ?? '') !== '' ? escapeHtml(formatPh
|
||||
<label class="form-label">Support site</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-globe"></i></span>
|
||||
<input type="text" class="form-control" name="website" placeholder="support.vendor.com" maxlength="200" value="<?= $value('website') ?>">
|
||||
<input type="text" inputmode="url" class="form-control" name="website" placeholder="support.vendor.com" maxlength="200" value="<?= $value('website') ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
@@ -2282,7 +2282,7 @@ if (isset($_GET['asset_duplicate_check'])) {
|
||||
if ($row) {
|
||||
$what = $field === 'mac' ? 'This MAC address' : 'This serial number';
|
||||
$message = hasClientAccess($row['asset_client_id'])
|
||||
? "<i class='far fa-fw fa-copy me-2'></i>$what is already on <a href='asset.php?client_id=" . intval($row['asset_client_id']) . "&asset_id=" . intval($row['asset_id']) . "' target='_blank'>" . escapeHtml($row['asset_name']) . "</a>"
|
||||
? "<i class='far fa-fw fa-copy me-2'></i>$what is already on <a href='asset.php?client_id=" . intval($row['asset_client_id']) . "&asset_id=" . intval($row['asset_id']) . "' target='_blank' rel='noopener'>" . escapeHtml($row['asset_name']) . "</a>"
|
||||
. " at " . escapeHtml($row['client_name']) . ($row['asset_archived_at'] ? ' (archived)' : '')
|
||||
: "<i class='far fa-fw fa-copy me-2'></i>$what is already on an asset of a client you cannot open.";
|
||||
}
|
||||
@@ -2533,7 +2533,7 @@ if (isset($_GET['contact_email_check'])) {
|
||||
WHERE contact_email = '$email' AND contact_id != $exclude_contact ORDER BY contact_archived_at IS NOT NULL, contact_id DESC LIMIT 1");
|
||||
if ($row = mysqli_fetch_assoc($sql_contacts)) {
|
||||
$response['message'] = hasClientAccess($row['contact_client_id'])
|
||||
? "<i class='far fa-fw fa-copy me-2'></i>Already on file: <a href='contact.php?client_id=" . intval($row['contact_client_id']) . "&contact_id=" . intval($row['contact_id']) . "' target='_blank'>" . escapeHtml($row['contact_name']) . "</a>"
|
||||
? "<i class='far fa-fw fa-copy me-2'></i>Already on file: <a href='contact.php?client_id=" . intval($row['contact_client_id']) . "&contact_id=" . intval($row['contact_id']) . "' target='_blank' rel='noopener'>" . escapeHtml($row['contact_name']) . "</a>"
|
||||
. " at " . escapeHtml($row['client_name']) . ($row['contact_archived_at'] ? ' (archived)' : '')
|
||||
: "<i class='far fa-fw fa-copy me-2'></i>Already on file for a client you cannot open.";
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ foreach ($co_templates as $co_template_id => $co_template) {
|
||||
<li data-co-contract="<?= intval($co_contract['contract_id']) ?>">
|
||||
<span class="itflow-gs-person-initials" aria-hidden="true"><i class="fas fa-file-contract"></i></span>
|
||||
<div class="min-w-0 flex-grow-1">
|
||||
<a href="/agent/contract.php?contract_id=<?= intval($co_contract['contract_id']) ?>" class="fw-semibold text-truncate d-block" target="_blank"><?= escapeHtml($co_contract['contract_name']) ?></a>
|
||||
<a href="/agent/contract.php?contract_id=<?= intval($co_contract['contract_id']) ?>" class="fw-semibold text-truncate d-block" target="_blank" rel="noopener"><?= escapeHtml($co_contract['contract_name']) ?></a>
|
||||
<div class="small text-body-secondary text-truncate"><?= escapeHtml(contractTypeLabel($co_contract['contract_type'])) ?>, <?= escapeHtml(strtolower(contractTermLabel($co_contract['contract_term_months']))) ?>
|
||||
<?= !empty($co_contract['contract_start_date']) ? ' - from ' . escapeHtml(date('M j, Y', strtotime($co_contract['contract_start_date']))) : '' ?>
|
||||
<?php if ($co_sign_ready && contractSignaturePendingFor(intval($co_contract['contract_id']))) { ?> - out to sign<?php } ?>
|
||||
|
||||
@@ -52,7 +52,7 @@ while ($co_contact = mysqli_fetch_assoc($co_sql)) {
|
||||
<li data-co-project="<?= intval($co_project['project_id']) ?>">
|
||||
<span class="itflow-gs-person-initials" aria-hidden="true"><i class="fas fa-project-diagram"></i></span>
|
||||
<div class="min-w-0 flex-grow-1">
|
||||
<a href="/agent/<?= projectUrl($co_project['project_id'], $client_id) ?>" class="fw-semibold text-truncate d-block" target="_blank"><?= escapeHtml(projectReference($co_project) . ' - ' . $co_project['project_name']) ?></a>
|
||||
<a href="/agent/<?= projectUrl($co_project['project_id'], $client_id) ?>" class="fw-semibold text-truncate d-block" target="_blank" rel="noopener"><?= escapeHtml(projectReference($co_project) . ' - ' . $co_project['project_name']) ?></a>
|
||||
<div class="small text-body-secondary"><?= intval($co_project['tickets']) ?> ticket<?= intval($co_project['tickets']) === 1 ? '' : 's' ?><?= !empty($co_project['project_due']) ? ' - due ' . escapeHtml(date('M j, Y', strtotime($co_project['project_due']))) : '' ?></div>
|
||||
</div>
|
||||
<?php if (!empty($co_project['project_completed_at'])) { ?><span class="badge rounded-pill bg-success-subtle text-success-emphasis fw-normal">Completed</span><?php } ?>
|
||||
|
||||
@@ -632,7 +632,7 @@ $total_leads = intval($row['leads']);
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } elseif (!$location_id && $can_edit) { ?>
|
||||
<a class="ajax-modal small text-body-secondary" href="#" data-modal-url="modals/location/location_add.php?client_id=<?= $client_id ?>&primary=1">
|
||||
<a class="ajax-modal small text-body-secondary" href="#" data-modal-size="lg" data-modal-url="modals/location/location_add.php?client_id=<?= $client_id ?>&primary=1">
|
||||
<i class="fas fa-fw fa-plus me-1" aria-hidden="true"></i>Add primary location
|
||||
</a>
|
||||
<?php } else { ?>
|
||||
|
||||
@@ -364,7 +364,7 @@ $month_change = $stats['last_to_date'] > 0 ? round(($stats['month'] - $stats['la
|
||||
<td class="text-nowrap">
|
||||
<a class="fw-semibold ajax-modal" href="#" <?= $row_open ?>><?= formatDate($row['expense_date']) ?></a>
|
||||
<?php if ($row['expense_receipt']) { ?>
|
||||
<a class="text-success ms-1" href="expense_receipt.php?expense_id=<?= $expense_id ?>&action=view" target="_blank" title="Open the receipt"><i class="fas fa-paperclip"></i></a>
|
||||
<a class="text-success ms-1" href="expense_receipt.php?expense_id=<?= $expense_id ?>&action=view" target="_blank" rel="noopener" title="Open the receipt"><i class="fas fa-paperclip"></i></a>
|
||||
<?php } ?>
|
||||
<?php if (intval($row['expense_recurring_expense_id'])) { ?>
|
||||
<a class="text-body-secondary small ms-1 ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/recurring_expense/recurring_expense.php?id=<?= intval($row['expense_recurring_expense_id']) ?>" title="Recorded by a recurring expense"><i class="fas fa-redo-alt"></i></a>
|
||||
|
||||
@@ -53,7 +53,7 @@ $location_map_query = rawurlencode(html_entity_decode(trim("$location_address $l
|
||||
<a class="small text-reset text-decoration-none d-block mt-1" href="tel:<?= escapeHtml(preg_replace('/[^0-9+]/', '', html_entity_decode($location_phone))) ?>"><i class="fas fa-fw fa-phone text-body-secondary me-2" aria-hidden="true"></i><?= $location_phone ?></a>
|
||||
<?php } ?>
|
||||
<?php } elseif ($client_details_edit) { ?>
|
||||
<a class="ajax-modal small" href="#" data-modal-url="modals/location/location_add.php?client_id=<?= $client_id ?>&primary=1"><i class="fas fa-fw fa-plus me-1"></i>Add primary location</a>
|
||||
<a class="ajax-modal small" href="#" data-modal-size="lg" data-modal-url="modals/location/location_add.php?client_id=<?= $client_id ?>&primary=1"><i class="fas fa-fw fa-plus me-1"></i>Add primary location</a>
|
||||
<?php } else { ?>
|
||||
<span class="text-body-tertiary">None</span>
|
||||
<?php } ?>
|
||||
|
||||
@@ -68,7 +68,7 @@ if (!empty($canned_picker_groups) || intval($canned_picker_ticket_id) > 0) { ?>
|
||||
<i class="fas fa-fw fa-save text-secondary me-2"></i>Save Your Reply as a Canned Response
|
||||
</a>
|
||||
<?php } ?>
|
||||
<a class="dropdown-item small" href="/agent/user/user_canned_responses.php" target="_blank" title="Opens in a new tab - your reply stays here">
|
||||
<a class="dropdown-item small" href="/agent/user/user_canned_responses.php" target="_blank" rel="noopener" title="Opens in a new tab - your reply stays here">
|
||||
<i class="fas fa-fw fa-user text-secondary me-2"></i>Your Canned Responses
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -41,7 +41,7 @@ if (kbCan(1)) {
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="border-top py-1">
|
||||
<a class="dropdown-item small" href="/agent/kb.php" target="_blank" title="Opens in a new tab - your reply stays here"><i class="fas fa-fw fa-book text-secondary me-2"></i>Open the Knowledge Base</a>
|
||||
<a class="dropdown-item small" href="/agent/kb.php" target="_blank" rel="noopener" title="Opens in a new tab - your reply stays here"><i class="fas fa-fw fa-book text-secondary me-2"></i>Open the Knowledge Base</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="small text-body-secondary mt-1" data-kb-pick-said hidden></div>
|
||||
|
||||
@@ -227,13 +227,13 @@ echo agentBannersHtml($client_id);
|
||||
<i class="fas fa-fw fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="post.php?export_invoice_pdf=<?= $invoice_id ?>&csrf_token=<?= $csrf ?>" target="_blank">
|
||||
<a class="dropdown-item" href="post.php?export_invoice_pdf=<?= $invoice_id ?>&csrf_token=<?= $csrf ?>" target="_blank" rel="noopener">
|
||||
<i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>Download PDF
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" onclick="window.print(); return false;">
|
||||
<i class="fas fa-fw fa-print text-secondary me-2"></i>Print
|
||||
</a>
|
||||
<a class="dropdown-item" href="post.php?export_invoice_packing_slip=<?= $invoice_id ?>&csrf_token=<?= $csrf ?>" target="_blank">
|
||||
<a class="dropdown-item" href="post.php?export_invoice_packing_slip=<?= $invoice_id ?>&csrf_token=<?= $csrf ?>" target="_blank" rel="noopener">
|
||||
<i class="fas fa-fw fa-box-open text-secondary me-2"></i>Packing Slip
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
|
||||
@@ -212,7 +212,7 @@ $stat_money = function ($amount) use ($session_company_currency) {
|
||||
</a>
|
||||
<?php } ?>
|
||||
<?php if ($client_url) { ?>
|
||||
<a class="dropdown-item" href="post.php?export_client_statement_pdf=<?= $client_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" target="_blank">
|
||||
<a class="dropdown-item" href="post.php?export_client_statement_pdf=<?= $client_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" target="_blank" rel="noopener">
|
||||
<i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>Statement PDF
|
||||
</a>
|
||||
<?php } ?>
|
||||
@@ -421,7 +421,7 @@ $stat_money = function ($amount) use ($session_company_currency) {
|
||||
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="<?= $row_url ?>"><i class="fas fa-fw fa-eye text-secondary me-2"></i>Open</a>
|
||||
<a class="dropdown-item" href="post.php?export_invoice_pdf=<?= $invoice_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" target="_blank"><i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>Download PDF</a>
|
||||
<a class="dropdown-item" href="post.php?export_invoice_pdf=<?= $invoice_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" target="_blank" rel="noopener"><i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>Download PDF</a>
|
||||
<?php if ($row_can_pay) { ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/payment/payment_add.php?id=<?= $invoice_id ?>">
|
||||
|
||||
@@ -174,7 +174,7 @@ $page_title = $row['kb_article_title'];
|
||||
<li class="list-group-item d-flex align-items-center gap-3">
|
||||
<?= fileTypeTile($ext) ?>
|
||||
<div class="min-w-0 flex-grow-1">
|
||||
<a class="fw-semibold text-break" href="kb_file.php?file_id=<?= $file_id ?>&action=view" target="_blank" title="Open it - or download it, for a kind the browser can't show"><?= escapeHtml($file['kb_article_file_name']) ?></a>
|
||||
<a class="fw-semibold text-break" href="kb_file.php?file_id=<?= $file_id ?>&action=view" target="_blank" rel="noopener" title="Open it - or download it, for a kind the browser can't show"><?= escapeHtml($file['kb_article_file_name']) ?></a>
|
||||
<div class="small text-body-secondary"><?= formatBytes(intval($file['kb_article_file_size'])) ?> · added <?= timeAgo($file['kb_article_file_created_at']) ?><?= $file['user_name'] !== null ? ' by ' . escapeHtml($file['user_name']) : '' ?></div>
|
||||
</div>
|
||||
<a class="btn btn-sm btn-light border" href="kb_file.php?file_id=<?= $file_id ?>" title="Download"><i class="fas fa-download"></i></a>
|
||||
|
||||
@@ -205,7 +205,7 @@ if (!$location || ($client_url && intval($location['location_client_id']) !== in
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/asset/asset_add.php?client_id=<?= $client_id ?>&location_id=<?= $location_id ?>">
|
||||
<i class="fas fa-fw fa-desktop text-secondary me-2"></i>Asset
|
||||
</a>
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/network/network_add.php?client_id=<?= $client_id ?>&location_id=<?= $location_id ?>">
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/network/network_add.php?client_id=<?= $client_id ?>&location_id=<?= $location_id ?>">
|
||||
<i class="fas fa-fw fa-network-wired text-secondary me-2"></i>Network
|
||||
</a>
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/rack/rack_add.php?client_id=<?= $client_id ?>&location_id=<?= $location_id ?>">
|
||||
@@ -485,7 +485,7 @@ if (!$location || ($client_url && intval($location['location_client_id']) !== in
|
||||
<?php if ($can_support_edit && !$location_archived_at) { ?>
|
||||
<div class="d-flex gap-2">
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary ajax-modal" data-modal-url="<?= $move_url ?>network"><i class="fas fa-dolly me-2"></i>Move Here</button>
|
||||
<button type="button" class="btn btn-sm btn-primary ajax-modal" data-modal-url="modals/network/network_add.php?client_id=<?= $client_id ?>&location_id=<?= $location_id ?>"><i class="fas fa-plus me-2"></i>New Network</button>
|
||||
<button type="button" class="btn btn-sm btn-primary ajax-modal" data-modal-size="lg" data-modal-url="modals/network/network_add.php?client_id=<?= $client_id ?>&location_id=<?= $location_id ?>"><i class="fas fa-plus me-2"></i>New Network</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
@@ -440,21 +440,21 @@ $asset_form_icons = [
|
||||
<label class="form-label">Link</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="<?= $asset_form_icons['uri'] ?> fa-fw" data-asset-form-icon="link"></i></span>
|
||||
<input type="text" class="form-control" name="uri" placeholder="https://, ssh://, rdp://" maxlength="500" value="<?= $asset_uri ?>">
|
||||
<input type="text" inputmode="url" class="form-control" name="uri" placeholder="https://, ssh://, rdp://" maxlength="500" value="<?= $asset_uri ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">Second link</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="<?= $asset_form_icons['uri_2'] ?> fa-fw" data-asset-form-icon="link"></i></span>
|
||||
<input type="text" class="form-control" name="uri_2" placeholder="https://, ssh://, rdp://" maxlength="500" value="<?= $asset_uri_2 ?>">
|
||||
<input type="text" inputmode="url" class="form-control" name="uri_2" placeholder="https://, ssh://, rdp://" maxlength="500" value="<?= $asset_uri_2 ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label class="form-label">Client link</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-share-square fa-fw"></i></span>
|
||||
<input type="text" class="form-control" name="uri_client" placeholder="https://" maxlength="500" value="<?= $asset_uri_client ?>">
|
||||
<input type="text" inputmode="url" class="form-control" name="uri_client" placeholder="https://" maxlength="500" value="<?= $asset_uri_client ?>">
|
||||
</div>
|
||||
<div class="form-text">Shown to the client in their portal.</div>
|
||||
</div>
|
||||
|
||||
@@ -97,7 +97,7 @@ ob_start();
|
||||
<label class="form-label">VLANs</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-layer-group"></i></span>
|
||||
<input type="text" class="form-control" name="vlans" maxlength="200" placeholder="e.g. 10">
|
||||
<input type="text" class="form-control" name="vlans" maxlength="200" placeholder="10">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
|
||||
@@ -88,7 +88,7 @@ ob_start();
|
||||
<label class="form-label">Website</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-globe"></i></span>
|
||||
<input type="text" class="form-control" name="website" placeholder="ex. google.com" maxlength="200">
|
||||
<input type="text" inputmode="url" class="form-control" name="website" placeholder="example.com" maxlength="200">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -294,7 +294,7 @@ ob_start();
|
||||
|
||||
<div class="tab-pane fade" id="pills-notes">
|
||||
<div class="mb-3">
|
||||
<textarea class="form-control" rows="10" name="notes" placeholder="Enter some notes"></textarea>
|
||||
<textarea class="form-control" rows="10" name="notes" placeholder="Anything worth knowing about them"></textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -32,7 +32,7 @@ ob_start();
|
||||
<label class="form-label">Subject <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tag"></i></span>
|
||||
<input type="text" class="form-control" name="bulk_subject" data-template-field="subject" placeholder="Enter a subject" maxlength="500" required>
|
||||
<input type="text" class="form-control" name="bulk_subject" data-template-field="subject" placeholder="Subject" maxlength="500" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ ob_start();
|
||||
<label class="form-label">Industry</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-briefcase"></i></span>
|
||||
<input type="text" class="form-control" name="bulk_industry" placeholder="Enter an Industry" maxlength="200" required>
|
||||
<input type="text" class="form-control" name="bulk_industry" placeholder="Healthcare, Legal, Construction" maxlength="200" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<label class="form-label">Note <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-file-alt"></i></span>
|
||||
<input type="text" class="form-control" name="note" placeholder="Enter a note" maxlength="250">
|
||||
<input type="text" class="form-control" name="note" placeholder="What the credit is for" maxlength="250">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ ob_start();
|
||||
<label class="form-label">Website</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-globe"></i></span>
|
||||
<input type="text" class="form-control" name="website" placeholder="ex. google.com" maxlength="200"
|
||||
<input type="text" inputmode="url" class="form-control" name="website" placeholder="example.com" maxlength="200"
|
||||
value="<?= $client_website ?>">
|
||||
</div>
|
||||
</div>
|
||||
@@ -182,7 +182,7 @@ ob_start();
|
||||
<div class="tab-pane fade" id="pills-client-notes<?= $client_id ?>">
|
||||
|
||||
<div class="mb-3">
|
||||
<textarea class="form-control" rows="10" placeholder="Enter some notes" name="notes"><?= $client_notes ?></textarea>
|
||||
<textarea class="form-control" rows="10" placeholder="Anything worth knowing about them" name="notes"><?= $client_notes ?></textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -131,7 +131,7 @@ ob_start();
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="btn btn-sm btn-outline-secondary mb-1" href="post.php?export_client_statement_pdf=<?= $client_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" target="_blank" data-statement-pdf>
|
||||
<a class="btn btn-sm btn-outline-secondary mb-1" href="post.php?export_client_statement_pdf=<?= $client_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" target="_blank" rel="noopener" data-statement-pdf>
|
||||
<i class="fas fa-fw fa-file-pdf me-1"></i>Download PDF
|
||||
</a>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-phone"></i></span>
|
||||
<input type="text" class="form-control" name="bulk_phone" placeholder="Phone Number" maxlength="200">
|
||||
<input type="tel" class="form-control" name="bulk_phone" placeholder="Phone Number" maxlength="200">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ if (!$round || $state['key'] !== 'countersign') { ?>
|
||||
</small>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-link me-auto" href="contract_document.php?client_id=<?= $client_id ?>&contract_id=<?= intval($round['contract_id']) ?>&round=<?= intval($round['contract_signature_id']) ?>" target="_blank"><i class="fas fa-eye me-2"></i>Read what they signed</a>
|
||||
<a class="btn btn-link me-auto" href="contract_document.php?client_id=<?= $client_id ?>&contract_id=<?= intval($round['contract_id']) ?>&round=<?= intval($round['contract_signature_id']) ?>" target="_blank" rel="noopener"><i class="fas fa-eye me-2"></i>Read what they signed</a>
|
||||
<button type="submit" name="countersign_contract" class="btn btn-success fw-bold"><i class="fas fa-pen-nib me-2"></i>Countersign</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
|
||||
@@ -108,7 +108,7 @@ if (!$contract || !contractSignaturesReady() || in_array($contract['contract_sta
|
||||
</ul>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-link me-auto" href="contract_document.php?client_id=<?= $client_id ?>&contract_id=<?= intval($contract['contract_id']) ?>" target="_blank"><i class="fas fa-eye me-2"></i>Preview</a>
|
||||
<a class="btn btn-link me-auto" href="contract_document.php?client_id=<?= $client_id ?>&contract_id=<?= intval($contract['contract_id']) ?>" target="_blank" rel="noopener"><i class="fas fa-eye me-2"></i>Preview</a>
|
||||
<button type="submit" name="send_contract_signature" 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>
|
||||
|
||||
@@ -132,7 +132,7 @@ $form_id = 'credentialForm' . ($credential_form_mode === 'edit' ? $credential_id
|
||||
<label class="form-label">Opens at</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-link"></i></span>
|
||||
<input type="text" class="form-control" name="uri" placeholder="https://192.168.1.1, rdp://server" maxlength="500" value="<?= $credential_uri ?>">
|
||||
<input type="text" inputmode="url" class="form-control" name="uri" placeholder="https://192.168.1.1, rdp://server" maxlength="500" value="<?= $credential_uri ?>">
|
||||
<button class="btn btn-outline-secondary clipboardjs" title="Copy URI" type="button" data-clipboard-target="input[name=uri]"><i class="far fa-fw fa-copy"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -140,7 +140,7 @@ $form_id = 'credentialForm' . ($credential_form_mode === 'edit' ? $credential_id
|
||||
<label class="form-label">Also at</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-link"></i></span>
|
||||
<input type="text" class="form-control" name="uri_2" placeholder="https://server.company.com:5001" maxlength="500" value="<?= $credential_uri_2 ?>">
|
||||
<input type="text" inputmode="url" class="form-control" name="uri_2" placeholder="https://server.company.com:5001" maxlength="500" value="<?= $credential_uri_2 ?>">
|
||||
<button class="btn btn-outline-secondary clipboardjs" title="Copy URI 2" type="button" data-clipboard-target="input[name=uri_2]"><i class="far fa-fw fa-copy"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-file-alt"></i></span>
|
||||
<input type="text" class="form-control" name="name" maxlength="200" value="<?= $document_name ?>" placeholder="e.g. Backup and recovery plan" required <?= $document_form_mode === 'add' ? 'autofocus' : '' ?>>
|
||||
<input type="text" class="form-control" name="name" maxlength="200" value="<?= $document_name ?>" placeholder="Backup and recovery plan" required <?= $document_form_mode === 'add' ? 'autofocus' : '' ?>>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
@@ -97,7 +97,7 @@ ob_start();
|
||||
<?php if ($receipt_kind) { ?>
|
||||
<div class="itflow-file-preview mb-3">
|
||||
<?php if ($receipt_kind === 'image') { ?>
|
||||
<a href="<?= $receipt_url ?>&action=view" target="_blank" title="Open full size"><img src="<?= $receipt_url ?>&action=view" alt="Receipt"></a>
|
||||
<a href="<?= $receipt_url ?>&action=view" target="_blank" rel="noopener" title="Open full size"><img src="<?= $receipt_url ?>&action=view" alt="Receipt"></a>
|
||||
<?php } else { ?>
|
||||
<iframe src="<?= $receipt_url ?>&action=view#view=FitH" title="Receipt"></iframe>
|
||||
<?php } ?>
|
||||
|
||||
@@ -120,7 +120,7 @@ $form_markup = $form_row && !$form_refund ? floatval($form_row['expense_markup']
|
||||
<?php if ($form_refund) { ?>
|
||||
<input type="hidden" name="vendor" value="<?= $form_vendor ?>">
|
||||
<?php } else { ?>
|
||||
<a class="btn btn-outline-secondary" title="Add a vendor - opens Vendors in a new tab" href="vendors.php" target="_blank"><i class="fas fa-fw fa-plus"></i></a>
|
||||
<a class="btn btn-outline-secondary" title="Add a vendor - opens Vendors in a new tab" href="vendors.php" target="_blank" rel="noopener"><i class="fas fa-fw fa-plus"></i></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="form-text" data-expense-filled hidden>Filled in from the last expense with them.</div>
|
||||
@@ -310,7 +310,7 @@ $form_markup = $form_row && !$form_refund ? floatval($form_row['expense_markup']
|
||||
['title' => 'Receipt', 'shapes' => 'free', 'box' => 'tall', 'max' => 2400, 'accept' => 'image/*,application/pdf']) ?>
|
||||
<div class="form-text mt-0">
|
||||
<?php if ($form_receipt) { ?>
|
||||
<a href="<?= escapeHtml($form_receipt_url) ?>" target="_blank"><?= escapeHtml(expenseReceiptName($form_row)) ?></a><br>
|
||||
<a href="<?= escapeHtml($form_receipt_url) ?>" target="_blank" rel="noopener"><?= escapeHtml(expenseReceiptName($form_row)) ?></a><br>
|
||||
<?php } ?>
|
||||
Click it to <?= $form_receipt ? 'change it, or take it off' : 'add a photo or a PDF' ?> - on a phone, Take a photo opens the camera.
|
||||
</div>
|
||||
|
||||
@@ -76,7 +76,7 @@ ob_start();
|
||||
<!-- Preview -->
|
||||
<div class="itflow-file-preview mb-3">
|
||||
<?php if ($preview_kind === 'image') { ?>
|
||||
<a href="file.php?file_id=<?= $file_id ?>&action=view" target="_blank" title="Open full size"><img src="file.php?file_id=<?= $file_id ?>&thumb=1" alt="<?= $file_name ?>"></a>
|
||||
<a href="file.php?file_id=<?= $file_id ?>&action=view" target="_blank" rel="noopener" title="Open full size"><img src="file.php?file_id=<?= $file_id ?>&thumb=1" alt="<?= $file_name ?>"></a>
|
||||
<?php } elseif ($preview_kind === 'pdf') { ?>
|
||||
<iframe src="file.php?file_id=<?= $file_id ?>&action=view#view=FitH" title="<?= $file_name ?>"></iframe>
|
||||
<?php } elseif ($preview_kind === 'text') { ?>
|
||||
|
||||
@@ -30,7 +30,7 @@ ob_start();
|
||||
<label class="form-label">Name <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-folder"></i></span>
|
||||
<input type="text" class="form-control" name="folder_name" placeholder="e.g. Contracts" maxlength="200" required autofocus>
|
||||
<input type="text" class="form-control" name="folder_name" placeholder="Contracts" maxlength="200" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ $kb_form_audience = $kb_form_mode === 'edit' ? kbAudienceFields($kb_form) : ['vi
|
||||
<label class="form-label">Title <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-book"></i></span>
|
||||
<input type="text" class="form-control" name="title" maxlength="200" value="<?= escapeHtml($kb_form['kb_article_title'] ?? '') ?>" placeholder="e.g. Set up company email on an iPhone" required <?= $kb_form_mode === 'add' ? 'autofocus' : '' ?>>
|
||||
<input type="text" class="form-control" name="title" maxlength="200" value="<?= escapeHtml($kb_form['kb_article_title'] ?? '') ?>" placeholder="Set up company email on an iPhone" required <?= $kb_form_mode === 'add' ? 'autofocus' : '' ?>>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
@@ -129,7 +129,7 @@ $value = function ($key) use ($form) {
|
||||
<label class="form-label">VLAN</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-layer-group"></i></span>
|
||||
<input type="number" class="form-control" name="vlan" min="1" max="4094" placeholder="e.g. 10" value="<?= $value('network_vlan') ?>">
|
||||
<input type="number" class="form-control" name="vlan" min="1" max="4094" placeholder="10" value="<?= $value('network_vlan') ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ while ($row = mysqli_fetch_assoc($sql)) {
|
||||
<option value="<?= $vendor_id ?>" <?= $form_vendor === $vendor_id ? 'selected' : '' ?><?= selectOptionVendor($vendor['vendor_name'], $vendor['vendor_archived_at'] ? 'Archived' : (string) $vendor['vendor_description']) ?>><?= escapeHtml($vendor['vendor_name']) ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<a class="btn btn-outline-secondary" title="Add a vendor - opens Vendors in a new tab" href="vendors.php" target="_blank"><i class="fas fa-fw fa-plus"></i></a>
|
||||
<a class="btn btn-outline-secondary" title="Add a vendor - opens Vendors in a new tab" href="vendors.php" target="_blank" rel="noopener"><i class="fas fa-fw fa-plus"></i></a>
|
||||
</div>
|
||||
<div class="form-text" data-expense-filled hidden>Filled in from the last expense with them.</div>
|
||||
</div>
|
||||
|
||||
@@ -401,7 +401,7 @@ ob_start();
|
||||
<label class="form-label">Watchers</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-envelope"></i></span>
|
||||
<select class="form-select select2" name="watchers[]" id="watchersSelect" data-tags="true" data-placeholder="Enter or select email address" multiple>
|
||||
<select class="form-select select2" name="watchers[]" id="watchersSelect" data-tags="true" data-placeholder="Type a name or an email address" multiple>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -23,7 +23,7 @@ ob_start();
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="mb-3">
|
||||
<textarea class="form-control tinymce" rows="5" name="bulk_details" placeholder="Enter closing remarks"></textarea>
|
||||
<textarea class="form-control tinymce" rows="5" name="bulk_details" placeholder="Closing remarks"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="col-3">
|
||||
|
||||
@@ -59,7 +59,7 @@ ob_start();
|
||||
<label class="form-label">Time estimate <span class="text-secondary">(minutes)</span></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-clock"></i></span>
|
||||
<input type="number" class="form-control" name="completion_estimate" placeholder="e.g. 30" value="<?= $task_completion_estimate ?>">
|
||||
<input type="number" class="form-control" name="completion_estimate" placeholder="30" value="<?= $task_completion_estimate ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -150,8 +150,8 @@ ob_start();
|
||||
<label class="form-label">Amount</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-dollar-sign"></i></span>
|
||||
<input type="number" step="0.01" min="0" class="form-control" name="amount_min" value="<?= escapeHtml($amount_min) ?>" placeholder="At least">
|
||||
<input type="number" step="0.01" min="0" class="form-control" name="amount_max" value="<?= escapeHtml($amount_max) ?>" placeholder="At most">
|
||||
<input type="text" inputmode="decimal" pattern="[0-9,]*\.?[0-9]{0,2}" class="form-control" name="amount_min" value="<?= escapeHtml($amount_min) ?>" placeholder="At least">
|
||||
<input type="text" inputmode="decimal" pattern="[0-9,]*\.?[0-9]{0,2}" class="form-control" name="amount_max" value="<?= escapeHtml($amount_max) ?>" placeholder="At most">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
2
agent/modals/vendor/vendor_form.php
vendored
2
agent/modals/vendor/vendor_form.php
vendored
@@ -188,7 +188,7 @@ $form_id = 'vendorForm' . ($vendor_form_mode === 'edit' ? $vendor_id : 'New');
|
||||
<label class="form-label">Support site</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-globe"></i></span>
|
||||
<input type="text" class="form-control" name="website" placeholder="support.vendor.com" maxlength="200" value="<?= $vendor_website ?>">
|
||||
<input type="text" inputmode="url" class="form-control" name="website" placeholder="support.vendor.com" maxlength="200" value="<?= $vendor_website ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
@@ -397,7 +397,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/network/network.php?id=<?= $network_id ?>">
|
||||
<i class="fas fa-fw fa-eye text-secondary me-2"></i>Quick Look
|
||||
</a>
|
||||
<a class="dropdown-item" href="<?= $url ?>" target="_blank">
|
||||
<a class="dropdown-item" href="<?= $url ?>" target="_blank" rel="noopener">
|
||||
<i class="fas fa-fw fa-external-link-alt text-secondary me-2"></i>Open in a New Tab
|
||||
</a>
|
||||
<?php if ($can_edit && !$is_archived) { ?>
|
||||
|
||||
@@ -408,7 +408,7 @@ $hidden_filter_count = $date_filter_active ? 1 : 0;
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/project/project.php?id=<?= $project_id ?>">
|
||||
<i class="fas fa-fw fa-eye text-secondary me-2"></i>Quick Look
|
||||
</a>
|
||||
<a class="dropdown-item" href="<?= $url ?>" target="_blank">
|
||||
<a class="dropdown-item" href="<?= $url ?>" target="_blank" rel="noopener">
|
||||
<i class="fas fa-fw fa-external-link-alt text-secondary me-2"></i>Open in a New Tab
|
||||
</a>
|
||||
<?php if ($can_edit) { ?>
|
||||
|
||||
@@ -115,7 +115,7 @@ if (!$po || !poAccessible($po['po_id'])) {
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown"><i class="fas fa-ellipsis-v"></i><span class="visually-hidden">More</span></button>
|
||||
<div class="dropdown-menu dropdown-menu-end">
|
||||
<a class="dropdown-item" href="post.php?po_pdf=<?= $po_id ?>&csrf_token=<?= $csrf ?>" target="_blank"><i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>PDF</a>
|
||||
<a class="dropdown-item" href="post.php?po_pdf=<?= $po_id ?>&csrf_token=<?= $csrf ?>" target="_blank" rel="noopener"><i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>PDF</a>
|
||||
<?php if ($can_edit && $ordered_or_after) { ?>
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $modal('po_email') ?>"><i class="fas fa-fw fa-envelope text-secondary me-2"></i>Email to Vendor</a>
|
||||
<?php } ?>
|
||||
|
||||
@@ -226,7 +226,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="purchase_order.php?po_id=<?= $po_id ?>"><i class="fas fa-fw fa-eye text-secondary me-2"></i>Open</a>
|
||||
<a class="dropdown-item" href="post.php?po_pdf=<?= $po_id ?>&csrf_token=<?= $csrf ?>" target="_blank"><i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>PDF</a>
|
||||
<a class="dropdown-item" href="post.php?po_pdf=<?= $po_id ?>&csrf_token=<?= $csrf ?>" target="_blank" rel="noopener"><i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>PDF</a>
|
||||
<?php if ($arriving && $can_edit) { ?>
|
||||
<a class="dropdown-item" href="receiving.php?po_id=<?= $po_id ?>"><i class="fas fa-fw fa-truck-loading text-secondary me-2"></i>Receive</a>
|
||||
<?php } ?>
|
||||
|
||||
@@ -180,7 +180,7 @@ echo agentBannersHtml($client_id);
|
||||
<i class="fas fa-fw fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="post.php?export_quote_pdf=<?= $quote_id ?>&csrf_token=<?= $csrf ?>" target="_blank">
|
||||
<a class="dropdown-item" href="post.php?export_quote_pdf=<?= $quote_id ?>&csrf_token=<?= $csrf ?>" target="_blank" rel="noopener">
|
||||
<i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>Download PDF
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" onclick="window.print(); return false;">
|
||||
|
||||
@@ -275,7 +275,7 @@ $stat_monthly = function ($amount) use ($stat_money) {
|
||||
<button class="btn btn-sm btn-light" title="More actions" type="button" data-bs-toggle="dropdown"><i class="fas fa-fw fa-ellipsis-v"></i></button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="<?= $row_url ?>"><i class="fas fa-fw fa-eye text-secondary me-2"></i>Open</a>
|
||||
<a class="dropdown-item" href="post.php?export_quote_pdf=<?= $quote_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" target="_blank"><i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>Download PDF</a>
|
||||
<a class="dropdown-item" href="post.php?export_quote_pdf=<?= $quote_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" target="_blank" rel="noopener"><i class="fas fa-fw fa-file-pdf text-secondary me-2"></i>Download PDF</a>
|
||||
<?php if ($can_edit) { ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<?php if ($mail_ready && in_array($row_status, ['Draft', 'Sent', 'Viewed'], true)) { ?>
|
||||
|
||||
@@ -383,7 +383,7 @@ $link_icons = ['asset' => ['fa-desktop', 'asset', 'assets'], 'credential' => ['f
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="<?= $quick_url ?>">
|
||||
<i class="fas fa-fw fa-eye text-secondary me-2"></i>Quick Look
|
||||
</a>
|
||||
<a class="dropdown-item" href="<?= $url ?>" target="_blank">
|
||||
<a class="dropdown-item" href="<?= $url ?>" target="_blank" rel="noopener">
|
||||
<i class="fas fa-fw fa-external-link-alt text-secondary me-2"></i>Open in a New Tab
|
||||
</a>
|
||||
<?php if ($can_edit && !$is_archived) { ?>
|
||||
|
||||
@@ -792,7 +792,7 @@ if (isset($_GET['ticket_id'])) {
|
||||
<?php if (strtolower(pathinfo($ticket_attachment['ticket_attachment_name'], PATHINFO_EXTENSION)) === 'eml') { ?>
|
||||
<a class="ms-2 small ajax-modal" href="#" data-modal-url="modals/ticket/ticket_email_source.php?attachment_id=<?= $ticket_attachment_id ?>" data-modal-size="lg">Read</a>
|
||||
<?php } else { ?>
|
||||
<a target="_blank" class="ms-2 small" href="ticket_attachment.php?attachment_id=<?= $ticket_attachment_id ?>&action=view">View</a>
|
||||
<a target="_blank" rel="noopener" class="ms-2 small" href="ticket_attachment.php?attachment_id=<?= $ticket_attachment_id ?>&action=view">View</a>
|
||||
<?php } ?>
|
||||
<a class="ms-2 small" href="ticket_attachment.php?attachment_id=<?= $ticket_attachment_id ?>">Download</a>
|
||||
<?php if (lookupUserPermission("module_support") >= 3) { ?>
|
||||
@@ -1239,7 +1239,7 @@ if (isset($_GET['ticket_id'])) {
|
||||
<?php if (strtolower(pathinfo($ticket_attachment['ticket_attachment_name'], PATHINFO_EXTENSION)) === 'eml') { ?>
|
||||
<a class="ms-2 small ajax-modal" href="#" data-modal-url="modals/ticket/ticket_email_source.php?attachment_id=<?= $ticket_attachment_id ?>" data-modal-size="lg">Read</a>
|
||||
<?php } else { ?>
|
||||
<a target="_blank" class="ms-2 small" href="ticket_attachment.php?attachment_id=<?= $ticket_attachment_id ?>&action=view">View</a>
|
||||
<a target="_blank" rel="noopener" class="ms-2 small" href="ticket_attachment.php?attachment_id=<?= $ticket_attachment_id ?>&action=view">View</a>
|
||||
<?php } ?>
|
||||
<a class="ms-2 small" href="ticket_attachment.php?attachment_id=<?= $ticket_attachment_id ?>">Download</a>
|
||||
<?php if (lookupUserPermission("module_support") >= 3) { ?>
|
||||
|
||||
@@ -103,7 +103,7 @@ $tickets_tags = tagsForRecords('ticket', $board_ids);
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/ticket/ticket.php?id=<?= $ticket_id ?>">
|
||||
<i class="fas fa-fw fa-eye text-secondary me-2"></i>Quick Look
|
||||
</a>
|
||||
<a class="dropdown-item" href="<?= $url ?>" target="_blank">
|
||||
<a class="dropdown-item" href="<?= $url ?>" target="_blank" rel="noopener">
|
||||
<i class="fas fa-fw fa-external-link-alt text-secondary me-2"></i>Open in a New Tab
|
||||
</a>
|
||||
<?php if ($can_edit) { ?>
|
||||
|
||||
@@ -289,7 +289,7 @@ $show_due = $sla_in_use || mysqli_num_rows(mysqli_query($mysqli, "SELECT 1 FROM
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/ticket/ticket.php?id=<?= $ticket_id ?>">
|
||||
<i class="fas fa-fw fa-eye text-secondary me-2"></i>Quick Look
|
||||
</a>
|
||||
<a class="dropdown-item" href="<?= $url ?>" target="_blank">
|
||||
<a class="dropdown-item" href="<?= $url ?>" target="_blank" rel="noopener">
|
||||
<i class="fas fa-fw fa-external-link-alt text-secondary me-2"></i>Open in a New Tab
|
||||
</a>
|
||||
<?php if ($can_edit && !$is_closed) { ?>
|
||||
|
||||
@@ -349,8 +349,8 @@ $is_card = $account && $account['type'] === 3;
|
||||
<div class="col-lg-3 col-md-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-dollar-sign"></i></span>
|
||||
<input type="number" step="0.01" min="0" class="form-control" name="amount_min" value="<?= escapeHtml($amount_min) ?>" placeholder="At least" aria-label="At least" onchange="this.form.submit()">
|
||||
<input type="number" step="0.01" min="0" class="form-control" name="amount_max" value="<?= escapeHtml($amount_max) ?>" placeholder="At most" aria-label="At most" onchange="this.form.submit()">
|
||||
<input type="text" inputmode="decimal" pattern="[0-9,]*\.?[0-9]{0,2}" class="form-control" name="amount_min" value="<?= escapeHtml($amount_min) ?>" placeholder="At least" aria-label="At least" onchange="this.form.submit()">
|
||||
<input type="text" inputmode="decimal" pattern="[0-9,]*\.?[0-9]{0,2}" class="form-control" name="amount_max" value="<?= escapeHtml($amount_max) ?>" placeholder="At most" aria-label="At most" onchange="this.form.submit()">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -664,7 +664,7 @@ function accountLedgerFiltersSql(array $src, &$summary = [], $with_show = true,
|
||||
$summary['Paid by'] = $method;
|
||||
}
|
||||
foreach (['amount_min' => '>=', 'amount_max' => '<='] as $key => $op) {
|
||||
$value = trim((string) ($src[$key] ?? ''));
|
||||
$value = str_replace(',', '', trim((string) ($src[$key] ?? '')));
|
||||
if ($value !== '' && is_numeric($value)) {
|
||||
$sql .= " AND ABS(ledger.txn_amount) $op " . round(abs(floatval($value)), 2);
|
||||
$summary[$key === 'amount_min' ? 'At least' : 'At most'] = billingMoney(abs(floatval($value)));
|
||||
|
||||
@@ -174,7 +174,7 @@ function kbPickerRowsHtml(array $rows, $client_id) {
|
||||
$reach = kbReachFor($row, isset($readable[$id]));
|
||||
$html .= '<div class="itflow-kb-pick-item" data-kb-pick-item data-kb-id="' . $id . '" data-kb-title="' . escapeHtml($row['kb_article_title']) . '" data-kb-url="' . escapeHtml($reach['url']) . '">'
|
||||
. '<div class="itflow-kb-pick-text">'
|
||||
. '<a class="d-block fw-semibold text-truncate text-reset" href="/agent/kb_article.php?kb_article_id=' . $id . '" target="_blank" title="Read it - opens in a new tab">' . escapeHtml($row['kb_article_title']) . '</a>'
|
||||
. '<a class="d-block fw-semibold text-truncate text-reset" href="/agent/kb_article.php?kb_article_id=' . $id . '" target="_blank" rel="noopener" title="Read it - opens in a new tab">' . escapeHtml($row['kb_article_title']) . '</a>'
|
||||
. '<span class="d-block small text-body-secondary text-truncate">' . escapeHtml(kbArticleExcerpt($row, 120)) . '</span>'
|
||||
. '<span class="d-block small text-body-secondary"><i class="fas fa-fw ' . $reach['icon'] . ' me-1"></i>' . $reach['text'] . '</span>'
|
||||
. '</div>'
|
||||
|
||||
@@ -129,7 +129,7 @@ $files = !empty($r['canned_response_id']) ? cannedResponseFiles($r['canned_respo
|
||||
$file_id = intval($file['canned_response_file_id']); ?>
|
||||
<li class="list-group-item d-flex align-items-center gap-2">
|
||||
<i class="far fa-fw fa-<?= getFileIcon(pathinfo($file['canned_response_file_name'], PATHINFO_EXTENSION)) ?> text-secondary"></i>
|
||||
<a class="text-truncate" href="/agent/canned_response_file.php?file_id=<?= $file_id ?>" target="_blank"><?= escapeHtml($file['canned_response_file_name']) ?></a>
|
||||
<a class="text-truncate" href="/agent/canned_response_file.php?file_id=<?= $file_id ?>" target="_blank" rel="noopener"><?= escapeHtml($file['canned_response_file_name']) ?></a>
|
||||
<span class="small text-secondary text-nowrap"><?= cannedResponseFileSizeText($file['canned_response_file_size']) ?></span>
|
||||
<div class="form-check ms-auto mb-0">
|
||||
<input class="form-check-input" type="checkbox" name="remove_file_ids[]" value="<?= $file_id ?>" id="cannedResponseRemoveFile<?= $file_id ?>">
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
just content again. */ ?>
|
||||
<?php if (basename(dirname($_SERVER['REQUEST_URI'])) === 'admin') { ?>
|
||||
<footer class="app-footer py-2 d-flex align-items-center">
|
||||
<div class="w-100 text-end fw-light">ITFlow <?= APP_VERSION ?> · <a target="_blank" href="https://docs.itflow.org">Docs</a> · <a target="_blank" href="https://forum.itflow.org">Forum</a> · <a target="_blank" href="https://services.itflow.org">Services</a></div>
|
||||
<div class="w-100 text-end fw-light">ITFlow <?= APP_VERSION ?> · <a target="_blank" rel="noopener noreferrer" href="https://docs.itflow.org">Docs</a> · <a target="_blank" rel="noopener noreferrer" href="https://forum.itflow.org">Forum</a> · <a target="_blank" rel="noopener noreferrer" href="https://services.itflow.org">Services</a></div>
|
||||
</footer>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user