]> git.openstreetmap.org Git - rails.git/blob - app/views/notes/new.html.erb
Merge remote-tracking branch 'upstream/pull/4923'
[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     <p class="alert alert-warning"><%= t ".anonymous_warning_html",
9                                          :log_in => link_to(t(".anonymous_warning_log_in"), login_path(:referer => new_note_path)),
10                                          :sign_up => link_to(t(".anonymous_warning_sign_up"), user_new_path) %></p>
11   <% end %>
12   <form action="#">
13     <input type="hidden" name="lon" autocomplete="off">
14     <input type="hidden" name="lat" autocomplete="off">
15     <div class="mb-3">
16       <textarea class="form-control" name="text" cols="40" rows="10" maxlength="2000" placeholder="<%= t(".advice") %>"></textarea>
17     </div>
18     <div>
19       <input type="submit" name="add" value="<%= t(".add") %>" disabled="1" class="btn btn-primary">
20     </div>
21   </form>
22 </div>