mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Add a new webhook for sended sms status change. Add status and originating scheduled's id to webhook send_sms
This commit is contained in:
parent
ec108d8543
commit
d0fa0a299c
13 changed files with 91 additions and 25 deletions
|
@ -47,6 +47,7 @@
|
|||
<select name="type" class="form-control" required>
|
||||
<option value="receive_sms" <?= ($_SESSION['previous_http_post']['type'] ?? '') == 'receive_sms' ? 'selected' : '' ?>>Réception d'un SMS</option>
|
||||
<option value="send_sms" <?= ($_SESSION['previous_http_post']['type'] ?? '') == 'send_sms' ? 'selected' : '' ?>>Envoi d'un SMS</option>
|
||||
<option value="send_sms_status_change" <?= ($_SESSION['previous_http_post']['type'] ?? '') == 'send_sms_status_change' ? 'selected' : '' ?>>Mise à jour du statut d'un SMS envoyé</option>
|
||||
<option value="inbound_call" <?= ($_SESSION['previous_http_post']['type'] ?? '') == 'inbound_call' ? 'selected' : '' ?>>Réception d'un appel téléphonique</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
@ -50,6 +50,8 @@
|
|||
<select name="webhooks[<?php $this->s($webhook['id']); ?>][type]" class="form-control" required>
|
||||
<option <?php echo $webhook['type'] == 'receive_sms' ? 'selected="selected"' : '' ?> value="receive_sms">Réception d'un SMS</option>
|
||||
<option <?php echo $webhook['type'] == 'send_sms' ? 'selected="selected"' : '' ?> value="send_sms">Envoi d'un SMS</option>
|
||||
<option <?php echo $webhook['type'] == 'send_sms_status_change' ? 'selected="selected"' : '' ?> value="send_sms_status_change">Mise à jour du statut d'un SMS envoyé</option>
|
||||
<option <?php echo $webhook['type'] == 'inbound_call' ? 'selected="selected"' : '' ?> value="inbound_call">Réception d'un appel téléphonique</option>
|
||||
</select>
|
||||
</div>
|
||||
<hr/>
|
||||
|
|
|
@ -90,6 +90,8 @@ jQuery(document).ready(function ()
|
|||
switch (data) {
|
||||
case 'send_sms':
|
||||
return 'Envoi de SMS';
|
||||
case 'send_sms_status_change':
|
||||
return 'Mise à jour du statut d\'un SMS envoyé';
|
||||
case 'receive_sms':
|
||||
return 'Réception de SMS';
|
||||
case 'inbound_call':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue