<%= if @is_local? do %><% end %>
<%= if @display_cs do %>
<%= f = form_for @location_cs, "#", [phx_submit: :add_location] %>
<%= label f, :name %>
<%= text_input f, :name %>
<%= error_tag f, :name %>
<%= label f, :location %>
<%= text_input f, :location %>
<%= error_tag f, :location %>
<%= label f, :booking_page %>
<%= url_input f, :booking_page %>
<%= error_tag f, :booking_page %>
<%= label f, :raw_query %>
<%= url_input f, :raw_query %>
<%= error_tag f, :raw_query %>
<%= submit "send" %>
<% end %>
<%= VaccinsWeb.LocationComponent.render_table_header() %>
<%= for l <- assigns |> locations_by_availability do %>
<%= live_component @socket, VaccinsWeb.LocationComponent, id: l.id, location: l, render_as: :table_row, is_local?: @is_local? %>
<% end %>