Web Interfaces of PROSUME

view.ctp 4.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * @var \App\View\AppView $this
  4. * @var \App\Model\Entity\User $user
  5. */
  6. $this->layout = false;
  7. ?>
  8. <!DOCTYPE html>
  9. <html>
  10. <?= $this->element('Eprosume/header') ?>
  11. <body class="hold-transition skin-green sidebar-mini">
  12. <div class="wrapper">
  13. <?= $this->element('Eprosume/mainHeader') ?>
  14. <!-- Left side column. contains the logo and sidebar -->
  15. <?= $this->element('Eprosume/leftSideColumn') ?>
  16. <!-- Content Wrapper. Contains page content -->
  17. <div class="content-wrapper">
  18. <!-- Content Header (Page header) -->
  19. <section class="content-header">
  20. <h1>
  21. Users
  22. <small></small>
  23. </h1>
  24. <ol class="breadcrumb">
  25. <li><a href="/"><i class="fa fa-dashboard"></i> <?= $app_name ?></a></li>
  26. <li><a href="/users">Users</a></li>
  27. <li class="active"><?= h($user->username) ?></li>
  28. </ol>
  29. </section>
  30. <!-- Main content -->
  31. <section class="content">
  32. <div class="row">
  33. <div class="col-xs-12">
  34. <div class="box">
  35. <!-- /.box-header -->
  36. <div class="box-body">
  37. <nav class="user-nav large-3 medium-4 columns" id="actions-sidebar">
  38. <ul class="side-nav">
  39. <li class="heading"><?= __('Actions') ?></li>
  40. <li><?= $this->Html->link(__('Edit User'), ['action' => 'edit', $user->id]) ?> </li>
  41. <?php if($user->role != "admin"): ?>
  42. <li><?= $this->Form->postLink(__('Delete User'), ['action' => 'delete', $user->id], ['confirm' => __('Are you sure you want to delete # {0}?', $user->id)]) ?> </li>
  43. <?php endif ?>
  44. <li><?= $this->Html->link(__('List Users'), ['action' => 'index']) ?> </li>
  45. <li><?= $this->Html->link(__('New User'), ['action' => 'add']) ?> </li>
  46. </ul>
  47. </nav>
  48. <div class="users view large-9 medium-8 columns content">
  49. <table class="table table-striped vertical-table">
  50. <tr>
  51. <th scope="row"><?= __('Username') ?></th>
  52. <td><?= h($user->username) ?></td>
  53. </tr>
  54. <tr>
  55. <th scope="row"><?= __('Email') ?></th>
  56. <td><?= h($user->emailaddress) ?></td>
  57. </tr>
  58. <tr>
  59. <th scope="row"><?= __('Role') ?></th>
  60. <td><?= h($user->role) ?></td>
  61. </tr>
  62. <tr>
  63. <th scope="row"><?= __('Id') ?></th>
  64. <td><?= $this->Number->format($user->id) ?></td>
  65. </tr>
  66. <tr>
  67. <th scope="row"><?= __('Created') ?></th>
  68. <td><?= h($user->created) ?></td>
  69. </tr>
  70. <tr>
  71. <th scope="row"><?= __('Modified') ?></th>
  72. <td><?= h($user->modified) ?></td>
  73. </tr>
  74. </table>
  75. </div>
  76. </div>
  77. <!-- /.box-body -->
  78. </div>
  79. <!-- /.box -->
  80. </div>
  81. <!-- /.col -->
  82. </div>
  83. <!-- /.row -->
  84. </section>
  85. <!-- /.content -->
  86. </div>
  87. <!-- /.content-wrapper -->
  88. <?= $this->element('Eprosume/footer') ?>
  89. </div>
  90. <!-- ./wrapper -->
  91. <?= $this->element('Eprosume/scripts') ?>
  92. </body>
  93. </html>