2013-05-10 17:25:51 +02:00
|
|
|
<div id="title">
|
|
|
|
<h1>Users</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2013-07-31 22:04:34 +02:00
|
|
|
<div class="col-lg-3">
|
2014-04-30 15:13:07 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h4 class="panel-title">Options</h4>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="list-group">
|
|
|
|
<?php if($this->User()->getIsAdmin()): ?>
|
|
|
|
<a class="list-group-item" href="<?php echo PHPCI_URL ?>user/add"><i class="icon-plus-sign"></i> Add User</a>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-05-10 17:25:51 +02:00
|
|
|
</div>
|
2013-07-31 22:04:34 +02:00
|
|
|
<div class="col-lg-9">
|
2013-05-10 17:25:51 +02:00
|
|
|
<table class="table table-striped table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Email Address</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Administrator</th>
|
2013-07-31 22:04:34 +02:00
|
|
|
<th style="width: 100px"></th>
|
2013-05-10 17:25:51 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2013-09-20 23:18:22 +02:00
|
|
|
<tbody id="users">
|
2013-05-10 17:25:51 +02:00
|
|
|
<?php foreach($users['items'] as $user): ?>
|
|
|
|
<?php
|
|
|
|
switch($user->getIsAdmin())
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
$cls = '';
|
|
|
|
$status = 'No';
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
$cls = 'warning';
|
|
|
|
$status = 'Yes';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
2013-05-14 19:28:03 +02:00
|
|
|
<tr class="<?php print $cls; ?>">
|
2014-01-28 22:27:39 +01:00
|
|
|
<td><a href="<?php echo PHPCI_URL ?>user/edit/<?php print $user->getId(); ?>"><?php print $user->getEmail(); ?></a></td>
|
2013-11-03 00:39:55 +01:00
|
|
|
<td><?php print htmlspecialchars($user->getName()); ?></td>
|
2013-05-14 19:28:03 +02:00
|
|
|
<td><?php print $status; ?></td>
|
2013-05-10 17:25:51 +02:00
|
|
|
<td>
|
|
|
|
<?php if($this->User()->getIsAdmin()): ?>
|
|
|
|
<div class="btn-group">
|
2014-01-28 22:27:39 +01:00
|
|
|
<a class="btn btn-default btn-small" href="<?php echo PHPCI_URL ?>user/edit/<?php print $user->getId(); ?>">Edit</a>
|
2013-07-31 22:04:34 +02:00
|
|
|
<button class="btn btn-default btn-small dropdown-toggle" data-toggle="dropdown">
|
2013-05-10 17:25:51 +02:00
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu">
|
2014-01-28 22:27:39 +01:00
|
|
|
<li><a href="<?php echo PHPCI_URL ?>user/delete/<?php print $user->getId(); ?>" class="phpci-app-delete-user">Delete User</a></li>
|
2013-05-10 17:25:51 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2013-08-01 17:37:21 +02:00
|
|
|
</div>
|