2024-05-06 07:47:53 +00:00
|
|
|
<% content_for(:page_title) do %>
|
|
|
|
YiffyAPI - Edit Image
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= render "yiff_rest/api_v2/manage/nav" %>
|
|
|
|
|
|
|
|
<div class="w-100">
|
|
|
|
<div style="width: 40%; margin-left: 30%;">
|
2024-10-21 22:58:53 +00:00
|
|
|
<%= simple_form_for(@image, url: yiff_rest_api_v2_manage_image_path(@image), method: :patch) do |f| %>
|
2024-05-06 07:47:53 +00:00
|
|
|
<%= f.input(:sources_string, as: :text, label: "Sources") %>
|
|
|
|
<%= f.input(:artists_string, as: :text, label: "Artists") %>
|
|
|
|
<%= f.input(:category, as: :select, collection: @categories.map { |cat| [cat.name, cat.db] }) %>
|
|
|
|
<%= f.button(:submit, "Update Image", name: nil) %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|