Masquage de la gestion des logs avec un compte non admin

This commit is contained in:
Pierre-Lin Bonnemaison 2015-10-13 19:40:47 +02:00
parent 5fe6a210de
commit 46444f5e69
4 changed files with 48 additions and 40 deletions

View file

@ -40,7 +40,7 @@
<tr>
<th>#</th>
<th>Numéro</th>
<th>Sélectionner</th>
<?php if ($_SESSION['admin']) { ?><th>Sélectionner</th><?php } ?>
</tr>
</thead>
<tbody>
@ -51,7 +51,7 @@
<tr>
<td><?php secho($smsStop['id']); ?></td>
<td><?php secho($smsStop['number']); ?></td>
<td><input type="checkbox" value="<?php secho($smsStop['id']); ?>"></td>
<?php if ($_SESSION['admin']) { ?><td><input type="checkbox" value="<?php secho($smsStop['id']); ?>"></td><?php } ?>
</tr>
<?php
}
@ -60,15 +60,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-smsstop">
<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('smsstop', '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-smsstop">
<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('smsstop', 'delete', [$_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</a></li>
</ul>
</div>
</div>
</div>
<?php } ?>
<ul class="pager">
<?php
if ($page)