add confirmation for map submit (#1181)

* add confirmation for map submit

* optimized only for anonymous
This commit is contained in:
Uzay-G
2019-12-31 19:32:47 +01:00
committed by Cess
parent f0e8dbd896
commit f0712db0ae

View File

@@ -73,7 +73,7 @@
<% if !logged_in? %><p><% if Rails.env == 'production' %><%= recaptcha_tags :display => {:theme => "white"} %><% end %></p><% 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.') } %>
<input type="hidden" name="map[zoom]" id="map_zoom" />