Sha256: c46a53ef81c7cdd830445a7cfa59be908033c732606da58734b91c5ad2663e2e

Contents?: true

Size: 691 Bytes

Versions: 14

Compression:

Stored size: 691 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 @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),
        class: "w-full"
      %>
    </div>
  <% end %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
avo-2.21.1.pre.pr1476 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.21.1.pre.issue1450 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.21.1.pre.issue1444 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.20.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.19.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.18.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.18.1.pre.1.eagerloaddirs app/components/avo/fields/files_field/edit_component.html.erb
avo-2.18.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.17.1.pre.5.stackedlayout app/components/avo/fields/files_field/edit_component.html.erb
avo-2.17.1.pre.4.issue.1342 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.17.1.pre.3 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.17.1.pre.2.customauthorizationclients app/components/avo/fields/files_field/edit_component.html.erb
avo-2.17.1.pre.1.zeitwerk.eager.load.dir app/components/avo/fields/files_field/edit_component.html.erb
avo-2.17.0 app/components/avo/fields/files_field/edit_component.html.erb