mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-22 09:26:27 +02:00
Masquage de la gestion des logs avec un compte non admin
This commit is contained in:
parent
5fe6a210de
commit
46444f5e69
4 changed files with 48 additions and 40 deletions
|
@ -43,7 +43,7 @@
|
|||
<th>Message</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Sélectionner</th>
|
||||
<?php if ($_SESSION['admin']) { ?><th>Sélectionner</th><?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -57,7 +57,7 @@
|
|||
<td><?php secho($sended['content']); ?></td>
|
||||
<td><?php secho($sended['at']); ?></td>
|
||||
<td><?php secho($sended['delivered'] ? 'Délivré' : ($sended['failed'] ? 'Échoué' : 'Inconnu')); ?></td>
|
||||
<td><input type="checkbox" value="<?php secho($sended['id']); ?>"></td>
|
||||
<?php if ($_SESSION['admin']) { ?><td><input type="checkbox" value="<?php secho($sended['id']); ?>"></td><?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
@ -66,15 +66,17 @@
|
|||
</table>
|
||||
</div>
|
||||
<nav>
|
||||
<div class="text-right col-xs-12 no-padding">
|
||||
<strong>Action groupée :</strong>
|
||||
<div class="btn-group action-dropdown" target="#table-sendeds">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action pour la sélection <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="<?php echo $this->generateUrl('sendeds', 'delete', [$_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</a></li>
|
||||
</ul>
|
||||
<?php if ($_SESSION['admin']) { ?>
|
||||
<div class="text-right col-xs-12 no-padding">
|
||||
<strong>Action groupée :</strong>
|
||||
<div class="btn-group action-dropdown" target="#table-sendeds">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action pour la sélection <span class="caret"></span></button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="<?php echo $this->generateUrl('sendeds', 'delete', [$_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<ul class="pager">
|
||||
<?php
|
||||
if ($page)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue