added friends

This commit is contained in:
2025-11-19 10:55:58 +01:00
parent a13e7d504f
commit dffeb043f6
13 changed files with 228 additions and 2 deletions

View 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>