testing progress
This commit is contained in:
@@ -1582,8 +1582,8 @@ class TWP_Admin {
|
||||
<h3><?php echo esc_html($queue->queue_name); ?></h3>
|
||||
<div class="queue-stats">
|
||||
<div class="stat">
|
||||
<span class="label">Phone Number:</span>
|
||||
<span class="value"><?php echo esc_html($queue->phone_number ?: 'Not set'); ?></span>
|
||||
<span class="label">Notification Number:</span>
|
||||
<span class="value"><?php echo esc_html($queue->notification_number ?: 'Not set'); ?></span>
|
||||
</div>
|
||||
<?php
|
||||
// Get agent group name
|
||||
@@ -1635,8 +1635,8 @@ class TWP_Admin {
|
||||
<label>Queue Name:</label>
|
||||
<input type="text" name="queue_name" required>
|
||||
|
||||
<label>Phone Number:</label>
|
||||
<select name="phone_number" id="queue-phone-number" class="regular-text">
|
||||
<label>SMS Notification Number:</label>
|
||||
<select name="notification_number" id="queue-notification-number" class="regular-text">
|
||||
<option value="">Select a Twilio number...</option>
|
||||
<?php
|
||||
try {
|
||||
@@ -3082,7 +3082,7 @@ class TWP_Admin {
|
||||
|
||||
$data = array(
|
||||
'queue_name' => sanitize_text_field($_POST['queue_name']),
|
||||
'phone_number' => sanitize_text_field($_POST['phone_number']),
|
||||
'notification_number' => sanitize_text_field($_POST['notification_number']),
|
||||
'agent_group_id' => !empty($_POST['agent_group_id']) ? intval($_POST['agent_group_id']) : null,
|
||||
'max_size' => intval($_POST['max_size']),
|
||||
'wait_music_url' => esc_url_raw($_POST['wait_music_url']),
|
||||
|
Reference in New Issue
Block a user