dawarich/app/views/imports/show.html.erb

18 lines
917 B
Text
Raw Normal View History

2024-06-12 15:10:53 -04:00
<% content_for :title, 'Import' %>
2024-03-15 18:27:31 -04:00
<div class="mx-auto md:w-2/3 w-full flex">
<div class="mx-auto">
<% if notice.present? %>
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%= notice %></p>
<% end %>
<%= render @import %>
2024-03-24 14:53:19 -04:00
<%= link_to "Edit this import", edit_import_path(@import), class: "mt-2 rounded-lg py-3 px-5 bg-secondary-content inline-block font-medium" %>
2024-03-15 18:27:31 -04:00
<div class="inline-block ml-2">
<%= link_to "Destroy this import", import_path(@import), data: { turbo_confirm: "Are you sure? This action will delete all points imported with this file", turbo_method: :delete }, method: :delete, class: "mt-2 rounded-lg py-3 px-5 bg-secondary-content font-medium" %>
2024-03-15 18:27:31 -04:00
</div>
2024-03-24 14:53:19 -04:00
<%= link_to "Back to imports", imports_path, class: "ml-2 rounded-lg py-3 px-5 bg-secondary-content inline-block font-medium" %>
2024-03-15 18:27:31 -04:00
</div>
</div>