Replace bootstrap_form_tag with form_with at _destroy_modal.html.erb [SCI-9039]

This commit is contained in:
Ivan Kljun 2023-08-10 11:16:43 +02:00
parent d1ea9f30cf
commit f9e5821361

View file

@ -13,7 +13,7 @@
<%= t("users.settings.teams.edit.modal_destroy_team.message", team: team.name) %>
</div>
<div class="modal-footer">
<%= bootstrap_form_tag url: destroy_team_path(team), method: :delete do |f| %>
<%= form_with url: destroy_team_path(team), method: :delete do |f| %>
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%= t('general.cancel') %></button>
<%= f.submit t("users.settings.teams.edit.modal_destroy_team.confirm"), class: "btn btn-danger" %>
<% end %>