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_form.html.erb

33 lines
1.6 KiB

<div class="space-y-4">
<% if current_account.logo.attached? %>
<div class="flex items-center justify-between bg-base-200 rounded-xl p-4">
<div class="flex items-center gap-3">
<%= image_tag rails_blob_path(current_account.logo, disposition: 'inline'),
class: 'w-12 h-12 object-contain bg-white rounded',
alt: current_account.name %>
<span class="text-sm opacity-70"><%= current_account.logo.filename %></span>
</div>
<%= button_to 'Remove', settings_account_logo_path, method: :delete,
class: 'btn btn-sm btn-outline btn-error',
data: { turbo_confirm: 'Remove the uploaded logo?' } %>
</div>
<% end %>
<%= form_with url: settings_account_logo_path, method: :post,
multipart: true, html: { class: 'space-y-3', autocomplete: 'off' } do %>
<div class="form-control">
<label class="label" for="logo_file">
<span class="label-text">Upload logo (PNG, JPEG, or SVG &middot; up to 2&nbsp;MB)</span>
</label>
<input type="file" name="logo" id="logo_file" required
accept="image/png,image/jpeg,image/svg+xml"
class="file-input file-input-bordered w-full">
</div>
<button type="submit" class="base-button">Upload</button>
<% end %>
<p class="text-sm opacity-70">
Replaces the default WaboSign mark on the sign-in page, signing flow, dashboard navbar, share-link QR page, and audit-trail PDFs. Browser favicons and the PWA manifest icon stay on the default brand.
</p>
</div>