You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/app/views/personalization_settings/_logo_upload_form.html.erb

28 lines
975 B

<div class="my-6">
<div class="flex flex-col items-center gap-4 mb-6">
<div class="flex items-center justify-center w-32 h-20 bg-base-200 rounded-lg border border-base-300">
<% if current_account.logo.attached? %>
<%= image_tag url_for(current_account.logo),
class: "max-h-16 max-w-full object-contain" %>
<% else %>
<div class="flex flex-col items-center text-base-content/50 p-4">
<%= svg_icon('photo', class: 'w-6 h-6 mb-1') %>
<span class="text-xs">No logo</span>
</div>
<% end %>
</div>
<% if current_account.logo.attached? %>
<%= button_to account_logo_path,
method: :delete,
class: "btn btn-outline btn-error btn-sm normal-case",
form_class: "inline-block" do %>
<%= svg_icon('trash', class: 'w-4 h-4 mr-1') %>
<span><%= t("remove_logo") %></span>
<% end %>
<% end %>
</div>
<%= render 'logo_dropzone' %>
</div>