From ac2d50f125ef481d1a042c0cc446aec29b6daf16 Mon Sep 17 00:00:00 2001 From: yystopf Date: Wed, 6 Mar 2024 16:53:35 +0800 Subject: [PATCH] fixed --- .../topic/organizations/_form_modal.html.erb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/admins/topic/organizations/_form_modal.html.erb b/app/views/admins/topic/organizations/_form_modal.html.erb index 3a32a34d7..1de43d727 100644 --- a/app/views/admins/topic/organizations/_form_modal.html.erb +++ b/app/views/admins/topic/organizations/_form_modal.html.erb @@ -29,16 +29,16 @@
<% logo_img = @organization.image %> - <% if logo_img.present? %> -
- - <%= file_field_tag(:image, accept: 'image/png,image/jpg,image/jpeg',style: "margin-left: 6px;", value: params[:image]) %> + <% if log_img.present? %> +
+ + <%= file_field_tag(:image, accept: 'image/png,image/jpg,image/jpeg',style: "opacity: 0", value: params[:image]) %>
<% else %> -
- - <%= file_field_tag(:image, accept: 'image/png,image/jpg,image/jpeg',style: "margin-left: 6px;", value: params[:image],required: true) %> +
+ + <%= file_field_tag(:image, accept: 'image/png,image/jpg,image/jpeg',required: true,style: "opacity: 0", value: params[:image]) %>
<% end %>