Advertisement
Guest User

view/user/user_form_edit.php

a guest
Oct 24th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. <section class="content-header">
  2. <h1> Users
  3. <small>Pengguna</small>
  4. </h1>
  5. <ol class="breadcrumb">
  6. <li><a href="#"><i class="fa fa-dashboard"></i></a></li>
  7. <li class="active">Users</li>
  8. </ol>
  9. </section>
  10.  
  11. <!-- Main content -->
  12. <section class="content">
  13.  
  14. <div class="box">
  15. <div class="box-header">
  16. <h3 class="box-title"> Users</h3>
  17. <div class="pull-right">
  18. <a href="<?= site_url('user') ?>" class="btn btn-warnig btn-flat">
  19. <i class="fa fa-undo"></i> Back
  20. </a>
  21. </div>
  22. </div>
  23. <div class="box-body">
  24. <div class="row">
  25. <div class="col-md-4 col-md-offset-4">
  26. <?php // echo validation_errors()
  27. ?>
  28. <form action="" method="post">
  29. <div class="form-group <?= form_error('fullname') ? 'has-error' : null ?>">
  30. <label>Name *</label>
  31. <input type="text" name="fullname" value="<?= $this->input->post('fullname') ?? $row->name ?>" class="form-control">
  32. <?= form_error('fullname') ?>
  33. </div>
  34. <div class="form-group <?= form_error('username') ? 'has-error' : null ?>">
  35. <label>Username *</label>
  36. <input type=" text" name="username" value="<?= $this->input->post('username') ?? $row->username ?>" class="form-control">
  37. <?= form_error('username') ?>
  38. </div>
  39. <div class="form-group <?= form_error('password') ? 'has-error' : null ?>">
  40. <label>Password</label>
  41. <input type="password" name="password" value="<?= $this->input->post('password') ?>" class=" form-control">
  42. <?= form_error('password') ?>
  43. </div>
  44. <div class="form-group <?= form_error('passconf') ? 'has-error' : null ?>">
  45. <label>Password Confirmation</label>
  46. <input type="password" name="passconf" value="<?= $this->input->post('passconf') ?>" class=" form-control">
  47. <?= form_error('passconf') ?>
  48. </div>
  49. <div class="form-group <?= form_error('level') ? 'has-error' : null ?>">
  50. <label>Address *</label>
  51. <textarea name="address" class="form-control"><?= $this->input->post('address') ?? $row->address ?></textarea>
  52. <?= form_error('address') ?>
  53. </div>
  54. <div class="form-group <?= form_error('level') ? 'has-error' : null ?>">
  55. <label>Level *</label>
  56. <select name="level" class="form-control">
  57. <?php $level = $this->input->post('level') ? $this->input->post('level') : $row->level ?>
  58. <option value="1">Admin</option>
  59. <option value="2" <?= $level == 2 ? 'selected' : null ?>>Kasir</option>
  60. </select>
  61. <?= form_error('level') ?>
  62. </div>
  63. <div class="form-group">
  64. <button type="submit" class="btn btn-success btn-flat">
  65. <i class="fa fa-paper-plane"></i> Save
  66. </button>
  67. <button type="reset" class="btn btn btn-flat">Reset</button>
  68. </div>
  69. </form>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74.  
  75. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement