denise-oneill-inbox-ru's picture
Deploy Rails 8 Blog v1.0.0 from main 9acb6e4
5d27770 verified
Raw History Blame Contribute Delete
1.06 kB
<div class="mb-6 flex items-center justify-between">
<div>
<h1 class="text-2xl font-bold text-gray-900"><%= t("admin.posts.edit") %></h1>
<p class="mt-1 text-sm text-gray-600"><%= t("admin.posts.edit_subtitle") %></p>
</div>
<%= link_to admin_posts_path, class: "inline-flex items-center text-sm text-gray-500 hover:text-gray-700" do %>
<svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"/>
</svg>
<%= t("admin.back") %>
<% end %>
</div>
<div class="bg-white shadow rounded-lg p-6">
<%= form_with model: [:admin, @post], local: true, class: "space-y-6" do |f| %>
<%= render "form", f: f, post: @post %>
<div class="flex items-center justify-end gap-3 pt-6 border-t border-gray-200">
<%= admin_cancel_button t("admin.back"), admin_posts_path %>
<%= admin_submit_button f, t("admin.posts.update") %>
</div>
<% end %>
</div>
<%= render "slideshow", post: @post %>