mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-05-14 12:06:26 +02:00
Add new webhook when SMS fail to send
This commit is contained in:
parent
b8e587a59e
commit
c3fb8be0ad
5 changed files with 43 additions and 1 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_error" <?= ($_SESSION['previous_http_post']['type'] ?? '') == 'send_sms_error' ? 'selected' : '' ?>>Erreur à l'envoi d'un SMS</option>
|
||||
</select>
|
||||
</div>
|
||||
<a class="btn btn-danger" href="<?php echo \descartes\Router::url('Webhook', 'list'); ?>">Annuler</a>
|
||||
|
|
|
@ -90,6 +90,8 @@ jQuery(document).ready(function ()
|
|||
switch (data) {
|
||||
case 'send_sms':
|
||||
return 'Envoi de SMS';
|
||||
case 'send_sms_error':
|
||||
return 'Erreur à l\'envoi de SMS';
|
||||
case 'receive_sms':
|
||||
return 'Réception de SMS';
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue