Ask for confirmation when changing the page and

the forms watched do have changes
This commit is contained in:
Fernando Blat
2017-01-18 13:37:11 +01:00
parent f4719f1086
commit 6560e77554
8 changed files with 41 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
<%= form_for [:admin, @process, @draft_version], url: url do |f| %>
<%= form_for [:admin, @process, @draft_version], url: url, html: {data: {watch_changes: true}} do |f| %>
<% if @draft_version.errors.any? %>

View File

@@ -1,4 +1,4 @@
<%= form_for [:admin, @process] do |f| %>
<%= form_for [:admin, @process], html: {data: {watch_changes: true}} do |f| %>
<% if @process.errors.any? %>

View File

@@ -1,4 +1,4 @@
<%= form_for [:admin, @process, @question], url: url do |f| %>
<%= form_for [:admin, @process, @question], url: url, html: {data: {watch_changes: true}} do |f| %>
<% if @question.errors.any? %>