Sha256: ad859d9feed79cd8e4ef29ce0e2fbb472c9bb3eca4c9cd810bd84876e5472340

Contents?: true

Size: 754 Bytes

Versions: 28

Compression:

Stored size: 754 Bytes

Contents

<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, full_width: true do %>
  <%= render Avo::Fields::Common::FilesListViewerComponent.new(field: @field, resource: @resource) if @field.value.present? %>

  <% if @resource.authorization.authorize_action(:upload_attachments?, raise_exception: false) %>
    <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: @field.is_readonly?,
        multiple: true,
        style: @field.get_html(:style, view: view, element: :input)
      %>
    </div>
  <% end %>
<% end %>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
avo-2.16.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.15.3 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.15.3.pre.1.data.attrs.to.sidebar.items app/components/avo/fields/files_field/edit_component.html.erb
avo-2.15.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.15.2.pre.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.15.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.15.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.3.pre.7.polytranslations1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.3.pre.6.nosprockets app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.3.pre.5.nosprockets app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.3.pre.4.tosqlfix app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.3.pre.3.jsbundling app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.3.pre.2.tailwindcss app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.3.pre.1.branding app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.2.pre.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.1.pre.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.14.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.13.6.pre.2 app/components/avo/fields/files_field/edit_component.html.erb