Using buttons for non-GET actions is better for accessibility, as
mentioned in commit 5311daadf.
12 lines
280 B
Plaintext
12 lines
280 B
Plaintext
<div class="drafting">
|
|
<div class="callout warning">
|
|
<strong><%= t("admin.budgets.edit.drafting") %></strong>
|
|
</div>
|
|
|
|
<%= render Admin::ActionComponent.new(
|
|
:publish,
|
|
budget,
|
|
text: t("admin.budgets.edit.publish"), method: :patch, confirm: true
|
|
) %>
|
|
</div>
|