<% content_for :title, "Edit Entry" %>
<%= render "shared/header", show_request_button: false, show_browse_button: true %> <%= render "shared/notifications" %>

Edit Entry

<% if @entry.verified? %>
Verified
<% else %> Unverified <% end %>

Update the translations and details for this entry.

<%= form_with model: @entry, class: "space-y-6" do |f| %> <% if @entry.errors.any? %>

Please fix the following errors:

    <% @entry.errors.full_messages.each do |message| %>
  • <%= message %>
  • <% end %>
<% end %>
<%= render 'entries/form_fields', f: f, category_prompt: false %>
<%= f.submit "Save Changes", class: "flex-1 bg-indigo-600 hover:bg-indigo-700 text-white font-semibold py-3 px-6 rounded-lg transition shadow-md hover:shadow-lg" %> <%= link_to "Cancel", entry_path(@entry), class: "flex-1 text-center bg-gray-100 hover:bg-gray-200 text-gray-800 font-semibold py-3 px-6 rounded-lg transition" %>
<% end %>
<%= link_to "← Back to entry", entry_path(@entry), class: "text-indigo-600 hover:text-indigo-800 font-semibold" %> • <%= link_to "Back to search", entries_path, class: "text-indigo-600 hover:text-indigo-800 font-semibold" %>