Skip to content

Commit fe7e013

Browse files
committed
fix design button edit and delete
1 parent 6c70374 commit fe7e013

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

app/views/users/index.html.erb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,17 @@
2020
<tr>
2121
<td> <%= user.email %></td>
2222
<td> <%= user.is_admin %></td>
23-
<td class="text-end">
24-
25-
<%= link_to edit_user_path(user), class: "btn btn-secondary btn-sm" do %>
26-
<i class="bi bi-pencil"></i> Edit
27-
<% end %>
28-
<%= button_to user, data: { confirm: "Are you sure?" }, method: :delete, class: "btn btn-danger btn-sm" do %>
29-
<i class="bi bi-trash"></i> Delete
30-
<% end %>
23+
<td class="text-end">
24+
<%= link_to edit_user_path(user), class: "btn btn-secondary btn-sm pr-2" do %>
25+
<i class="bi bi-pencil"></i> Edit
26+
<% end %>
27+
<%= button_to user, data: { confirm: "Are you sure?" }, method: :delete,form_class:"d-inline", class: "btn btn-danger btn-sm " do %>
28+
<i class="bi bi-trash"></i> Delete
29+
<% end %>
30+
</td>
3131
</tr>
3232
<% end %>
33+
3334
<tbody>
3435
</table>
3536
</div>

0 commit comments

Comments
 (0)