mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 23:04:49 +00:00
* Make balance heading partial * Move period dropdown to partial * Fix tests * Remove redundant arg
4 lines
461 B
Plaintext
4 lines
461 B
Plaintext
<%# locals: (path:, period:) -%>
|
|
<%= form_with url: path, method: :get, class: "flex items-center gap-4", html: { class: "" } do |f| %>
|
|
<%= f.select :period, options_for_select([['7D', 'last_7_days'], ['1M', 'last_30_days'], ["1Y", "last_365_days"], ['All', 'all']], selected: params[:period]), {}, { class: "block w-full border border-alpha-black-100 shadow-xs rounded-lg text-sm py-2 pr-8 pl-2 cursor-pointer", onchange: "this.form.submit();" } %>
|
|
<% end %> |