The theme comes with an out of the box user management option. To access this option ,click the "Examples(API)/Users " link in the left sidebar or add /users-list to the URL. The first thing you will see is a list of existing users. You can add new ones by clicking the "Add user " button (above the table on the right). On the Add user page, you will find a form which allows you to fill out the user`s name, email, role and password. To edit an existing user, click the button.
You can find the compoments for user functionality in src\views\examples-api\users
folder.
The store used for user functionality is found in src\store\users.module.js
User List Examples Copy
1 < table id = " user-list" ref = " table" class = " table table-flush" >
2 < thead class = " thead-light" >
3 < tr>
4 < th data-sortable = " false" > Avatar</ th>
5 < th title = " name" > Name</ th>
6 < th title = " email" > Email</ th>
7 < th title = " roles.name" > Role</ th>
8 < th title = " created_at" > Created at</ th>
9 < th data-sortable = " false" > Action</ th>
10 </ tr>
11 </ thead>
12 < tbody class = " text-sm" >
13 </ tbody>
14 </ table> Add/Edit Examples Copy
1 < div class = " row mt-4 overflow-hidden" >
2 < div>
3 < material-avatar :img = " user.profile_image" shadow = " regular" class = " image-fluid w-20 mt-7" :fixedSize = " true" >
4 </ material-avatar>
5 </ div>
6 < div class = " mt-1 mb-2" >
7 < material-button size = " sm" type = " button" >
8 < label for = " imageInput" class = " mb-0 text-white small" > Select Image</ label>
9 < input id= "imageInput" @change. prevent= "onFileChange" type= "file" style= "display: none;" accept= "image/*" >
10 </ material-button>
11 </ div>
12 </ div>
13
14 < div class = " row mt-5" >
15
16 < material-input id = " name" label = " Name" variant = " static" v-model: value= " user.name" name = " name" />
17 < validation-error :errors = " apiValidationErrors.name" />
18
19 </ div>
20
21 < div class = " row mt-5" >
22 < material-input id = " email" type = " email" label = " Email Address" variant = " static" v-model: value= " user.email"
23 name = " email" />
24 < validation-error :errors = " apiValidationErrors.email" />
25 </ div>
26
27 < ! -- selectedRole-- >
28 < div class = " mt-5" >
29 < label class = " ms-0" > Role </ label>
30 < select id = " choices-state" class = " multisteps-form__select form-control" name = " choices-state" >
31 </ select>
32 </ div>
33
34 < div class = " row mt-5" >
35 < material-input id = " password" v-model: value= " user.password" variant = " static" type = " password" label = " Password"
36 name = " password" />
37 < validation-error :errors = " apiValidationErrors.password" />
38 </ div>
39 < div class = " row mt-5" >
40 < material-input id = " confirmPassword" variant = " static" v-model: value= " user.password_confirmation" type = " password"
41 label = " Confirm Password" name = " confirmPassword" />
42 </ div>
43