Contatti

<%= link_to "Export CSV", contacts_path(format: :csv), class: btn_secondary %> <%= link_to "Nuovo", new_contact_path, class: btn_primary %>
<%= form_with url: contacts_path, method: :get, class: "flex gap-2" do %> <%= text_field_tag :q, params[:q], placeholder: "Cerca…", class: input_class %> <%= submit_tag "Cerca", class: btn_primary %> <% end %>
<% @contacts.each do |c| %> <% end %>
NomeOrganizzazioneEmailTelefono
<%= link_to c.full_name, c.organization, class: "hover:underline" %><% if c.primary_contact? %> ★<% end %> <%= c.organization.name %> <%= c.email %> <%= c.phone.presence || c.mobile %>
<%== pagy_nav(@pagy) if @pagy.pages > 1 %>