17 lines
652 B
Plaintext
17 lines
652 B
Plaintext
|
<% 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%;">
|
||
|
<%= simple_form_for(@image, url: yiff_rest_api_v2_manage_image_path(manage_id: params[:manage_id], id: params[:id]), method: :patch) do |f| %>
|
||
|
<%= 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>
|