| 1234567891011121314151617181920212223242526 |
- <button phx-click="trigger_all">Trigger all</button>
- <button phx-click="toggle_form">Display/hide form</button>
- <%= 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, :booking_page %>
- <%= text_input f, :booking_page %>
- <%= error_tag f, :booking_page %>
- <%= label f, :raw_query %>
- <%= text_input f, :raw_query %>
- <%= error_tag f, :raw_query %>
- <%= submit "send" %>
- </form>
- <% end %>
- <ul class="locations-list">
- <%= for l <- @locations do %>
- <li><%= live_component @socket, VaccinsWeb.LocationComponent, id: l.id, location: l %></li>
- <% end %>
- </ul>
|