Files
danbooru/app/views/moderator/ip_addrs/search.html.erb
evazion a1b48f5e3f views: migrate search forms to use simple form.
Migrate various forms to be built using simple form instead of raw html.
Also adds autocomplete="off" to these forms (#4162).
2019-09-10 14:33:18 -05:00

16 lines
601 B
Plaintext

<div id="c-moderator-ip-addrs">
<div id="a-search">
<h1>Search IP Addresses</h1>
<%= search_form_for(moderator_ip_addrs_path) do |f| %>
<%= f.input :ip_addr, label: "IPs ", hint: "Separate with spaces", input_html: { value: params.dig(:search, :ip_addr) } %>
<%= f.input :user_name, label: "Users", hint: "Separate with spaces", input_html: { value: params.dig(:search, :user_name), "data-autocomplete": "user" } %>
<%= f.submit "Search" %>
<% end %>
</div>
</div>
<% content_for(:page_title) do %>
Search IP Addresses - <%= Danbooru.config.app_name %>
<% end %>