Sha256: bb535de1231dae4af0875170dfb75c59689875295993ab51c3c1f5ab5fb7d632

Contents?: true

Size: 665 Bytes

Versions: 40

Compression:

Stored size: 665 Bytes

Contents

<%= field_wrapper **field_wrapper_args, full_width: true do %>
  <%= render Avo::Fields::Common::Files::ListViewerComponent.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",
        autofocus: @autofocus
      %>
    </div>
  <% else %>
    —
  <% end %>
<% end %>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
avo-3.13.7 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.13.6 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.13.5 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.13.4 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.13.3 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.13.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.13.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.13.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.12.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.11.10 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.11.9 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.11.8 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.11.7 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.11.6 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.11.5 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.11.4 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.11.3 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.11.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.11.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.11.0 app/components/avo/fields/files_field/edit_component.html.erb