Skip to content

Commit

Permalink
Fix select filter input field names
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislaskey committed Apr 5, 2021
1 parent b1c639e commit f12b6ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<%= form_for @conn, "", [class: "ui form filter-form"], fn f -> %>
<% selected = Artemis.Helpers.deep_get(@conn, [:query_params, "filters", @value]) || [] %>
<% container_class = if selected, do: "active" %>
<div class="<%= container_class %>">
<%= text_input f, @value, name: @value, value: selected, class: "filter-input-field", placeholder: "Filter by #{@label}" %>
</div>
<% end %>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@form,
@value,
@available,
name: @value,
selected: @selected,
class: "filter-multi-select enhanced search",
placeholder: "Filter by #{@label}"
Expand Down

0 comments on commit f12b6ab

Please sign in to comment.