Liste des utilisateurs, affichage label actif
This commit is contained in:
parent
2f54607d92
commit
93db4adcea
@ -6,7 +6,7 @@
|
||||
<h1>Recherche d'utilisateurs</h1>
|
||||
</div>
|
||||
|
||||
<p class="bg-classes bg-info">Pour consulter la liste des utilisateurs d'un service,
|
||||
<p class="bg-classes bg-info">Pour consulter la liste des utilisateurs d'un service,
|
||||
veuillez sélectionner un service.</p>
|
||||
|
||||
<pre>Formulaire de recherche des utilisateurs</pre>
|
||||
@ -30,7 +30,7 @@ Filtre <span class="caret"></span>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<a href="<?=$this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'form',
|
||||
<a href="<?=$this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'form',
|
||||
'service'=>$this->Service->Code), 'default', true)?>"
|
||||
class="btn btn-sm btn-default">Création d'utilisateurs</a>
|
||||
|
||||
@ -46,14 +46,30 @@ Filtre <span class="caret"></span>
|
||||
<th>Identité</th>
|
||||
<th>Courriel</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->List as $l) {?>
|
||||
<?php if ($l->Enable == 1) {?>
|
||||
<tr class="active">
|
||||
<?php } else {?>
|
||||
<tr>
|
||||
<?php }?>
|
||||
<td><?=$l->Login?></td>
|
||||
<td><?=$l->Civilite . ". " . $l->Nom . " " . $l->Prenom?></td>
|
||||
<td><?=$l->Email?></td>
|
||||
<td>
|
||||
<?php if ($l->Delete == 0) {?>
|
||||
<?php if ($l->Enable == 1) {?>
|
||||
<span class="label label-success">Actif</span>
|
||||
<?php } else {?>
|
||||
<span class="label label-warning">Inactif</span>
|
||||
<?php }?>
|
||||
<?php } else {?>
|
||||
<span class="label label-danger">Supprimé</span>
|
||||
<?php }?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($this->Service->Editable == 1) {?>
|
||||
<div class="btn-group">
|
||||
@ -61,8 +77,8 @@ Filtre <span class="caret"></span>
|
||||
aria-expanded="false">Action <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li><a href="<?=$this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'detail',
|
||||
'id'=>$l->id), 'default', true)?>">Fiche</a></li>
|
||||
<li><a href="<?=$this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'detail',
|
||||
'id'=>$l->id), 'default', true)?>">Paramètres</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
Loading…
Reference in New Issue
Block a user