1 <% set_title(t(".title")) %>
3 <%= render "sidebar_header", :title => t(".title") %>
5 <p class="alert alert-info"><%= t(".intro") %></p>
7 <div class="alert <%= hard_anonymous_notes_limit_reached?(@anonymous_notes_count) ? "alert-danger" : "alert-warning" %> pb-0">
8 <p><%= 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"), new_user_path) %></p>
11 <% if soft_anonymous_notes_limit_reached?(@anonymous_notes_count) %>
12 <p><%= t ".counter_warning_html",
13 :x_anonymous_notes => t(".x_anonymous_notes", :count => @anonymous_notes_count),
14 :contribute_by_yourself => link_to(t(".counter_warning_guide_link.text"), t(".counter_warning_guide_link.url")),
15 :community_can_help => link_to(t(".counter_warning_forum_link.text"), t(".counter_warning_forum_link.url")) %></p>
19 <% if !hard_anonymous_notes_limit_reached?(@anonymous_notes_count) %>
20 <p class="alert alert-warning" id="new-note-zoom-warning" hidden><%= t "javascripts.site.createnote_disabled_tooltip" %></p>
22 <input type="hidden" name="lon" autocomplete="off">
23 <input type="hidden" name="lat" autocomplete="off">
25 <%= text_area_tag "text", "", :class => "form-control", :size => "40x10", :maxlength => "2000", :placeholder => t(".advice") %>
28 <%= submit_tag t(".add"), :name => "add", :disabled => 1, :class => "btn btn-primary" %>