forked from CakeDC/users
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.php
More file actions
90 lines (89 loc) · 4.32 KB
/
Copy pathview.php
File metadata and controls
90 lines (89 loc) · 4.32 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?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)
*/
$Users = ${$tableAlias};
?>
<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', 'Edit User'), ['action' => 'edit', $Users->id]) ?> </li>
<li><?= $this->Form->postLink(
__d('cake_d_c/users', 'Delete User'),
['action' => 'delete', $Users->id],
['confirm' => __d('cake_d_c/users', 'Are you sure you want to delete # {0}?', $Users->id)]
) ?> </li>
<li><?= $this->Html->link(__d('cake_d_c/users', 'List Users'), ['action' => 'index']) ?> </li>
<li><?= $this->Html->link(__d('cake_d_c/users', 'New User'), ['action' => 'add']) ?> </li>
</ul>
</div>
<div class="users view large-10 medium-9 columns">
<h2><?= h($Users->id) ?></h2>
<div class="row">
<div class="large-5 columns strings">
<h6 class="subheader"><?= __d('cake_d_c/users', 'Id') ?></h6>
<p><?= h($Users->id) ?></p>
<h6 class="subheader"><?= __d('cake_d_c/users', 'Username') ?></h6>
<p><?= h($Users->username) ?></p>
<h6 class="subheader"><?= __d('cake_d_c/users', 'Email') ?></h6>
<p><?= h($Users->email) ?></p>
<h6 class="subheader"><?= __d('cake_d_c/users', 'First Name') ?></h6>
<p><?= h($Users->first_name) ?></p>
<h6 class="subheader"><?= __d('cake_d_c/users', 'Last Name') ?></h6>
<p><?= h($Users->last_name) ?></p>
<h6 class="subheader"><?= __d('cake_d_c/users', 'Role') ?></h6>
<p><?= h($Users->role) ?></p>
<h6 class="subheader"><?= __d('cake_d_c/users', 'Token') ?></h6>
<p><?= h($Users->token) ?></p>
<h6 class="subheader"><?= __d('cake_d_c/users', 'Api Token') ?></h6>
<p><?= h($Users->api_token) ?></p>
</div>
<div class="large-2 columns numbers end">
<h6 class="subheader"><?= __d('cake_d_c/users', 'Active') ?></h6>
<p><?= $this->Number->format($Users->active) ?></p>
</div>
<div class="large-2 columns dates end">
<h6 class="subheader"><?= __d('cake_d_c/users', 'Token Expires') ?></h6>
<p><?= h($Users->token_expires) ?></p>
<h6 class="subheader"><?= __d('cake_d_c/users', 'Activation Date') ?></h6>
<p><?= h($Users->activation_date) ?></p>
<h6 class="subheader"><?= __d('cake_d_c/users', 'Tos Date') ?></h6>
<p><?= h($Users->tos_date) ?></p>
<h6 class="subheader"><?= __d('cake_d_c/users', 'Created') ?></h6>
<p><?= h($Users->created) ?></p>
<h6 class="subheader"><?= __d('cake_d_c/users', 'Modified') ?></h6>
<p><?= h($Users->modified) ?></p>
</div>
</div>
</div>
<div class="related row">
<div class="column large-12">
<h4 class="subheader"><?= __d('cake_d_c/users', 'Social Accounts') ?></h4>
<?php if (!empty($Users->social_accounts)) : ?>
<table cellpadding="0" cellspacing="0">
<tr>
<th><?= __d('cake_d_c/users', 'Provider') ?></th>
<th><?= __d('cake_d_c/users', 'Avatar') ?></th>
<th><?= __d('cake_d_c/users', 'Active') ?></th>
<th><?= __d('cake_d_c/users', 'Created') ?></th>
<th><?= __d('cake_d_c/users', 'Modified') ?></th>
</tr>
<?php foreach ($Users->social_accounts as $socialAccount) : ?>
<tr>
<td><?= h($socialAccount->provider) ?></td>
<td><?= h($socialAccount->avatar) ?></td>
<td><?= h($socialAccount->active) ?></td>
<td><?= h($socialAccount->created) ?></td>
<td><?= h($socialAccount->modified) ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
</div>
</div>