mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
28 lines
1 KiB
Text
28 lines
1 KiB
Text
<%= form_with model: import, class: "contents" do |form| %>
|
|
<div class="form-control w-full max-w-xs">
|
|
<label class="label">
|
|
<span class="label-text">Select source</span>
|
|
</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 %>
|
|
</div>
|
|
</div>
|
|
|
|
<label class="form-control w-full max-w-xs my-5">
|
|
<div class="label">
|
|
<span class="label-text">Select file(s)</span>
|
|
</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 %>
|