frenzy/lib/frenzy_web/live/configure_stage/scrape_stage_live.html.heex

18 lines
770 B
Plaintext

<div id={@id}>
<%= if Mix.env == :dev do %>
<pre><%= Jason.encode!(@opts, pretty: true) %></pre>
<% end %>
<%= form_for @opts, "#", [as: :opts, phx_change: :update_stage, phx_target: @myself], fn f -> %>
<div class="form-check mb-2">
<%= checkbox f, :convert_to_data_uris, id: "#{@id}-convert_to_data_uris", class: "form-check-input" %>
<label class="form-check-label" for={"#{@id}-convert_to_data_uris"}>Convert Images to Embedded Data URIs</label>
</div>
<div class="row mb-2">
<label class="col-sm-2 col-form-label" for={"#{@id}-extractor"}>Extractor</label>
<div class="col-sm-10">
<%= select f, :extractor, @extractors, id: "#{@id}-extractor", class: "form-select" %>
</div>
</div>
<% end %>
</div>