Sha256: aacd58736f7d1605e08c5090dc616670bf9e36a0c9037bf405960a9cb9cf3464

Contents?: true

Size: 634 Bytes

Versions: 130

Compression:

Stored size: 634 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"
      %>
    </div>
  <% else %>
    —
  <% end %>
<% end %>

Version data entries

130 entries across 130 versions & 1 rubygems

Version Path
avo-2.53.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.52.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.49.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.6.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.6.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.5.8 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.5.7 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.5.6 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.5.6.beta1 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.5.5 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.5.4 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.5.3 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.5.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.5.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.5.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.4.4 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.4.3 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.4.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.48.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-3.4.1 app/components/avo/fields/files_field/edit_component.html.erb