added friends
This commit is contained in:
17
app/views/friends/show.html.erb
Normal file
17
app/views/friends/show.html.erb
Normal file
@ -0,0 +1,17 @@
|
||||
<% content_for :title, "Freund anzeigen" %>
|
||||
|
||||
<div class="md:w-2/3 w-full">
|
||||
<% if notice.present? %>
|
||||
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-md inline-block" id="notice"><%= notice %></p>
|
||||
<% end %>
|
||||
|
||||
<h1 class="font-bold text-4xl">Freund anzeigen</h1>
|
||||
|
||||
<%= render @friend %>
|
||||
|
||||
<%= link_to "Bearbeiten", edit_friend_path(@friend), class: "btn-show" %>
|
||||
<%= link_to "Liste anzeigen", friends_path, class: "btn-show" %>
|
||||
<%= button_to "Löschen", @friend, method: :delete, form_class: "sm:inline-block mt-2 sm:mt-0 sm:ml-2",
|
||||
class: "btn-destroy",
|
||||
data: { turbo_confirm: "Are you sure?" } %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user