20 lines
759 B
Plaintext
20 lines
759 B
Plaintext
|
<% content_for(:page_title) do %>
|
||
|
YiffyAPI - Upload 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_images_path, method: :post) do |f| %>
|
||
|
<%= f.input(:file, as: :file) %>
|
||
|
<%= f.input(:original_url, label: "File URL") %>
|
||
|
<%= f.input(:sources_string, as: :text, label: "Sources") %>
|
||
|
<%= f.input(:artists_string, as: :text, label: "Artists") %>
|
||
|
<%= f.input(:category, as: :select, input_html: { value: params.dig(:api_image, :category) }, collection: @categories.map { |cat| [cat.name, cat.db] }) %>
|
||
|
<%= f.button(:submit, "Upload Image", name: nil) %>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|