add a named blank option to the dropdown (#17019)
This commit is contained in:
parent
d9a5c204e1
commit
1473e58284
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
|||
<%= f.text_field :search, value: params[:search], class: "crayons-textfield mt-0", placeholder: "Search member...", aria: { label: "Search member by name, username, email, or Twitter/GitHub usernames" } %>
|
||||
</div>
|
||||
<div class="crayons-field flex-row items-center gap-2">
|
||||
<%= f.select :role, options_for_select(Role::ROLES, params[:role]), { include_blank: true, prompt: "Filter by role..." }, class: "crayons-select mt-0" %>
|
||||
<%= f.select :role, options_for_select(Role::ROLES, params[:role]), { include_blank: "All roles" }, class: "crayons-select mt-0" %>
|
||||
</div>
|
||||
<%= f.submit "Filter", class: "c-btn c-btn--secondary" %>
|
||||
<% end %>
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
</div>
|
||||
<div class="crayons-field flex-row items-center gap-2">
|
||||
<%= f.label :role, "Filter by Role", class: "crayons-field__label whitespace-nowrap" %>
|
||||
<%= f.select :role, options_for_select(Role::ROLES, params[:role]), { include_blank: true }, class: "crayons-select mt-0" %>
|
||||
<%= f.select :role, options_for_select(Role::ROLES, params[:role]), { include_blank: "All roles" }, class: "crayons-select mt-0" %>
|
||||
</div>
|
||||
<%= f.submit "Filter", class: "c-btn c-btn--secondary" %>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue