2024-05-23 14:12:23 -04:00
|
|
|
<%= form_with model: import, class: "contents" do |form| %>
|
2024-06-19 15:16:06 -04:00
|
|
|
<div class="form-control w-full max-w-xs">
|
|
|
|
|
<label class="label">
|
2024-03-15 18:27:31 -04:00
|
|
|
<span class="label-text">Select source</span>
|
2024-06-19 15:16:06 -04:00
|
|
|
</label>
|
|
|
|
|
<div class="space-y-2">
|
|
|
|
|
<%= form.collection_radio_buttons :source, Import.sources.except('google_records'), :first, :first do |b| %>
|
|
|
|
|
<div class="form-control">
|
|
|
|
|
<label class="label cursor-pointer space-x-3">
|
|
|
|
|
<%= b.radio_button(class: "radio radio-primary") %>
|
|
|
|
|
<span class="label-text"><%= b.text.humanize %></span>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
2024-03-15 18:27:31 -04:00
|
|
|
</div>
|
2024-06-19 15:16:06 -04:00
|
|
|
</div>
|
2024-03-15 18:27:31 -04:00
|
|
|
|
|
|
|
|
<label class="form-control w-full max-w-xs my-5">
|
|
|
|
|
<div class="label">
|
2024-05-18 06:51:25 -04:00
|
|
|
<span class="label-text">Select file(s)</span>
|
2024-03-15 18:27:31 -04:00
|
|
|
</div>
|
|
|
|
|
<%= form.file_field :files, multiple: true, class: "file-input file-input-bordered w-full max-w-xs" %>
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
|
|
<div class="inline">
|
|
|
|
|
<%= form.submit class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|