space-y-5">
<%= f.label :title, t("admin.posts.title_for", lang: locale.upcase), class: "block text-sm font-semibold text-gray-700" %>
<%= f.text_field :title,
name: "post[title_translations][#{locale}]",
value: post.title_for(locale),
placeholder: t("admin.posts.title_placeholder"),
class: "mt-1 block w-full px-4 py-2.5 rounded-xl border-2 border-gray-200 bg-gray-50 text-gray-900 placeholder:text-gray-400 focus:bg-white focus:border-indigo-400 focus:ring-4 focus:ring-indigo-100 transition-all duration-200 sm:text-sm" %>
<%= f.label :content, t("admin.posts.content_for", lang: locale.upcase), class: "block text-sm font-semibold text-gray-700" %>
<%= f.rich_text_area :"content_#{locale}",
name: "post[content_#{locale}]",
class: "prose prose-sm sm:prose lg:prose-lg max-w-none" %>
<% end %>
<%= admin_select_field f, :category_id,
Category.all.map { |c| [c.name, c.id] },
label: t("activerecord.attributes.post.category"),
prompt: t("admin.posts.select_category") %>
<%= admin_select_field f, :status,
Post::STATUSES.map { |s| [s.humanize, s] },
label: t("activerecord.attributes.post.status") %>
<%= admin_datetime_field f, :scheduled_at,
label: t("activerecord.attributes.post.scheduled_at") %>
<% Tag.all.each do |tag| %>
<% end %>