<% if current_account.logo.attached? %>
<%= image_tag current_account.logo, class: 'max-w-full max-h-full object-contain' %>

Current Logo

<%= form_for '', url: account_logo_path, method: :delete, data: { turbo_confirm: 'Are you sure?' }, html: { class: 'inline' } do |f| %> <%= f.button 'Remove Logo', class: 'btn btn-sm btn-ghost' %> <% end %>
<% end %> <%= form_for '', url: account_logo_path, method: :patch, html: { enctype: 'multipart/form-data', class: 'space-y-4' } do |f| %>
<%= f.button button_title(title: t('upload_logo'), disabled_with: t('saving')), class: 'base-button' %>
<% end %>