Show image on convert page

This commit is contained in:
Donovan Daniels 2024-10-24 02:24:57 -05:00
parent cce4fc996f
commit bd7f12ccd0
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA

View File

@ -4,11 +4,16 @@
<%= render "yiff_rest/api_v2/manage/nav" %>
<div class="w-100">
<div style="width: 40%; margin-left: 30%;">
<div class="w-100 d-flex" style="justify-content: space-between;">
<div style="width: 45%; margin-left: 2.5%; margin-top: 2%;">
<%= simple_form_for(:api_image, url: convert_yiff_rest_api_v2_manage_image_path(@image), method: :post) do |f| %>
<%= f.input(:external_url) %>
<%= f.button(:submit, "Convert Image", name: nil) %>
<% end %>
</div>
<div style="width: 45%; margin-right: 2.5%; margin-top: 2%;">
<%= link_to(@image.url, target: "_blank", rel: "noopener") do %>
<%= image_tag(@image.url, style: "max-width: 100%; max-height: 80vh; object-fit: contain;") %>
<% end %>
</div>
</div>