Sha256: 29c4fb5457bf25e020ab9769cb4e5dc62042d8e43f4a28e76f8c982f1315ce68

Contents?: true

Size: 632 Bytes

Versions: 14

Compression:

Stored size: 632 Bytes

Contents

<%= field_wrapper **field_wrapper_args, full_width: true do %>
  <%= render Avo::Fields::Common::FilesListViewerComponent.new(field: @field, resource: @resource) if @field.value.present? %>

  <% if can_upload_file? %>
    <div class="mt-2">
      <%= @form.file_field @field.id,
        accept: @field.accept,
        data: @field.get_html(:data, view: view, element: :input),
        direct_upload: @field.direct_upload,
        disabled: disabled?,
        multiple: true,
        style: @field.get_html(:style, view: view, element: :input),
        class: "w-full"
      %>
    </div>
  <% else %>
    —
  <% end %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
avo-3.0.0.pre8 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.0.0.pre7 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.0.0.pre5 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.0.0.pre6 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.0.0.pre4 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.30.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.30.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.29.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.29.1.pre.pr1652 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.29.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.28.3.pre.pr1646 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.28.2.pre.pr1642 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.28.1.pre.pr1642 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.28.0 app/components/avo/fields/files_field/edit_component.html.erb