modal(title:, subtitle: nil, close_href: nil, width: "440px") do |m|
# body
m.with_footer { … } # "Cancelar" first, confirm last
end
Footer buttons go "Cancelar" first, the confirming action last; a destructive confirm uses danger_fill and repeats the verb from the title.
<div class="doc-frame" style="height: 300px">
<%= modal(title: "Remover empresa?", subtitle: "As notas já baixadas continuam no computador.", close_href: "#") do |m| %>
<label class="tr-cluster" style="gap: 10px"><%= check_box_tag :purge, "1", false, class: "tr-check" %> Apagar também as notas baixadas</label>
<% m.with_footer do %>
<%= button "Cancelar" %>
<%= button "Remover empresa", variant: :danger_fill %>
<% end %>
<% end %>
</div>