<%= form_with model: @entry, class: "space-y-4" do |form| %>
<%= form.label :category, "Category", class: "block text-xs font-bold text-slate-500 uppercase tracking-widest mb-2" %>
<%= form.select :category,
Entry.categories.keys.map { |key| [key.tr("_", " ").capitalize, key] },
{},
class: "block w-full border-slate-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" %>
<%= form.submit "Save Category", class: "bg-indigo-600 text-white px-4 py-2 rounded-lg text-sm font-semibold hover:bg-indigo-700 transition" %>
<% end %>
<% supported_languages.each do |language| %>
<% translation = entry_translation_for(@entry, language.code) %>
<% next if translation.blank? %>
<%= "#{language.name} (#{language.code.upcase})" %>
<%= translation %>
<% end %>
<% if @entry.notes.present? %>
Context & Notes
<%= @entry.notes %>
<% end %>