You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
1.1 KiB
19 lines
1.1 KiB
<turbo-frame id="livre_<%= livre.id %>">
|
|
<div class="flex px-3 py-3 border-b border-[#EAEAEA] hover:bg-gray-50 transition text-sm">
|
|
<div class="flex flex-1 px-3 py-2"><%= livre.titre %></div>
|
|
<div class="flex flex-1 px-3 py-2"><%= livre.auteur %></div>
|
|
<div class="flex flex-1 px-3 py-2"><%= livre.date_de_sortie %></div>
|
|
|
|
<!-- Btn Modifier -->
|
|
<div class="flex flex-1 px-3 py-2 gap-2 justify-center">
|
|
<%= link_to "Modifier", edit_livre_path(livre),
|
|
data: { turbo_frame: "livre_#{livre.id}" },
|
|
class: "shadow-[1px_1px_1px_rgba(0,0,0,0.2)] bg-[#B7E1FF] text-[#0F0F0F] px-3 py-1 rounded-md text-sm hover:bg-[#F6FAFE] transition w-[90px] text-center" %>
|
|
|
|
<!-- Btn Supp -->
|
|
<%= button_to "Supprimer", livre_path(livre), method: :delete,
|
|
data: { confirm: "Supprimer ce livre ?" },
|
|
class: "shadow-[1px_1px_1px_rgba(0,0,0,0.2)] bg-[#B7E1FF] text-[#0F0F0F] px-3 py-1 rounded-md text-sm hover:bg-[#F6FAFE] transition w-[90px] text-center" %>
|
|
</div>
|
|
</div>
|
|
</turbo-frame>
|