From f0712db0aea092be0725883cf02e40e91f670303 Mon Sep 17 00:00:00 2001 From: Uzay-G <52892257+Uzay-G@users.noreply.github.com> Date: Tue, 31 Dec 2019 19:32:47 +0100 Subject: [PATCH] add confirmation for map submit (#1181) * add confirmation for map submit * optimized only for anonymous --- app/views/maps/new.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/maps/new.html.erb b/app/views/maps/new.html.erb index bf8ad73f..3e1dd243 100644 --- a/app/views/maps/new.html.erb +++ b/app/views/maps/new.html.erb @@ -73,7 +73,7 @@ <% if !logged_in? %>
<% if Rails.env == 'production' %><%= recaptcha_tags :display => {:theme => "white"} %><% end %>
<% end %> - <%= f.submit "Create map", :class => "btn btn-primary btn-lg", :tabIndex => 4 %> + <%= f.submit "Create map", :class => "btn btn-primary btn-lg", :tabIndex => 4, :data => {confirm: (logged_in? ? nil : 'Are you sure? You will no longer be able to edit the map after you create it.') } %>