]> git.openstreetmap.org Git - rails.git/blob - app/views/notes/new.html.erb
display an encouragement to contribute after many anonymous notes
[rails.git] / app / views / notes / new.html.erb
1 <% set_title(t(".title")) %>
2
3 <%= render "sidebar_header", :title => t(".title") %>
4
5 <div class="note">
6   <p class="alert alert-info"><%= t(".intro") %></p>
7   <% if !current_user %>
8     <div class="alert alert-warning pb-0">
9       <p><%= t ".anonymous_warning_html",
10                :log_in => link_to(t(".anonymous_warning_log_in"), login_path(:referer => new_note_path)),
11                :sign_up => link_to(t(".anonymous_warning_sign_up"), new_user_path) %></p>
12     <% if @anonymous_notes_count >= 10 %>
13       <p><%= t ".counter_warning_html",
14                :x_anonymous_notes => t(".x_anonymous_notes", :count => @anonymous_notes_count),
15                :contribute_by_yourself => link_to(t(".counter_warning_guide_link.text"), t(".counter_warning_guide_link.url")),
16                :community_can_help => link_to(t(".counter_warning_forum_link.text"), t(".counter_warning_forum_link.url")) %></p>
17     <% end %>
18     </div>
19   <% end %>
20   <p class="alert alert-warning" id="new-note-zoom-warning" hidden><%= t "javascripts.site.createnote_disabled_tooltip" %></p>
21   <form action="#">
22     <input type="hidden" name="lon" autocomplete="off">
23     <input type="hidden" name="lat" autocomplete="off">
24     <div class="mb-3">
25       <textarea class="form-control" name="text" cols="40" rows="10" maxlength="2000" placeholder="<%= t(".advice") %>"></textarea>
26     </div>
27     <div>
28       <input type="submit" name="add" value="<%= t(".add") %>" disabled="1" class="btn btn-primary">
29     </div>
30   </form>
31 </div>