app/controllers/backend/UserController.php: use the side-menu layout
This commit is contained in:
parent
bed7b36748
commit
34d2c048f5
2 changed files with 33 additions and 31 deletions
|
|
@ -6,6 +6,11 @@ use App\Model\Data\User;
|
||||||
|
|
||||||
class UserController extends \Phalcon\Mvc\Controller
|
class UserController extends \Phalcon\Mvc\Controller
|
||||||
{
|
{
|
||||||
|
public function onConstruct()
|
||||||
|
{
|
||||||
|
$this->view->setLayout('side-menu');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $page
|
* @param $page
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,36 +1,33 @@
|
||||||
|
|
||||||
<div class="section">
|
<h1>Users</h1>
|
||||||
|
|
||||||
<h1>Users</h1>
|
<table class="table table-striped table-hover">
|
||||||
|
|
||||||
<table class="table table-striped table-hover">
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>#</th>
|
||||||
|
<th>Username</th>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Email</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Status</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
<thead>
|
<tbody>
|
||||||
<tr>
|
{% for item in page.items %}
|
||||||
<th>#</th>
|
<tr>
|
||||||
<th>Username</th>
|
<td>{{ item.id }}</td>
|
||||||
<th>Name</th>
|
<td>{{ item.username }}</td>
|
||||||
<th>Email</th>
|
<td>{{ item.name }}</td>
|
||||||
<th>Type</th>
|
<td>{{ item.email }}</td>
|
||||||
<th>Status</th>
|
<td>{{ item.type }}</td>
|
||||||
</tr>
|
<td>{{ item.status }}</td>
|
||||||
</thead>
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
<tbody>
|
<nav class="text-center" aria-label="Page navigation">
|
||||||
{% for item in page.items %}
|
{{ partial('pagination') }}
|
||||||
<tr>
|
</nav>
|
||||||
<td>{{ item.id }}</td>
|
|
||||||
<td>{{ item.username }}</td>
|
|
||||||
<td>{{ item.name }}</td>
|
|
||||||
<td>{{ item.email }}</td>
|
|
||||||
<td>{{ item.type }}</td>
|
|
||||||
<td>{{ item.status }}</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<nav class="text-center" aria-label="Page navigation">
|
|
||||||
{{ partial('pagination') }}
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
|
|
|
||||||
Reference in a new issue