33 lines
807 B
Plaintext
33 lines
807 B
Plaintext
<!-- views/index.ejs -->
|
|
<h1>User List</h1>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>UID</th>
|
|
<th>Auth</th>
|
|
<th>Name</th>
|
|
<th>Email</th>
|
|
<th>Address</th>
|
|
<th>Phone</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% users.forEach(user => { %>
|
|
<tr>
|
|
<td><%= user.uid %></td>
|
|
<td><%= user.auth_uid %></td>
|
|
<td><%= user.name %></td>
|
|
<td><%= user.email %></td>
|
|
<td><%= user.address %></td>
|
|
<td><%= user.phone %></td>
|
|
<td>
|
|
<a href="/edit/<%= user.id %>" class="btn btn-primary btn-sm">Edit</a>
|
|
<a href="/delete/<%= user.id %>" class="btn btn-danger btn-sm">Delete</a>
|
|
</td>
|
|
</tr>
|
|
<% }); %>
|
|
</tbody>
|
|
</table>
|
|
<a href="/add" class="btn btn-success">Add User</a>
|