mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +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 %>
|
||||
|
||||
<%= 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" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user