dawarich/app/views/imports/edit.html.erb

21 lines
863 B
Text
Raw Normal View History

2024-03-15 18:27:31 -04:00
<div class="mx-auto md:w-2/3 w-full">
<h1 class="font-bold text-4xl">Editing import</h1>
2025-04-19 07:18:39 -04:00
<%= form_with model: @import, class: 'form-body mt-4' do |form| %>
<div class="form-control">
<%= form.label :name %>
<%= form.text_field :name, class: 'input input-bordered' %>
</div>
2024-03-15 18:27:31 -04:00
2025-04-19 07:18:39 -04:00
<div class="form-control">
<%= form.label :source %>
<%= form.select :source, options_for_select(Import.sources.keys.map { |source| [source.humanize, source] }, @import.source), {}, class: 'select select-bordered' %>
</div>
<div class='my-4'>
<%= form.submit class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>
<%= link_to "Back to imports", imports_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>
</div>
<% end %>
2024-03-15 18:27:31 -04:00
</div>