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.36.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.36.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.35.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.34.7.pre.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.34.6 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.34.5 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.34.4 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.34.4.pre.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.34.3 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.34.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.34.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.34.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.33.3 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.33.3.pre.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.33.3.pre.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.33.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.33.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.33.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.32.6 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.32.5 app/components/avo/fields/files_field/edit_component.html.erb