Entry Information
<%= content_tag(:span, @entry.status.titleize, class: "px-3 py-1 text-sm font-semibold rounded-full #{@entry.requested? ? 'bg-yellow-100 text-yellow-800' : 'bg-blue-100 text-blue-800'}") %>
Category
<%= @entry.category.humanize %>
Translations
🇫🇮 Finnish
<%= @entry.fi.presence || "—" %>
🇬🇧 English
<%= @entry.en.presence || "—" %>
🇸🇪 Swedish
<%= @entry.sv.presence || "—" %>
🇳🇴 Norwegian
<%= @entry.no.presence || "—" %>
🇷🇺 Russian
<%= @entry.ru.presence || "—" %>
🇩🇪 German
<%= @entry.de.presence || "—" %>
<% if @entry.notes.present? %>
Notes
<%= @entry.notes %>
<% end %>
Requester Information
Name:
<%= @entry.requested_by&.name %>
Email:
<%= @entry.requested_by&.email %>
Submitted:
<%= @entry.created_at.strftime("%B %d, %Y at %I:%M %p") %>
<%= link_to "← Back to Requests", admin_requests_path, class: "px-4 py-2 bg-gray-200 hover:bg-gray-300 text-gray-800 font-semibold rounded-lg transition" %>
<% if @entry.requested? %>
<%= link_to "Edit", edit_admin_request_path(@entry), class: "px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-lg transition" %>
<%= button_to "Approve & Send Invitation", approve_admin_request_path(@entry), method: :post, class: "px-4 py-2 bg-green-600 hover:bg-green-700 text-white font-semibold rounded-lg transition", form: { data: { turbo_confirm: "Send invitation to #{@entry.requested_by&.email}?" } } %>
<% end %>
<%= button_to "Reject", reject_admin_request_path(@entry), method: :delete, class: "px-4 py-2 bg-red-600 hover:bg-red-700 text-white font-semibold rounded-lg transition ml-auto", form: { data: { turbo_confirm: "Are you sure you want to delete this request?" } } %>