12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?php
- /**
- * @var \App\View\AppView $this
- * @var \App\Model\Entity\User $user
- */
- $this->layout = false;
- ?>
- <!DOCTYPE html>
- <html>
- <?= $this->element('Eprosume/header') ?>
- <body class="hold-transition skin-green sidebar-mini">
- <div class="wrapper">
-
- <?= $this->element('Eprosume/mainHeader') ?>
-
- <!-- Left side column. contains the logo and sidebar -->
- <?= $this->element('Eprosume/leftSideColumn') ?>
-
- <!-- Content Wrapper. Contains page content -->
- <div class="content-wrapper">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <h1>
- Users
- <small></small>
- </h1>
- <ol class="breadcrumb">
- <li><a href="/"><i class="fa fa-dashboard"></i> <?= $app_name ?></a></li>
- <li><a href="/users">Users</a></li>
- <li class="active"><?= h($user->username) ?></li>
- </ol>
- </section>
-
- <!-- Main content -->
- <section class="content">
- <div class="row">
- <div class="col-xs-12">
- <div class="box">
- <!-- /.box-header -->
- <div class="box-body">
- <nav class="user-nav large-3 medium-4 columns" id="actions-sidebar">
- <ul class="side-nav">
- <li class="heading"><?= __('Actions') ?></li>
- <li><?= $this->Html->link(__('Edit User'), ['action' => 'edit', $user->id]) ?> </li>
- <?php if($user->role != "admin"): ?>
- <li><?= $this->Form->postLink(__('Delete User'), ['action' => 'delete', $user->id], ['confirm' => __('Are you sure you want to delete # {0}?', $user->id)]) ?> </li>
- <?php endif ?>
- <li><?= $this->Html->link(__('List Users'), ['action' => 'index']) ?> </li>
- <li><?= $this->Html->link(__('New User'), ['action' => 'add']) ?> </li>
- </ul>
- </nav>
- <div class="users view large-9 medium-8 columns content">
- <table class="table table-striped vertical-table">
- <tr>
- <th scope="row"><?= __('Username') ?></th>
- <td><?= h($user->username) ?></td>
- </tr>
- <tr>
- <th scope="row"><?= __('Email') ?></th>
- <td><?= h($user->emailaddress) ?></td>
- </tr>
- <tr>
- <th scope="row"><?= __('Role') ?></th>
- <td><?= h($user->role) ?></td>
- </tr>
- <tr>
- <th scope="row"><?= __('Id') ?></th>
- <td><?= $this->Number->format($user->id) ?></td>
- </tr>
- <tr>
- <th scope="row"><?= __('Created') ?></th>
- <td><?= h($user->created) ?></td>
- </tr>
- <tr>
- <th scope="row"><?= __('Modified') ?></th>
- <td><?= h($user->modified) ?></td>
- </tr>
- </table>
- </div>
- </div>
- <!-- /.box-body -->
- </div>
- <!-- /.box -->
- </div>
- <!-- /.col -->
- </div>
- <!-- /.row -->
- </section>
- <!-- /.content -->
- </div>
- <!-- /.content-wrapper -->
- <?= $this->element('Eprosume/footer') ?>
- </div>
- <!-- ./wrapper -->
- <?= $this->element('Eprosume/scripts') ?>
- </body>
- </html>
|