Download app/views/admin/posts/edit.html.erb from denise-oneill-inbox-ru/Rails-8-API-Image-Processing: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/resolve/main/app/views/admin/posts/edit.html.erb
- Command line
-
hf download hf://spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/app/views/admin/posts/edit.html.erb
-
curl -L -o edit.html.erb https://huggingface.co/spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/resolve/main/app/views/admin/posts/edit.html.erb
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 %> | |