2022-09-14 02:10:57 +00:00
|
|
|
<div id={@id}>
|
2020-06-10 23:05:37 +00:00
|
|
|
<%= if Mix.env == :dev do %>
|
|
|
|
<pre><%= Jason.encode!(@opts, pretty: true) %></pre>
|
|
|
|
<% end %>
|
2022-09-14 02:10:57 +00:00
|
|
|
<%= form_for @opts, "#", [as: :opts, phx_change: :update_stage, phx_target: @myself], fn f -> %>
|
2022-09-14 02:25:11 +00:00
|
|
|
<div class="form-check mb-2">
|
2020-06-09 02:49:45 +00:00
|
|
|
<%= checkbox f, :convert_to_data_uris, id: "#{@id}-convert_to_data_uris", class: "form-check-input" %>
|
2022-09-14 02:10:57 +00:00
|
|
|
<label class="form-check-label" for={"#{@id}-convert_to_data_uris"}>Convert Images to Embedded Data URIs</label>
|
2020-06-09 02:49:45 +00:00
|
|
|
</div>
|
2022-09-14 02:25:11 +00:00
|
|
|
<div class="row mb-2">
|
2022-09-14 02:10:57 +00:00
|
|
|
<label class="col-sm-2 col-form-label" for={"#{@id}-extractor"}>Extractor</label>
|
2020-06-09 02:49:45 +00:00
|
|
|
<div class="col-sm-10">
|
2022-09-14 02:25:11 +00:00
|
|
|
<%= select f, :extractor, @extractors, id: "#{@id}-extractor", class: "form-select" %>
|
2020-06-09 02:49:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-14 02:10:57 +00:00
|
|
|
<% end %>
|
2020-06-09 02:49:45 +00:00
|
|
|
</div>
|