Add unsaved changed check to check form
Some checks failed
/ Run tests (push) Failing after 16s
/ Run system tests (push) Failing after 15s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-10-28 22:39:32 +01:00
parent fd86bdd10f
commit 4f8b18ca25
3 changed files with 43 additions and 1 deletions

View file

@ -1,4 +1,4 @@
= bootstrap_form_with(model: check, remote: true) do |form|
= bootstrap_form_with(model: check, remote: true, data: { controller: "unsaved-changes" }) do |form|
h2 Details
= multilang_form_field(form, :name)
= form.text_field :number, required: false