-
Notifications
You must be signed in to change notification settings - Fork 289
Expand file tree
/
Copy pathindex.php
More file actions
55 lines (54 loc) · 2.53 KB
/
Copy pathindex.php
File metadata and controls
55 lines (54 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* Copyright 2010 - 2019, Cake Development Corporation (https://www.cakedc.com)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2010 - 2018, Cake Development Corporation (https://www.cakedc.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
?>
<div class="actions columns large-2 medium-3">
<h3><?= __d('cake_d_c/users', 'Actions') ?></h3>
<ul class="side-nav">
<li><?= $this->Html->link(__d('cake_d_c/users', 'New {0}', $tableAlias), ['action' => 'add']) ?></li>
</ul>
</div>
<div class="users index large-10 medium-9 columns">
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th><?= $this->Paginator->sort('username', __d('cake_d_c/users', 'Username')) ?></th>
<th><?= $this->Paginator->sort('email', __d('cake_d_c/users', 'Email')) ?></th>
<th><?= $this->Paginator->sort('first_name', __d('cake_d_c/users', 'First name')) ?></th>
<th><?= $this->Paginator->sort('last_name', __d('cake_d_c/users', 'Last name')) ?></th>
<th class="actions"><?= __d('cake_d_c/users', 'Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach (${$tableAlias} as $user) : ?>
<tr>
<td><?= h($user->username) ?></td>
<td><?= h($user->email) ?></td>
<td><?= h($user->first_name) ?></td>
<td><?= h($user->last_name) ?></td>
<td class="actions">
<?= $this->Html->link(__d('cake_d_c/users', 'View'), ['action' => 'view', $user->id]) ?>
<?= $this->Html->link(__d('cake_d_c/users', 'Change password'), ['action' => 'changePassword', $user->id]) ?>
<?= $this->Html->link(__d('cake_d_c/users', 'Edit'), ['action' => 'edit', $user->id]) ?>
<?= $this->Form->postLink(__d('cake_d_c/users', 'Delete'), ['action' => 'delete', $user->id], ['confirm' => __d('cake_d_c/users', 'Are you sure you want to delete # {0}?', $user->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="paginator">
<ul class="pagination">
<?= $this->Paginator->prev('< ' . __d('cake_d_c/users', 'previous')) ?>
<?= $this->Paginator->numbers() ?>
<?= $this->Paginator->next(__d('cake_d_c/users', 'next') . ' >') ?>
</ul>
<p><?= $this->Paginator->counter() ?></p>
</div>
</div>