mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 01:46:27 +02:00
Add notion of priority to phones
This commit is contained in:
parent
6353d5115b
commit
69619d0bef
7 changed files with 85 additions and 6 deletions
|
@ -47,6 +47,15 @@
|
|||
<input required="required" name="name" class="form-control" placeholder="Nom du téléphone" value="<?php $this->s($_SESSION['previous_http_post']['name'] ?? '') ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Priorité d'utilisation du téléphone</label>
|
||||
<p class="italic small help">
|
||||
Lors de l'envoi de SMS sans téléphone spécifié, les téléphones avec la plus haute priorité seront utilisés en premier.
|
||||
</p>
|
||||
<div class="form-group">
|
||||
<input required="required" name="priority" class="form-control" type="number" min="0" placeholder="Priorité d'utilisation" value="<?php $this->s($_SESSION['previous_http_post']['priority'] ?? 0) ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Type de téléphone</label>
|
||||
<p class="italic small help" id="description-adapter-general">
|
||||
|
|
|
@ -49,6 +49,15 @@
|
|||
<input required="required" name="phones[<?php $this->s($phone['id']); ?>][name]" class="form-control" placeholder="Nom du téléphone" value="<?php $this->s($phone['name']); ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Priorité d'utilisation du téléphone</label>
|
||||
<p class="italic small help">
|
||||
Lors de l'envoi de SMS sans téléphone spécifié, les téléphones avec la plus haute priorité seront utilisés en premier.
|
||||
</p>
|
||||
<div class="form-group">
|
||||
<input required="required" name="phones[<?php $this->s($phone['id']); ?>][priority]" class="form-control" type="number" min="0" placeholder="Priorité d'utilisation" value="<?php $this->s($phone['priority']) ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Type de téléphone</label>
|
||||
<p class="italic small help description-adapter-general">
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Nom</th>
|
||||
<th>Priorité</th>
|
||||
<th>Type de téléphone</th>
|
||||
<th>Callbacks</th>
|
||||
<th>Limites</th>
|
||||
|
@ -90,6 +91,7 @@ jQuery(document).ready(function ()
|
|||
"columns" : [
|
||||
{data: 'id', render: jQuery.fn.dataTable.render.text()},
|
||||
{data: 'name', render: jQuery.fn.dataTable.render.text()},
|
||||
{data: 'priority', render: jQuery.fn.dataTable.render.text()},
|
||||
{data: 'adapter', render: jQuery.fn.dataTable.render.text()},
|
||||
{
|
||||
data: '_',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue