-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html.erb
51 lines (51 loc) · 2.29 KB
/
index.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<section class="section">
<div class="row" id="table-striped">
<div class="col-12 cold-md-12">
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h2>Users</h2>
<%= link_to new_user_path, class: "btn btn-primary" do %>
<i class="bi bi-plus-circle-fill"></i> Add New User
<% end %>
</div>
<div class="card-content">
<div class="card-body">
<p class="card-text">
Lorem ipsum dolor sit amet, <code>consectetur adipiscing</code> elit. Sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in <code>reprehenderit</code> in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint <code>occaecat cupidatat</code> non proident, sunt in culpa qui officia deserunt mollit anim id est
laborum.
</p>
<!-- table striped -->
<div class="table-responsive">
<table class="table table-lg table-striped mb-0">
<thead>
<tr>
<th>Users</th>
<th>Provider</th>
<th class="text-end">User Actions</th>
</tr>
</thead>
<tbody>
<% @users.each do |user| %>
<tr id="<%= dom_id(user) %>" class="user-listing">
<td class="text-bold-500"><%= user.email_address %></td>
<td><%= user.provider.name if user.provider.present? %></td>
<td class="text-end">
<%= show_page_tool_link(user, "Show User Details") %>
<%= link_to edit_user_path(user), class: "btn btn-secondary btn-sm" do %>
<i class="bi bi-pencil"></i>
<% end %>
<%= delete_tool_link(user, "Delete User") %>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>