app/views/administrate/application/_search.html.erb in administrate-0.7.0 vs app/views/administrate/application/_search.html.erb in administrate-0.8.0

- old
+ new

@@ -1,21 +1,25 @@ <form class="search" role="search"> - <span class="search__icon"> - <%= svg_tag "administrate/search.svg", "search", width: 16, height: 16 %> - </span> - <input - type="text" - name="search" - class="search__input" - placeholder="Search" - value="<%= search_term %>" - aria-label="Search" - /> - <span class="search__hint"> - Press enter to search - </span> - <span class="search__clear"> - <%= link_to clear_search_params do %> - <%= svg_tag "administrate/cancel.svg", "cancel-search", width: 16, height: 16 %> - <% end %> - </span> + <label class="search__label" for="search"> + <svg class="search__eyeglass-icon" role="img"> + <title> + <%= t("administrate.search.label", resource: resource_name) %> + </title> + <use xlink:href="#icon-eyeglass" /> + </svg> + </label> + + <input class="search__input" + id="search" + type="search" + name="search" + placeholder="<%= t("administrate.search.label", + resource: resource_name) %>" + value="<%= search_term %>"> + + <%= link_to clear_search_params, class: "search__clear-link" do %> + <svg class="search__clear-icon" role="img"> + <title><%= t("administrate.search.clear") %></title> + <use xlink:href="#icon-cancel" /> + </svg> + <% end %> </form>