index_live.html.leex 589 B

1234567891011121314151617181920212223
  1. <%= f = form_for @location_cs, "#", [phx_submit: :add_location] %>
  2. <%= label f, :name %>
  3. <%= text_input f, :name %>
  4. <%= error_tag f, :name %>
  5. <%= label f, :booking_page %>
  6. <%= text_input f, :booking_page %>
  7. <%= error_tag f, :booking_page %>
  8. <%= label f, :raw_query %>
  9. <%= text_input f, :raw_query %>
  10. <%= error_tag f, :raw_query %>
  11. <%= submit "send" %>
  12. </form>
  13. <button phx-click="trigger_all">Trigger all</button>
  14. <ul>
  15. <%= for l <- @locations do %>
  16. <li><%= live_component @socket, VaccinsWeb.LocationComponent, id: l.id, location: l %></li>
  17. <% end %>
  18. </ul>