SHOW:
|
|
- or go back to the newest paste.
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 | ||
30 | <input type="hidden" name="user_id" value="<?= @$row->user_id?>" /> | |
31 | ||
32 | <div class="form-group <?= form_error('fullname') ? 'has-error' : null ?>"> | |
33 | <label>Name *</label> | |
34 | <input type="text" name="fullname" value="<?= $this->input->post('fullname') ?? $row->name ?>" class="form-control"> | |
35 | <?= form_error('fullname') ?> | |
36 | </div> | |
37 | <div class="form-group <?= form_error('username') ? 'has-error' : null ?>"> | |
38 | <label>Username *</label> | |
39 | <input type=" text" name="username" value="<?= $this->input->post('username') ?? $row->username ?>" class="form-control"> | |
40 | <?= form_error('username') ?> | |
41 | </div> | |
42 | <div class="form-group <?= form_error('password') ? 'has-error' : null ?>"> | |
43 | <label>Password</label> | |
44 | <input type="password" name="password" value="<?= $this->input->post('password') ?>" class=" form-control"> | |
45 | <?= form_error('password') ?> | |
46 | </div> | |
47 | <div class="form-group <?= form_error('passconf') ? 'has-error' : null ?>"> | |
48 | <label>Password Confirmation</label> | |
49 | <input type="password" name="passconf" value="<?= $this->input->post('passconf') ?>" class=" form-control"> | |
50 | <?= form_error('passconf') ?> | |
51 | </div> | |
52 | <div class="form-group <?= form_error('level') ? 'has-error' : null ?>"> | |
53 | <label>Address *</label> | |
54 | <textarea name="address" class="form-control"><?= $this->input->post('address') ?? $row->address ?></textarea> | |
55 | <?= form_error('address') ?> | |
56 | </div> | |
57 | <div class="form-group <?= form_error('level') ? 'has-error' : null ?>"> | |
58 | <label>Level *</label> | |
59 | <select name="level" class="form-control"> | |
60 | <?php $level = $this->input->post('level') ? $this->input->post('level') : $row->level ?> | |
61 | <option value="1">Admin</option> | |
62 | <option value="2" <?= $level == 2 ? 'selected' : null ?>>Kasir</option> | |
63 | </select> | |
64 | <?= form_error('level') ?> | |
65 | </div> | |
66 | <div class="form-group"> | |
67 | <button type="submit" class="btn btn-success btn-flat"> | |
68 | <i class="fa fa-paper-plane"></i> Save | |
69 | </button> | |
70 | <button type="reset" class="btn btn btn-flat">Reset</button> | |
71 | </div> | |
72 | </form> | |
73 | </div> | |
74 | </div> | |
75 | </div> | |
76 | </div> | |
77 | ||
78 | </section> |