Sha256: 3d85152efc77b6af6485ace9fe0862fa49601024a9cebdb15f89be62613b7322
Contents?: true
Size: 682 Bytes
Versions: 1
Compression:
Stored size: 682 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_app_generator-0.1.4 | after_templates/rag_tailwind_hotwire_form_search/index.html.erb |