mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-11 18:59:59 +01:00
add confirmation for map submit (#1181)
* add confirmation for map submit * optimized only for anonymous
This commit is contained in:
@@ -73,7 +73,7 @@
|
|||||||
|
|
||||||
<% if !logged_in? %><p><% if Rails.env == 'production' %><%= recaptcha_tags :display => {:theme => "white"} %><% end %></p><% end %>
|
<% 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" />
|
<input type="hidden" name="map[zoom]" id="map_zoom" />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user