Skip to content

Commit

Permalink
feat(search): clean up search form
Browse files Browse the repository at this point in the history
  • Loading branch information
teenwolfblitzer committed Feb 24, 2023
1 parent 60edc02 commit 7691368
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions docs/app/views/pages/search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,25 @@
<h1>Component Search</h1>
<% end %>
<%= form_tag(pages_search_path, method: :get) do %>
<%= sage_component SageToolbar, {} do %>
<%= sage_component SageToolbarGroup, {} do %>
<%= sage_component SageInputGroup, {
group_id: "site_search",
has_button: true,
group_buttons: [{
icon: "sage-btn--icon-left-search",
text: "Search",
text_hidden: true,
tooltip: false,
}],
input_type: "search",
} do %>
<%= sage_component SageFormInput, {
id: "search",
label_text: "Search for a component",
placeholder: "Search Sage Components",
input_type: "search",
label_text: "Search Sage",
placeholder: "Search components",
value: params[:search] || "",
} %>
<%= sage_component SageButton, {
value: "Search",
style: "primary",
attributes: { type: "submit" }
} %>
<% end %>
<% end %>
<% end %>
<% if @search.present? %>
<%= sage_component SageCard, { spacer: { top: :xl }} do %>
Expand Down

0 comments on commit 7691368

Please sign in to comment.