mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-06 14:46:27 +02:00
start adding call support
This commit is contained in:
parent
e339dc4758
commit
52a0302dc2
12 changed files with 298 additions and 18 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="inbound_call" <?= ($_SESSION['previous_http_post']['type'] ?? '') == 'inbound_call' ? 'selected' : '' ?>>Réception d'un appel téléphonique</option>
|
||||
</select>
|
||||
</div>
|
||||
<a class="btn btn-danger" href="<?php echo \descartes\Router::url('Webhook', 'list'); ?>">Annuler</a>
|
||||
|
|
|
@ -92,6 +92,8 @@ jQuery(document).ready(function ()
|
|||
return 'Envoi de SMS';
|
||||
case 'receive_sms':
|
||||
return 'Réception de SMS';
|
||||
case 'inbound_call':
|
||||
return 'Réception d\'un appel téléphonique';
|
||||
default:
|
||||
return 'Inconnu';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue