Sha256: f5735fc496d8fa1be8348c52960c2295bfafb48e7a016513e6d73e55ec0dcadd

Contents?: true

Size: 681 Bytes

Versions: 75

Compression:

Stored size: 681 Bytes

Contents

<div class="prose lg:prose-xl">
  <h1>Contacts list</h1>
  <%= form_tag contacts_path, method: :get, data: { turbo_frame: "search-results", turbo_action: "advance", controller: "search", action: "input->search#submit" } do |f| %>
    <%= text_field_tag "query", nil, placeholder: "Search ...", class: "input input.bordered w-full max-w-xs my-5" %>
    <%= submit_tag "Search", class: "btn btn-primary" %>
  <% end %>
</div>

<div class="bg-gray-100 p-8 col-span-5">
  <%= turbo_frame_tag  "search-results" do %>
    <%= render partial: "list", locals: { contacts: @contacts } %>
  <% end %>
</div>

<%= link_to "Add new contact", new_contact_path, class: "btn btn-primary mt-4" %>

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
rails_app_generator-0.3.6 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.3.5 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.3.4 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.3.3 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.3.2 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.3.1 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.3.0 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.43 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.42 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.41 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.40 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.39 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.38 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.37 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.36 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.35 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.34 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.33 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.32 after_templates/rag/tailwind_hotwire_form_search/index.html.erb
rails_app_generator-0.2.31 after_templates/rag/tailwind_hotwire_form_search/index.html.erb