mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 09:09:01 +00:00
Mail review stage 7d: the links in emails that open a ticket, invoice or quote without signing in stop working a set time after it is closed, paid or answered, 90 days to start and set in Admin > Settings > Security, with an expired page pointing to the client portal and Copy Client Link marked Expired; your own subject, heading, opening and closing text for the 13 emails about a ticket to clients, edited from Admin > Settings > Mail > Previews with square-bracket placeholders (database 4.3.4); 26.12.3 changelog
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
* Admin > Settings > Mail - sending (an SMTP server, or Google Workspace /
|
||||
* Microsoft 365 by OAuth), receiving the mailbox email to ticket reads, the
|
||||
* OAuth app both share, the addresses and names emails come from, tests, and
|
||||
* a preview of every email ITFlow sends. Each tab's form saves on its own
|
||||
* a preview of every email ITFlow sends - with Edit Wording on the emails about a ticket to clients
|
||||
* (functions/email_template.php). Each tab's form saves on its own
|
||||
* (admin/post/settings_mail.php), with the frame's save bar. Passwords, the
|
||||
* OAuth secret and its refresh token are never put back into the page: left
|
||||
* empty, they stay as saved.
|
||||
@@ -461,7 +462,7 @@ if (!$config_module_enable_ticketing) {
|
||||
<?php foreach ($preview_entries as $preview_key => $preview_entry) { ?>
|
||||
<button type="button" class="list-group-item list-group-item-action <?= $preview_key === $preview_first ? 'active' : '' ?>" data-preview="<?= escapeHtml($preview_key) ?>"
|
||||
data-preview-text="<?= escapeHtml(strtolower($preview_group . ' ' . $preview_entry['label'] . ' ' . $preview_entry['to'] . ' ' . $preview_entry['when'])) ?>">
|
||||
<div class="fw-semibold"><?= escapeHtml($preview_entry['label']) ?></div>
|
||||
<div class="fw-semibold"><?= escapeHtml($preview_entry['label']) ?><?php if (emailTemplateEdited($preview_key)) { ?> <span class="badge text-bg-info ms-1" data-preview-edited title="Its wording is your own">Edited</span><?php } ?></div>
|
||||
<div class="small opacity-75"><?= escapeHtml($preview_entry['to']) ?></div>
|
||||
</button>
|
||||
<?php } ?>
|
||||
@@ -480,6 +481,10 @@ if (!$config_module_enable_ticketing) {
|
||||
<div class="small text-body-secondary"><i class="fas fa-fw fa-bolt me-1"></i><span data-preview-when></span><span class="ms-2 badge text-bg-secondary d-none" data-preview-calendar><i class="fas fa-calendar-alt me-1"></i>Calendar file attached</span></div>
|
||||
</div>
|
||||
<div class="d-flex gap-2 align-items-center">
|
||||
<?php // Your own wording for the emails about a ticket to clients (functions/email_template.php) ?>
|
||||
<button type="button" class="btn btn-sm btn-outline-primary ajax-modal d-none" data-modal-url="" data-preview-edit title="Its subject, heading and text">
|
||||
<i class="fas fa-fw fa-pen me-1"></i>Edit Wording
|
||||
</button>
|
||||
<div class="btn-group btn-group-sm" role="group" aria-label="Width">
|
||||
<button type="button" class="btn btn-outline-secondary active" data-preview-width="100%" title="As on a computer"><i class="fas fa-fw fa-desktop"></i></button>
|
||||
<button type="button" class="btn btn-outline-secondary" data-preview-width="390px" title="As on a phone"><i class="fas fa-fw fa-mobile-alt"></i></button>
|
||||
@@ -558,6 +563,9 @@ if (!$config_module_enable_ticketing) {
|
||||
card.querySelector('[data-preview-cc-line]').classList.toggle('d-none', !(data.cc && data.cc.length));
|
||||
card.querySelector('[data-preview-when]').textContent = 'Sent when: ' + (data.when || '');
|
||||
card.querySelector('[data-preview-calendar]').classList.toggle('d-none', !data.calendar);
|
||||
var edit = card.querySelector('[data-preview-edit]');
|
||||
edit.classList.toggle('d-none', !data.template);
|
||||
edit.setAttribute('data-modal-url', data.template ? 'modals/email_template/email_template_edit.php?key=' + encodeURIComponent(key) : '');
|
||||
var error = card.querySelector('[data-preview-error]');
|
||||
error.textContent = data.error || '';
|
||||
error.classList.toggle('d-none', !data.error);
|
||||
|
||||
Reference in New Issue
Block a user