Donovan Daniels
b1c702e3cd
poorly tested but it worked well enough, I'm sure I'll be patching bugs over the next few weeks Also remove turbo because it sucks Also changed the way we handle hosts in dev
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>
|