mirror of
https://github.com/itflow-org/itflow
synced 2026-12-01 00:29:02 +00:00
QoL 65: fields marked with an asterisk are required and required fields are marked, a bulk asset move needs a client picked instead of moving them to no client, field hints use form-text everywhere, and the credit message is in sentence case
This commit is contained in:
@@ -112,7 +112,7 @@ $c_max = $c_config['max'] ?? 200;
|
||||
<div class="small text-secondary p-2" data-category-icon-none hidden>No icon by that name here - type its whole name to use it</div>
|
||||
</div>
|
||||
<?php if ($kind === 'asset_status') { ?>
|
||||
<small class="text-secondary">Asset statuses show as a badge in their color - the icon shows in the status picker.</small>
|
||||
<div class="form-text">Asset statuses show as a badge in their color - the icon shows in the status picker.</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -158,7 +158,7 @@ $tab = 'templateTab' . bin2hex(random_bytes(3));
|
||||
</select>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<small class="text-secondary">From Admin > SLAs. While the contract is in force, the client's new tickets get them, and the default for a priority left on the default.</small>
|
||||
<div class="form-text">From Admin > SLAs. While the contract is in force, the client's new tickets get them, and the default for a priority left on the default.</div>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="<?= $tab ?>Terms" role="tabpanel">
|
||||
|
||||
@@ -45,7 +45,7 @@ $ai_model = aiReady('Documentation') ? getAiModel('Documentation') : null;
|
||||
<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="fas fa-fw fa-magic me-1"></i>Draft</button>
|
||||
</div>
|
||||
<small class="text-secondary">Replaces what is in the editor below.</small>
|
||||
<div class="form-text">Replaces what is in the editor below.</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ if (!$template || $template['document_template_archived_at']) { ?>
|
||||
<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 class="form-text">It goes in the client's Files at the top level, and opens to fill in.</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="add_document_from_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
|
||||
@@ -84,7 +84,7 @@ if (!$template || $template['document_template_archived_at']) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<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 class="form-text">Each goes in its client's Files at the top level, named and summed up as the template is.</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" name="make_documents_from_template" class="btn btn-primary fw-bold"><i class="fas fa-check me-2"></i>Create</button>
|
||||
|
||||
@@ -50,7 +50,7 @@ if (!$payment_method) { ?>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<small class="text-secondary">Merges <?= $name ?> into the method you pick<?= $is_default ? ', which also takes its place as a default' : '' ?>. To leave its records as they are, archive it instead - it stops being offered, and they keep saying <?= $name ?>.</small>
|
||||
<div class="form-text">Merges <?= $name ?> into the method you pick<?= $is_default ? ', which also takes its place as a default' : '' ?>. To leave its records as they are, archive it instead - it stops being offered, and they keep saying <?= $name ?>.</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<p class="mb-2">Nothing has been paid this way, so nothing else changes.</p>
|
||||
|
||||
@@ -24,9 +24,9 @@ $m_usage = $m ? paymentMethodUsageFor($m_name) : ['total' => 0];
|
||||
<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) { ?>
|
||||
<small class="text-secondary"><i class="fas fa-fw fa-lock me-1"></i>Card payments clients make online are recorded as <?= escapeHtml(PAYMENT_METHOD_ONLINE) ?>, so its name stays.</small>
|
||||
<div class="form-text"><i class="fas fa-fw fa-lock me-1"></i>Card payments clients make online are recorded as <?= escapeHtml(PAYMENT_METHOD_ONLINE) ?>, so its name stays.</div>
|
||||
<?php } elseif ($m && $m_usage['total']) { ?>
|
||||
<small class="text-secondary">Renaming it renames it on the <?= escapeHtml(paymentMethodUsageText($m_usage)) ?> that used it.</small>
|
||||
<div class="form-text">Renaming it renames it on the <?= escapeHtml(paymentMethodUsageText($m_usage)) ?> that used it.</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
@@ -48,5 +48,5 @@ $m_usage = $m ? paymentMethodUsageFor($m_name) : ['total' => 0];
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<small class="text-secondary">Which pickers offer it - money in is payments from clients and other income; money out is expenses, recurring expenses, reimbursements and mileage claims. Transfers between accounts offer every method.</small>
|
||||
<div class="form-text">Which pickers offer it - money in is payments from clients and other income; money out is expenses, recurring expenses, reimbursements and mileage claims. Transfers between accounts offer every method.</div>
|
||||
</div>
|
||||
|
||||
@@ -46,11 +46,11 @@ ob_start();
|
||||
<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">
|
||||
<div class="form-text">
|
||||
<?php foreach ($years as $year => [$in, $total]) { ?>
|
||||
<span class="d-block"><?= $year ?> - <?= $in === $total ? "all $total are in" : ($in ? "$in of $total are in" : 'none are in yet') ?></span>
|
||||
<?php } ?>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
@@ -52,7 +52,7 @@ $f_day_minutes = slaBusinessDayMinutes();
|
||||
<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">
|
||||
<span class="input-group-text">minutes</span>
|
||||
</div>
|
||||
<small class="text-secondary">How long there is to first reply to a new ticket.</small>
|
||||
<div class="form-text">How long there is to first reply to a new ticket.</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
@@ -64,7 +64,7 @@ $f_day_minutes = slaBusinessDayMinutes();
|
||||
<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">
|
||||
<span class="input-group-text">minutes</span>
|
||||
</div>
|
||||
<small class="text-secondary">How long there is to resolve it. Leave both empty for an SLA that only times the first reply.</small>
|
||||
<div class="form-text">How long there is to resolve it. Leave both empty for an SLA that only times the first reply.</div>
|
||||
</div>
|
||||
|
||||
<div class="small text-secondary mb-1">
|
||||
|
||||
@@ -56,7 +56,7 @@ if (!in_array($t_icon, $t_icons, true)) {
|
||||
</select>
|
||||
</div>
|
||||
<?php if ($t_kind_locked) { ?>
|
||||
<small class="text-secondary">In use, so it stays <?= tagKindPhrase($type) ?></small>
|
||||
<div class="form-text">In use, so it stays <?= tagKindPhrase($type) ?></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -67,7 +67,7 @@ if (!in_array($t_icon, $t_icons, true)) {
|
||||
<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>
|
||||
<div class="form-text">Shown on the tag and in the tag picker</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
|
||||
@@ -54,7 +54,7 @@ if (!$tax || $tax['tax_archived_at']) { ?>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<small class="text-secondary">Left where they are, recurring invoices and drafts keep charging it, products and clients fall back to the next rate along for new lines<?= $usage['default'] ? ', and there is no default until you pick one' : '' ?>.</small>
|
||||
<div class="form-text">Left where they are, recurring invoices and drafts keep charging it, products and clients fall back to the next rate along for new lines<?= $usage['default'] ? ', and there is no default until you pick one' : '' ?>.</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
@@ -71,7 +71,7 @@ $tax_part_row = function ($key, array $part = []) {
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-id-card"></i></span>
|
||||
<input type="text" class="form-control" name="registration" maxlength="100" placeholder="Permit, GST/HST or VAT number" value="<?= escapeHtml($t['tax_registration_number'] ?? '') ?>">
|
||||
</div>
|
||||
<small class="text-secondary">Printed with this tax on invoices</small>
|
||||
<div class="form-text">Printed with this tax on invoices</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ $s_reply_value = $s_reply_to && isset($s_reply_choices["to-$s_reply_to"]) ? "to-
|
||||
<input type="text" class="form-control" name="name" maxlength="200" placeholder="Waiting on Vendor, Scheduled, Parts Ordered" value="<?= escapeHtml($s_name) ?>" required<?= $s_builtin ? ' readonly' : ($s ? '' : ' autofocus') ?> data-ticket-status-name>
|
||||
</div>
|
||||
<?php if ($s_builtin) { ?>
|
||||
<small class="text-secondary"><i class="fas fa-fw fa-lock me-1"></i>ITFlow's own statuses keep their names. <?= escapeHtml($s_builtin['set_by']) ?></small>
|
||||
<div class="form-text"><i class="fas fa-fw fa-lock me-1"></i>ITFlow's own statuses keep their names. <?= escapeHtml($s_builtin['set_by']) ?></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
@@ -60,7 +60,7 @@ $s_reply_value = $s_reply_to && isset($s_reply_choices["to-$s_reply_to"]) ? "to-
|
||||
<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="<?= escapeHtml($s_builtin ? $s_builtin['about'] : 'What it means, and when to use it') ?>" value="<?= escapeHtml($s_description) ?>">
|
||||
</div>
|
||||
<small class="text-secondary">Shown when the status is hovered - in the pickers, on the board and on tickets.</small>
|
||||
<div class="form-text">Shown when the status is hovered - in the pickers, on the board and on tickets.</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
@@ -93,10 +93,10 @@ $s_reply_value = $s_reply_to && isset($s_reply_choices["to-$s_reply_to"]) ? "to-
|
||||
</select>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<small class="text-secondary">
|
||||
<div class="form-text">
|
||||
<?php if ($s_builtin) { ?><i class="fas fa-fw fa-lock me-1"></i>Fixed for ITFlow's own statuses. <?php } ?>
|
||||
A ticket in a paused status never warns or breaches on resolution - the time already spent is kept, and the deadline moves out when it comes back. The response clock always runs.
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="<?= $s_id && !ticketStatusCanBeFirstResponse($s_id) ? 'mb-1' : 'mb-3' ?>">
|
||||
@@ -113,13 +113,13 @@ $s_reply_value = $s_reply_to && isset($s_reply_choices["to-$s_reply_to"]) ? "to-
|
||||
</select>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<small class="text-secondary">
|
||||
<div class="form-text">
|
||||
<?php if ($s_id === TICKET_STATUS_CLOSED) { ?>
|
||||
<i class="fas fa-fw fa-lock me-1"></i>A closed ticket takes no replies.
|
||||
<?php } else { ?>
|
||||
By email, in the portal or by text. Move it to a status such as "Client responded" to see at a glance which tickets have a new answer; back to Open suits a status that waits on the client<?= $s_builtin ? '' : '; leave it for one like Scheduled, where a "thanks, see you then" shouldn\'t put it back in the queue' ?>. Whoever it is assigned to is told either way.
|
||||
<?php } ?>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (ticketStatusReplyReady() && (!$s_id || ticketStatusCanBeFirstResponse($s_id))) { ?>
|
||||
@@ -133,9 +133,9 @@ $s_reply_value = $s_reply_to && isset($s_reply_choices["to-$s_reply_to"]) ? "to-
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<small class="text-secondary">
|
||||
<div class="form-text">
|
||||
An agent moving a ticket into this status before anyone has answered the client meets - or misses - the SLA's response target then: setting it by hand or in a reply, or assigning a new ticket, which moves it to Open. Once per ticket. With the email, the contact and watchers get the "ticket assigned" message from <a href="settings_ticket.php#messages">Settings > Tickets</a>, kept on the ticket as a public note; if nobody could be emailed, it doesn't count.
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
@@ -65,7 +65,7 @@ if (!$ticket_status || ticketStatusIsBuiltIn($ticket_status['ticket_status_id'])
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<small class="text-secondary">Each says so in its history, and its SLA clock follows the status it goes to.</small>
|
||||
<div class="form-text">Each says so in its history, and its SLA clock follows the status it goes to.</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<p class="small text-secondary"><i class="fas fa-fw fa-check me-1"></i>No tickets are in it.</p>
|
||||
|
||||
Reference in New Issue
Block a user