Web Interfaces of PROSUME

profile.ctp 4.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. $this->layout = false;
  3. ?>
  4. <!DOCTYPE html>
  5. <html>
  6. <?= $this->element('Eprosume/header') ?>
  7. <body class="hold-transition skin-green sidebar-mini">
  8. <div class="wrapper">
  9. <?= $this->element('Eprosume/mainHeader') ?>
  10. <!-- Left side column. contains the logo and sidebar -->
  11. <?= $this->element('Eprosume/leftSideColumn') ?>
  12. <!-- Content Wrapper. Contains page content -->
  13. <div class="content-wrapper">
  14. <!-- Content Header (Page header) -->
  15. <section class="content-header">
  16. <h1>
  17. Profile Settings
  18. <small></small>
  19. </h1>
  20. <ol class="breadcrumb">
  21. <li><a href="/"><i class="fa fa-dashboard"></i> <?= $app_name ?></a></li>
  22. <li class="active">Profile Settings</li>
  23. </ol>
  24. </section>
  25. <!-- Main content -->
  26. <section class="content">
  27. <div class="row">
  28. <div class="col-xs-12">
  29. <div class="box">
  30. <!-- /.box-header -->
  31. <div class="box-body">
  32. <div class="row">
  33. <div class="col-md-12 col-sm-12 col-xs-12">
  34. <div class="users form">
  35. <?= $this->Flash->render() ?>
  36. <fieldset>
  37. <legend><?= __('Your profile') ?></legend>
  38. <p><strong><?= __('Username') ?></strong>: <?= __($user["username"]) ?></p>
  39. <p><strong><?= __('Email address') ?></strong>: <?= __($user["emailaddress"]) ?></p>
  40. <p><strong><?= __('Role') ?></strong>: <?= __($user["role"]) ?></p>
  41. <p><strong><?= __('Creation time') ?></strong>: <?= __($user["created"]->format("Y-m-d H:i")) ?></p>
  42. </fieldset>
  43. <?php if($outcome === null): ?>
  44. <?= $this->Form->create() ?>
  45. <fieldset>
  46. <legend><?= __('Change your password') ?></legend>
  47. <?= $this->Form->hidden('username', [
  48. 'value' => $user['username']
  49. ]) ?>
  50. <?= $this->Form->control('password', [
  51. 'label' => _('Enter your current password')
  52. ]) ?>
  53. <?= $this->Form->control('new_password', [
  54. 'label' => _('Insert new password'),
  55. 'type' => 'password',
  56. ]) ?>
  57. <?= $this->Form->control('retype_password', [
  58. 'label' => _('Retype new password'),
  59. 'type' => 'password',
  60. ]) ?>
  61. <p><?= __('The password must be at least of 8 characters with at least one capital letter and a special character') ?></p>
  62. </fieldset>
  63. <?= $this->Form->button(__('Change'), ['class'=>'btn btn-success']); ?>
  64. <?= $this->Form->end() ?>
  65. <?php endif; ?>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <!-- /.box-body -->
  71. </div>
  72. <!-- /.box -->
  73. </div>
  74. <!-- /.col -->
  75. </div>
  76. <!-- /.row -->
  77. </section>
  78. <!-- /.content -->
  79. </div>
  80. <!-- /.content-wrapper -->
  81. <?= $this->element('Eprosume/footer') ?>
  82. </div>
  83. <!-- ./wrapper -->
  84. <?= $this->element('Eprosume/scripts') ?>
  85. </body>
  86. </html>