-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing the name of controller to prevent conflicts
adding the user's index neutralizing view files
- Loading branch information
Showing
4 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<h1><?php echo __('List of all users') ?></h1> | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="3"> | ||
<?php echo $this->Paginator->pager(); ?> | ||
</th> | ||
</tr> | ||
<tr> | ||
<th><?php echo __('User name')?></th> | ||
<th><?php echo __('Status')?></th> | ||
<th><?php echo __('Group')?></th> | ||
</tr> | ||
</thead> | ||
<tfoot> | ||
<tr> | ||
<td colspan="3"> | ||
<?php echo $this->Paginator->pagination(array('ul' => 'pagination pagination-large')); ?> | ||
</td> | ||
</tr> | ||
</tfoot> | ||
<tbody> | ||
<?php foreach ($users as $user): ?> | ||
<tr> | ||
<td><?php echo $user['User']['username'] ?></td> | ||
<td><?php echo $user['User']['is_active'] ? __('activated') : __('not activated') ?></td> | ||
<td><?php echo $user['UserGroup']['title'] ?></td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
<h1><?php echo __('Log in')?></h1> | ||
|
||
<div class="col-md-8 col-md-offset-2"> | ||
<div> | ||
|
||
<?php echo $this->Session->flash('auth'); ?> | ||
|
||
<?php | ||
echo $this->Form->create(array('class' => 'well')); | ||
echo $this->Form->create(); | ||
echo $this->Form->input('username', array('label' => __('User name'))); | ||
echo $this->Form->input('password', array('label' => __('Password'))); | ||
echo $this->Form->submit('Login'); | ||
echo $this->Form->submit(__('Log in')); | ||
echo $this->Form->end(); | ||
?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters