| 123456789101112131415161718192021222324252627282930313233343536 |
- <button phx-click="trigger_all">Trigger all</button>
- <button phx-click="reload_file">Reload file</button>
- <%= if @is_local? do %><button phx-click="toggle_form">Display/hide form</button><% 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" %>
- </form>
- <% end %>
- <table class="locations-list">
- <thead>
- <tr><%= VaccinsWeb.LocationComponent.render_table_header() %></tr>
- </thead>
- <tbody>
- <%= for l <- assigns |> locations_by_availability do %>
- <tr><%= live_component @socket, VaccinsWeb.LocationComponent, id: l.id, location: l, render_as: :table_row, is_local?: @is_local? %></tr>
- <% end %>
- </tbody>
- </table>
|