22 lines
992 B
Plaintext
22 lines
992 B
Plaintext
<%= turbo_frame_tag "terminal_form" do %>
|
|
<%= form_tag cards_path, class: "flex align-center gap-half", method: :get, data: { controller: "form", turbo_frame: "_top" } do %>
|
|
<% @filter.as_params.each do |key, value| %>
|
|
<%= filter_hidden_field_tag key, value, autofocus: true %>
|
|
<% end %>
|
|
|
|
<label class="terminal__label txt-nowrap" for="fizzy_do">Fizzy do ></label>
|
|
|
|
<%= text_field_tag "terms[]", nil,
|
|
autocomplete: "off",
|
|
autocorrect: "off",
|
|
autocapitalize: "off",
|
|
class: "terminal__input input fill-transparent unpad",
|
|
data: {
|
|
action: "keydown.up->toggle-class#add:prevent keydown.down->toggle-class#remove:prevent keydown.esc->form#cancel:prevent"
|
|
},
|
|
id: "fizzy_do",
|
|
placeholder: "Search or type commands…" %>
|
|
|
|
<%= link_to "Close terminal and discard changes", terminal_path, data: { form_target: "cancel", turbo_frame: "terminal_form" }, hidden: true %>
|
|
<% end %>
|
|
<% end %> |