Add unsaved changed check to check form
This commit is contained in:
parent
fd86bdd10f
commit
4f8b18ca25
3 changed files with 43 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue