mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 00:59:03 +00:00
Text messaging Receive only: database 4.3.6 adds sms_providers.sms_provider_send, and a provider set to Receive only in its window takes texts in as tickets, replies and codes and texts nothing out (no Text reply, ticket number, STOP or HELP answers, texts to clients or test texts), needs no SID or secret, cancels the texts waiting to go when switched, and is shown on Text Messaging, Text Messages, Notifications and Tickets settings and in the reply box of a ticket that came in by text, with the number to call; 26.12.3 changelog
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
/*
|
||||
* Admin > Text Messaging - the texting service ITFlow texts through (functions/sms.php), one
|
||||
* number for every client. Each row says whether it is on, the number, the address its texts
|
||||
* number for every client. Each row says whether it is on, whether it is Receive only, the number, the address its texts
|
||||
* come back to (pasted into the service's portal), and its texts in the last 30 days. Send a
|
||||
* test text tries it; Opted out and blocked lists the numbers that replied STOP or were
|
||||
* marked spam. Add and Edit are one window (modals/sms_provider/sms_provider_edit.php); the
|
||||
@@ -114,6 +114,9 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<?php if (!$on) { ?>
|
||||
<span class="badge rounded-pill text-bg-secondary ms-1" data-sms-provider-state="off" title="No texts go out, and texts sent to the number aren't taken in">Off</span>
|
||||
<?php } ?>
|
||||
<?php if (!smsSends($row)) { ?>
|
||||
<span class="badge rounded-pill text-bg-info ms-1" data-sms-provider-state="receive-only" title="Texts to the number come in - as tickets, replies and codes - and nothing is texted out">Receive only</span>
|
||||
<?php } ?>
|
||||
<?php if (trim((string) $row['sms_provider_description']) !== '') { ?>
|
||||
<div class="small text-body-secondary"><?= escapeHtml($row['sms_provider_description']) ?></div>
|
||||
<?php } ?>
|
||||
@@ -144,7 +147,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-url="<?= $edit_url ?>">
|
||||
<i class="fas fa-fw fa-edit text-secondary me-2"></i>Edit
|
||||
</a>
|
||||
<?php if ($on) { ?>
|
||||
<?php if ($on && smsSends($row)) { ?>
|
||||
<a class="dropdown-item ajax-modal" href="#" data-modal-url="modals/sms_provider/sms_test.php?id=<?= $provider_id ?>">
|
||||
<i class="fas fa-fw fa-vial text-secondary me-2"></i>Send a Test Text
|
||||
</a>
|
||||
@@ -182,7 +185,7 @@ $csrf = $_SESSION['csrf_token'];
|
||||
$empty_state = [
|
||||
'thing' => 'texting providers',
|
||||
'icon' => 'fa-sms',
|
||||
'text' => 'Set up Skyetel and your agents can reply to tickets by text, texts from your clients open tickets, and verification codes texted to your number land in Texts.',
|
||||
'text' => 'Set up Skyetel and texts from your clients open tickets, verification codes texted to your number land in Texts, and your agents can reply to tickets by text - or set it to Receive only, and nothing is texted out.',
|
||||
'actions' => $can_add ? [['label' => 'New Provider', 'modal' => $add_url]] : [],
|
||||
];
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user