32 lines
1.5 KiB
PHP
Executable File
32 lines
1.5 KiB
PHP
Executable File
<div class="p-4 bg-white">
|
|
<div class="d-flex align-items-center mb-3">
|
|
<span class="badge bg-warning text-dark me-2"><?= count($motifs) ?></span>
|
|
<h6 class="fw-bold mb-0 text-uppercase small"><?= _("Configuration des motifs") ?></h6>
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
<table id="tableMotifs" class="table table-hover align-middle border datatable-inter">
|
|
<thead class="bg-light small fw-bold">
|
|
<tr>
|
|
<th width="15%" class="text-center"><?= _("CODE") ?></th>
|
|
<th><?= _("MESSAGE PERSONNALISÉ") ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $i=0; foreach ($motifs as $v): $i++; $idMessage = $v['id']; ?>
|
|
<tr>
|
|
<td class="text-center fw-bold text-primary bg-light"><?= $this->nettoyer($v['codeMotifDepassement']) ?></td>
|
|
<td>
|
|
<input class="form-control border-0 bg-transparent fw-medium"
|
|
value="<?= est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']) ?>"
|
|
onchange="majmotifdepassement(<?=$idMessage ?>, <?=$i ?>);"
|
|
placeholder="<?= _("Saisir le texte ici...") ?>">
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|