5 lines
422 B
Plaintext
5 lines
422 B
Plaintext
<%= bootstrap_form_for model, layout: :inline, remote: true do |form| %>
|
|
<%= form.file_field :files, direct_upload: true, multiple: true, accept: "*", hide_label: true, required: true, wrapper_class: "w-65 mr-2", id: "broadcast_files_#{token}" %>
|
|
<%= form.button fa_icon("upload", text: "Add File"), class: "btn btn-primary", type: :submit, data: { disable_with: fa_icon("spinner", text: "Adding File") } %>
|
|
<% end %>
|